CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
libcap: initial import (verified compilation)
[attic/ports/opt-cross.git] / sdl_net / Pkgfile
CommitLineData
ddbc2bd0
VM
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
38b50d66 5# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
ddbc2bd0
VM
6# Depends on: libsdl
7
8name=sdl_net
9version=1.2.7
10release=1
11source=(http://www.libsdl.org/projects/SDL_net/release/SDL_net-$version.tar.gz)
12
13build() {
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}