| 1 | # Depends on: xorg-libxrender, freetype, fontconfig |
| 2 | # Description: X font rendering client library |
| 3 | # URL: http://xorg.freedesktop.org |
| 4 | # Maintainer: Tilman Sauerbeck tilman at crux dot nu |
| 5 | # Arch Maintainer System Team crux-arm at mikeux dot dyndns dot org |
| 6 | # Depends on: xorg-libxrender freetype fontconfig |
| 7 | |
| 8 | name=xorg-libxft |
| 9 | version=2.1.14 |
| 10 | release=2 |
| 11 | source=(http://xorg.freedesktop.org/releases/individual/lib/libXft-$version.tar.bz2) |
| 12 | |
| 13 | build() { |
| 14 | cd libXft-$version |
| 15 | |
| 16 | export X11_LIBS="-L$CLFS/usr/lib -lX11" |
| 17 | export X11_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/X11 -I$CLFS/usr/include/X11/extensions" |
| 18 | export XRENDER_LIBS="$X11_LIBS -lXrender" |
| 19 | export XRENDER_CFLAGS="$X11_CFLAGS" |
| 20 | export FREETYPE_LIBS="$X11_LIBS -lfreetype -lz" |
| 21 | export FREETYPE_CFLAGS="$X11_CFLAGS -I$CLFS/usr/include/freetype2" |
| 22 | export FONTCONFIG_LIBS="$X11_LIBS -lfontconfig" |
| 23 | export FONTCONFIG_CFLAGS="$X11_CFLAGS" |
| 24 | |
| 25 | ./configure --build=$CHOST \ |
| 26 | --host=$CTARGET \ |
| 27 | --prefix=/usr \ |
| 28 | --mandir=/usr/man |
| 29 | |
| 30 | make |
| 31 | make DESTDIR=$PKG install |
| 32 | } |