Commit | Line | Data |
---|---|---|
f1e44f77 JB |
1 | # Description: xorg lib libXfont |
2 | # URL: http://xorg.freedesktop.org | |
3 | # Maintainer: Tilman Sauerbeck tilman at crux dot nu | |
4 | # Arch Maintainer System Team crux-arm at mikeux dot dyndns dot org | |
5 | # Depends on: freetype xorg-xproto xorg-xtrans xorg-fontsproto xorg-libfontenc | |
6 | ||
7 | name=xorg-libxfont | |
8 | version=1.4.0 | |
47eacae6 | 9 | release=3 |
f1e44f77 JB |
10 | source=(http://xorg.freedesktop.org/releases/individual/lib/libXfont-$version.tar.bz2 \ |
11 | libXfont-$version.cross_compile.patch) | |
12 | ||
13 | build() { | |
14 | cd libXfont-$version | |
15 | ||
16 | patch -p1 -i $SRC/libXfont-$version.cross_compile.patch | |
17 | sed -i configure \ | |
18 | -e "s|FREETYPE_LIBS=.*|FREETYPE_LIBS=\"-lfreetype -lz\"|" \ | |
19 | -e "s|FREETYPE_CFLAGS=.*|FREETYPE_CFLAGS=\"-I$CLFS/usr/include/freetype2\"|" | |
20 | ||
47eacae6 | 21 | export XFONT_LIBS="-L$CLFS/usr/lib -lm -lfontenc" |
f1e44f77 JB |
22 | export XFONT_CFLAGS="-I$CLFS/usr/include" |
23 | ||
24 | ./configure --build=$CHOST \ | |
25 | --host=$CTARGET \ | |
26 | --prefix=/usr | |
27 | ||
28 | make | |
29 | make DESTDIR=$PKG install | |
30 | } |