Commit | Line | Data |
---|---|---|
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 | |
5 | # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org | |
6 | # Depends on: freetype libsdl | |
7 | ||
8 | name=sdl_ttf | |
9 | version=2.0.8 | |
10 | release=1 | |
11 | source=(http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-$version.tar.gz \ | |
12 | sdl_ttf-noftinternals.patch) | |
13 | ||
14 | build() { | |
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 | } |