CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
xorg-mkfontscale: initial import (verified compilation)
[attic/ports/xorg-cross.git] / mkfontscale / Pkgfile
1 # Description: Create an index of scalable X font files
2 # URL: http://xorg.freedesktop.org
3 # Maintainer: Tilman Sauerbeck tilman at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team crux-arm at mikeux dot dyndns dot org
5 # Depends on: xorg-libx11 xorg-libfontenc freetype
6
7 name=xorg-mkfontscale
8 version=1.0.7
9 release=1
10 source=(http://xorg.freedesktop.org/releases/individual/app/mkfontscale-$version.tar.bz2)
11
12 build() {
13 cd mkfontscale-$version
14
15 export DEFAULT_LIBS="-L$CLFS/usr/lib"
16 export DEFAULT_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/X11 -I$CLFS/usr/include/X11/extensions"
17 export MKFONTSCALE_LIBS="$DEFAULT_LIBS -lfontenc -lfreetype"
18 export MKFONTSCALE_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/freetype2"
19 export X11_LIBS="$DEFAULT_LIBS -lX11"
20 export X11_CFLAGS="$DEFAULT_CFLAGS"
21
22 ./configure --build=$CHOST \
23 --host=$CTARGET \
24 --prefix=/usr \
25 --mandir=/usr/man
26
27 make
28 make DESTDIR=$PKG install
29 }