##NOTE: this uses cairo and other things from gtk2.scm, so ## it needs it installed to work, intended as part of ## epdfview. build_poppler() { HERE=`pwd` NAME=poppler VER=0.18.3 BUILDEPS="compiletc.tcz" #DEPS= . ./tiff-sc.inc || exit 1 . ./lcms-sc.inc || exit 1 . ./libjpeg-turbo-sc.inc || exit 1 . ./openjpeg-sc.inc || exit 1 . ./poppler-data-sc.inc || exit 1 . ./pango-sc.inc 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 -L/apps/gtk2/lib" export CPPFLAGS="-I$PKGPATH/include -I/apps/gtk2/include" export PATH="$PKGPATH/bin:/apps/gtk2/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:/apps/gtk2/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$PKGPATH/lib:/apps/gtk2/lib:$LD_LIBRARY_PATH" if [ ! -f "$TMPDIR"/tiff ]; then build_tiff "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/lcms ]; then build_lcms "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/openjpeg ]; then build_openjpeg "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/poppler-data ]; then build_poppler-data "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libjpeg-turbo ]; then build_libjpeg-turbo "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/pango ]; then build_pango "$PKGPATH" || exit 1 fi tar xvf poppler-0.18.3.tar.gz || exit 1 cd poppler-0.18.3 ./configure --prefix="$PKGPATH" --enable-poppler-glib \ --disable-static \ --enable-cairo-output \ --enable-xpdf-headers \ --enable-libjpeg --enable-zlib || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/poppler }