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_gfx / Pkgfile
CommitLineData
ccaf43ea
JB
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
38b50d66 5# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
ccaf43ea
JB
6# Depends on: libsdl
7
8name=sdl_gfx
9version=2.0.13
10release=1
11source=(http://www.ferzkopp.net/Software/SDL_gfx-${version%.*}/SDL_gfx-$version.tar.gz)
12
13build() {
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}