1 # Description: SDL_image is an image file loading library.
2 # URL: http://www.libsdl.org/projects/SDL_image
3 # Packager: Jay Dolan, jdolan at jdolan dot dyndns dot org
4 # Maintainer: Danny Rawlins, monster dot romster at gmail dot com
5 # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
6 # Depends on: libtiff libpng libsdl
11 source=(http://www.libsdl.org/projects/SDL_image/release/SDL_image-$version.tar.gz)
16 export DEFAULT_LIBS="-L$CLFS/usr/lib"
17 export DEFAULT_CFLAGS="-I$CLFS/usr/include"
18 export SDL_LIBS="$DEFAULT_LIBS -lSDL -lpthread"
19 export SDL_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
21 ./configure --build=$CHOST \
24 --with-sdl-prefix=$CLFS/usr \
30 -e "s|-I/usr|-I$CLFS/usr|g" \
31 -e "s|-L/usr|-L$CLFS/usr|g"
34 make DESTDIR=$PKG install