CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
dropbear: moved from core collection
[attic/ports/opt-cross.git] / fontconfig / Pkgfile
CommitLineData
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
38b50d66 4# Arch Maintainer System Team devel at crux-arm dot nu
bc4dcc47
JB
5# Depends on: freetype expat
6
7name=fontconfig
8version=2.8.0
9release=1
10source=(http://fontconfig.org/release/$name-$version.tar.gz \
11 $name-$version.cross_compile.patch)
12
13build() {
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}