Advertisement
Guest User

SDL 2.0.4 PKGBUILD

a guest
Jun 23rd, 2015
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. pkgname=sdl2-imx
  2. pkgver=2.0.4
  3. pkgrel=1
  4. pkgdesc="SDL2 library with OpenGL ES support for embedded devices"
  5. arch=('armv7h')
  6. url="http://www.libsdl.org"
  7. license=('MIT')
  8. depends=('glibc' 'libgl')
  9. makedepends=('alsa-lib' 'mesa' 'libxkbcommon')
  10. optdepends=('alsa-lib: ALSA audio driver')
  11. conflicts=('sdl2')
  12. provides=('sdl2')
  13. replaces=('sdl2')
  14. source=("http://www.libsdl.org/tmp/release/SDL2-${pkgver}.tar.gz")
  15. md5sums=('f5c27563e15db6a1370d4011808281c9')
  16.  
  17. prepare() {
  18. mkdir build
  19. }
  20.  
  21. build() {
  22. cd build
  23. ../SDL2-$pkgver/configure --prefix=/usr \
  24. LDFLAGS="-L/opt/fsl/lib/" CPPFLAGS="-I/opt/fsl/include" \
  25. --enable-sdl-dlopen \
  26. --disable-arts --disable-esd --disable-nas \
  27. --enable-alsa \
  28. --disable-pulseaudio \
  29. --disable-video-wayland \
  30. --without-x --disable-video-x11 --disable-x11-shared \
  31. --disable-video-x11-xcursor --disable-video-x11-xinerama \
  32. --disable-video-x11-xinput --disable-video-x11-xrandr \
  33. --disable-video-x11-scrnsaver --disable-video-x11-xshape \
  34. --disable-video-x11-vm --disable-video-opengl \
  35. --disable-video-directfb --enable-video-opengles \
  36. --disable-rpath --enable-video-vivante --enable-video-opengles2
  37. make
  38. }
  39.  
  40. package() {
  41. cd build
  42. make DESTDIR="$pkgdir" install
  43. install -Dm644 ../SDL2-$pkgver/COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement