Commit 0cebc35d authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #929 from flyingP0tat0/patch-6

Add SDL2 (libsdl2) and fix libtheora
parents 41067fcf 4f5d8c77
require 'package'
class Libsdl2 < Package
description 'Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.'
homepage 'http://www.libsdl.org/'
version '2.0.5'
source_url 'https://www.libsdl.org/release/SDL2-2.0.5.tar.gz'
source_sha256 '442038cf55965969f2ff06d976031813de643af9c9edc9e331bd761c242e8785'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -8,7 +8,7 @@ class Libtheora < Package
source_sha256 'b6ae1ee2fa3d42ac489287d3ec34c5885730b1296f0801ae577a35193d3affbc'
depends_on 'libvorbis'
depends_on 'libsdl'
depends_on 'libsdl2'
def self.build
system "sed -i 's/png_sizeof/sizeof/g' ./examples/png2theora.c"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment