# Description: Simple Directmedia Layer, a library multiplatforme
# URL: http://www.libsdl.org
# Packager: pierre at nutyx dot org
# Depends on: alsa-lib nasm libusb pulseaudio xorg-libx11 xorg-libxext 

name=sdl
version=1.2.15
release=1

source=(http://www.libsdl.org/release/SDL-$version.tar.gz)
build() {
cd SDL-$version
sed -i '/_XData32/s:register long:register _Xconst long:' src/video/x11/SDL_x11sym.h 
./configure --prefix=/usr --disable-static 
make
make DESTDIR=$PKG install
}
