CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
xorg-xauth: added missing dep xorg-libxv
[attic/ports/xorg-cross.git] / xorg-libxfont / Pkgfile
CommitLineData
f1e44f77
JB
1# Description: xorg lib libXfont
2# URL: http://xorg.freedesktop.org
3# Maintainer: Tilman Sauerbeck tilman at crux dot nu
bab2a29c 4# Arch Maintainer System Team devel at crux-arm dot nu
f1e44f77
JB
5# Depends on: freetype xorg-xproto xorg-xtrans xorg-fontsproto xorg-libfontenc
6
7name=xorg-libxfont
8version=1.4.0
47eacae6 9release=3
f1e44f77
JB
10source=(http://xorg.freedesktop.org/releases/individual/lib/libXfont-$version.tar.bz2 \
11 libXfont-$version.cross_compile.patch)
12
13build() {
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}