| 1 | # Description: A cross-platform networking library for SDL. |
| 2 | # URL: http://www.libsdl.org/projects/SDL_net/ |
| 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@crux-arm.nu |
| 6 | # Depends on: libsdl |
| 7 | |
| 8 | name=sdl_net |
| 9 | version=1.2.7 |
| 10 | release=1 |
| 11 | source=(http://www.libsdl.org/projects/SDL_net/release/SDL_net-$version.tar.gz) |
| 12 | |
| 13 | build() { |
| 14 | cd SDL_net-$version |
| 15 | sed -e 's|`$SDL_CONFIG $sdlconf_args --cflags`|"-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"|g' \ |
| 16 | -e 's|`$SDL_CONFIG $sdlconf_args --libs`|"-L$CLFS/usr/lib -lSDL -lpthread"|g' -i configure |
| 17 | ./configure --build=$CHOST \ |
| 18 | --host=$CTARGET \ |
| 19 | --prefix=/usr \ |
| 20 | --disable-sdltest \ |
| 21 | --disable-gui \ |
| 22 | --with-sdl-prefix=$CLFS/usr \ |
| 23 | --prefix=/usr |
| 24 | make |
| 25 | make DESTDIR=$PKG install |
| 26 | } |