#NEEDS expat-sc.inc fontconfig-sc.inc pixman-sc.inc build_cairo() { . ./libxcb-sc.inc || exit 1 . ./expat-sc.inc || exit 1 . ./fontconfig-sc.inc || exit 1 . ./pixman-sc.inc || exit 1 . ./libxft-sc.inc || exit 1 HERE=`pwd` BUILDDEPS=" compiletc.tcz libxft.tcz libxft-dev.tcz Xorg-7.6-lib.tcz Xorg-7.6-dev.tcz" #DEPS= 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/localbin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$PKGPATH/lib" if [ ! -f "$TMPDIR"/libxcb ]; then build_libxcb "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/pixman ]; then build_pixman "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/fontconfig ]; then build_fontconfig "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libxft ]; then build_libxft "$PKGPATH" || exit 1 fi ldconfig tar xvf cairo-1.10.2.tar.xz || exit 1 cd cairo-1.10.2 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin --enable-xcb --enable-tee || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/cairo }