CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
lua: updated to 5.1.4
[attic/ports/opt-cross.git] / sdl_ttf / Pkgfile
CommitLineData
24a92bb1
JB
1# Description: TrueType library for libsdl.
2# URL: http://www.libsdl.org/projects/SDL_ttf/
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
24a92bb1
JB
6# Depends on: freetype libsdl
7
8name=sdl_ttf
9version=2.0.8
10release=1
11source=(http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-$version.tar.gz \
12 sdl_ttf-noftinternals.patch)
13
14build() {
15 cd SDL_ttf-$version
16
17 patch -i $SRC/sdl_ttf-noftinternals.patch
18 export DEFAULT_LIBS="-L$CLFS/usr/lib"
19 export DEFAULT_CFLAGS="-I$CLFS/usr/include"
20 export SDL_LIBS="$DEFAULT_LIBS -lSDL -lpthread"
21 export SDL_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
22
23 ./configure --build=$CHOST \
24 --host=$CTARGET \
25 --prefix=/usr \
26 --with-sdl-prefix=$CLFS/usr \
27 --with-freetype-prefix=$CLFS/usr \
28 --disable-sdltest
29
30 sed -i Makefile \
31 -e "s|-I/usr|-I$CLFS/usr|g" \
32 -e "s|-L/usr|-L$CLFS/usr|g"
33
34 make
35 make DESTDIR=$PKG install
36}