Commit b50dd7ce authored by James Larrowe's avatar James Larrowe Committed by Ed Reel

Update libSDL package and add X and Wayland bindings (#3005)

Remove redundant dependencies
parent ebaa59cb
......@@ -3,32 +3,29 @@ require 'package'
class Libsdl < 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 '1.2.15-2'
version '1.2.15-3'
source_url 'http://www.libsdl.org/release/SDL-1.2.15.tar.gz'
source_sha256 'd6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libsdl-1.2.15-2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libsdl-1.2.15-2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libsdl-1.2.15-2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libsdl-1.2.15-2-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'dd572e285fc4485ec46c36f7612f06f78ee2565e4fa5814c2828c520ea7f44ac',
armv7l: 'dd572e285fc4485ec46c36f7612f06f78ee2565e4fa5814c2828c520ea7f44ac',
i686: '485362d999a6a6ab466c8a544df175b9e93db2b5149ee0f37be4bf33d6adc66b',
x86_64: 'f9c9cee413c6acd449fefadb44f8148595124d994b658fedca67642921369b43',
})
depends_on 'dbus'
depends_on 'eudev'
depends_on 'xwayland'
depends_on 'alsa_lib'
depends_on 'pulseaudio'
depends_on 'mesa'
depends_on 'nasm' => :build
def self.patch
system "sed -i 's,#ifdef LONG64,#if 0 // Causes a build failure with recent libx11 versions,g' src/video/x11/SDL_x11sym.h"
end
def self.build
system './configure',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'--disable-video-wayland',
'--disable-video-x11'
"--libdir=#{CREW_LIB_PREFIX}"
system 'make'
end
......
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