1 # Description: A library for configuring and customizing font access
2 # URL: http://fontconfig.org/wiki/
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 expat
10 source=(http://fontconfig.org/release/$name-$version.tar.gz \
11 $name-$version.cross_compile.patch)
16 patch -p1 -i $SRC/$name-$version.cross_compile.patch
18 -e "s|FREETYPE_LIBS=.*|FREETYPE_LIBS=\"-lfreetype -lz\"|" \
19 -e "s|FREETYPE_CFLAGS=.*|FREETYPE_CFLAGS=\"-I$CLFS/usr/include/freetype2\"|"
21 ./configure --build=$CHOST \
30 make DESTDIR=$PKG install
32 # Enabling autohinting by default
33 pushd $PKG/etc/fonts/conf.d
34 ln -s ../conf.avail/10-autohint.conf
37 rm -f $PKG/etc/fonts/conf.d/README