#!/bin/sh CWD=`pwd` VERSION=2.4.1 echo "YODESTDIR=$DESTDIR" if [ "$DESTDIR" = "" ]; then DESTDIR=/ fi cat << EOF *************************************************** * Building fontconfig-$VERSION *************************************************** EOF # Step one is to remove existing fontconfig cruft: rm --verbose -f \ $DESTDIR/usr/lib/pkgconfig/fontconfig.pc \ $DESTDIR/usr/bin/fontconfig-config \ $DESTDIR/usr/lib/libfontconfig.* \ $DESTDIR/usr/X11R6/lib/pkgconfig/fontconfig.pc \ $DESTDIR/usr/X11R6/bin/fontconfig-config \ $DESTDIR/usr/X11R6/lib/libfontconfig.* \ $DESTDIR/usr/X11R6/man/man?/fc-* rm --verbose -rf \ $DESTDIR/usr/include/fontconfig \ $DESTDIR/usr/X11R6/include/fontconfig cd /tmp rm -rf fontconfig-$VERSION tar xjf $CWD/fontconfig-$VERSION.tar.bz2 cd fontconfig-$VERSION chown -R root:root . find . -perm 666 -exec chmod 644 {} \; find . -perm 664 -exec chmod 644 {} \; find . -perm 600 -exec chmod 644 {} \; find . -perm 444 -exec chmod 644 {} \; find . -perm 400 -exec chmod 644 {} \; find . -perm 440 -exec chmod 644 {} \; find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 511 -exec chmod 755 {} \; find . -perm 711 -exec chmod 755 {} \; find . -perm 555 -exec chmod 755 {} \; # The wonderful extended version of the font so generously # opened up for free modification and distribution by one # for the previously proprietary font founderies, and that # Stepan Roh did such a marvelous job on getting the ball # rolling with should clearly (IMHO) be the default font: zcat $CWD/fontconfig.dejavu.diff.gz | patch -p1 --verbose || exit 1 CFLAGS="-O2" \ ./configure \ --prefix=/usr/X11R6 \ --mandir=/usr/X11R6/man \ --sysconfdir=/etc \ --localstatedir=/var # Uses a currently non-functional sgml tool, thus '-i': make -i make -i install DESTDIR=$DESTDIR ldconfig mkdir -p $DESTDIR/usr/X11R6/lib/X11/doc/fontconfig-$VERSION cp -a \ AUTHORS COPYING INSTALL NEWS README \ $DESTDIR/usr/X11R6/lib/X11/doc/fontconfig-$VERSION