#NEEDS expat-sc.inc fontconfig-sc.inc pixman-sc.inc build_cairo() { . ./expat-sc.inc . ./fontconfig-sc.inc . ./pixman-sc.inc HERE=`pwd` NAME=cairo VER=1.10.2 BUILDDEPS="graphics-libs-1.tcz graphics-libs-1-dev.tcz compiletc.tcz Xorg-7.6-dev.tcz" #DEPS= if [ ! -f cairo-1.10.2.tar.gz ]; then wget http://cairographics.org/releases/cairo-1.10.2.tar.gz fi for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib" export CPPFLAGS="-I$PKGPATH/include" export PATH="$PKGPATH/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" if [ ! -f "$TMPDIR"/pixman ]; then build_pixman "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/fontconfig ]; then build_fontconfig "$PKGPATH" || exit 1 fi tar xvf cairo-1.10.2.tar.gz || exit 1 cd cairo-1.10.2 || exit 1 ./configure --prefix="$PKGPATH" --with-x || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/cairo }