Commit | Line | Data |
---|---|---|
bc4dcc47 JB |
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 | |
6 | ||
7 | name=fontconfig | |
8 | version=2.8.0 | |
9 | release=1 | |
10 | source=(http://fontconfig.org/release/$name-$version.tar.gz \ | |
11 | $name-$version.cross_compile.patch) | |
12 | ||
13 | build() { | |
14 | cd $name-$version | |
15 | ||
16 | patch -p1 -i $SRC/$name-$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 | ||
21 | ./configure --build=$CHOST \ | |
22 | --host=$CTARGET \ | |
23 | --with-arch=ARM \ | |
24 | --prefix=/usr \ | |
25 | --sysconfdir=/etc \ | |
26 | --mandir=/usr/man \ | |
27 | --localstatedir=/var | |
28 | ||
29 | make | |
30 | make DESTDIR=$PKG install | |
31 | ||
32 | # Enabling autohinting by default | |
33 | pushd $PKG/etc/fonts/conf.d | |
34 | ln -s ../conf.avail/10-autohint.conf | |
35 | popd | |
36 | ||
37 | rm -f $PKG/etc/fonts/conf.d/README | |
38 | rm -r $PKG/usr/share | |
39 | } |