-
-
Save julianxhokaxhiu/814060a5a3288a7d7391 to your computer and use it in GitHub Desktop.
SDL2 Archlinux PKGBUILD for the Raspberry Pi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Sven-Hendrik Haase <[email protected]> | |
# Modified by Fred Morcos <[email protected]> for the Raspberry Pi | |
pkgname=sdl2 | |
pkgver=2.0.3 | |
pkgrel=1 | |
pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)" | |
arch=('i686' 'x86_64' 'armv6h') | |
url="http://www.libsdl.org" | |
license=('MIT') | |
depends=('glibc' 'libxext' 'libxrender' 'libx11' 'libgl' 'libxcursor') | |
makedepends=('alsa-lib' 'mesa' 'libxrandr' 'libxinerama' 'wayland' 'libxkbcommon') | |
optdepends=('alsa-lib: ALSA audio driver' | |
'libpulse: PulseAudio audio driver') | |
source=("http://www.libsdl.org/release/SDL2-${pkgver}.tar.gz") | |
md5sums=('fe6c61d2e9df9ef570e7e80c6e822537') | |
prepare() { | |
mkdir -p build | |
} | |
build() { | |
cd build | |
../SDL2-$pkgver/configure --prefix=/usr \ | |
--enable-sdl-dlopen \ | |
--disable-arts --disable-esd --disable-nas \ | |
--enable-alsa \ | |
--disable-pulseaudio \ | |
--disable-video-wayland \ | |
--without-x --disable-video-x11 --disable-x11-shared \ | |
--disable-video-x11-xcursor --disable-video-x11-xinerama \ | |
--disable-video-x11-xinput --disable-video-x11-xrandr \ | |
--disable-video-x11-scrnsaver --disable-video-x11-xshape \ | |
--disable-video-x11-vm --disable-video-opengl \ | |
--disable-video-directfb --enable-video-opengles \ | |
--enable-video-dummy \ | |
--disable-rpath | |
make CFLAGS="-I/opt/vc/include -I/usr/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux $CFLAGS" | |
} | |
package() { | |
cd build | |
make DESTDIR="$pkgdir" install | |
install -Dm644 ../SDL2-$pkgver/COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment