Commit | Line | Data |
---|---|---|
1a64286b JB |
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 | |
7 | ||
8 | name=sdl_image | |
9 | version=1.2.7 | |
10 | release=1 | |
11 | source=(http://www.libsdl.org/projects/SDL_image/release/SDL_image-$version.tar.gz) | |
12 | ||
13 | build() { | |
14 | cd SDL_image-$version | |
15 | ||
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" | |
20 | ||
21 | ./configure --build=$CHOST \ | |
22 | --host=$CTARGET \ | |
23 | --prefix=/usr \ | |
24 | --with-sdl-prefix=$CLFS/usr \ | |
25 | --disable-sdltest \ | |
26 | --enable-png \ | |
27 | --enable-tif | |
28 | ||
29 | sed -i Makefile \ | |
30 | -e "s|-I/usr|-I$CLFS/usr|g" \ | |
31 | -e "s|-L/usr|-L$CLFS/usr|g" | |
32 | ||
33 | make | |
34 | make DESTDIR=$PKG install | |
35 | } |