| 1 | # Description: SDL graphics drawing primitives and other support functions. |
| 2 | # URL: http://www.ferzkopp.net/Software/SDL_gfx-2.0/index.html |
| 3 | # Packager: Simone Rota, sip at crux dot nu |
| 4 | # Maintainer: Danny Rawlins, monster dot romster at gmail dot com |
| 5 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 6 | # Depends on: libsdl |
| 7 | |
| 8 | name=sdl_gfx |
| 9 | version=2.0.13 |
| 10 | release=1 |
| 11 | source=(http://www.ferzkopp.net/Software/SDL_gfx-${version%.*}/SDL_gfx-$version.tar.gz) |
| 12 | |
| 13 | build() { |
| 14 | cd SDL_gfx-$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 | --disable-mmx |
| 27 | |
| 28 | sed -i Makefile \ |
| 29 | -e "s|-I/usr|-I$CLFS/usr|g" \ |
| 30 | -e "s|-L/usr|-L$CLFS/usr|g" |
| 31 | |
| 32 | make |
| 33 | make DESTDIR=$PKG install |
| 34 | } |