# $Id: poppler-qt4-0.12.1-r1.smage2 3802 2009-11-04 09:36:52Z niro $ PNAME="poppler-qt4" PVER="0.15.0" PBUILD="r1" PCATEGORIE="app-text" STATE="unstable" DESCRIPTION="Poppler bindings for QT4." HOMEPAGE="http://poppler.freedesktop.org/" DEPEND="== app-text/poppler-${PVER}" SDEPEND=">= dev-util/pkgconfig-0.25 >= sys-dev/automake-3 >= sys-dev/autoconf-4 >= sys-apps/sed-4" SRCFILE="poppler-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/poppler-${PVER}" sminclude mbuild qt4 SRC_URI=( http://poppler.freedesktop.org/${SRCFILE} mirror://poppler/${SRCFILE} mirror://poppler/poppler-0.10.6-bindings.patch ) UP2DATE="updatecmd -listonly ${HOMEPAGE}/releases.html | firsttarball gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # only install the libs and compile against system libs mpatch poppler-0.10.6-bindings.patch || die # fix qt4 include pathes -> we are using include/qt sed -i 's:qt4_incdirs="$QTDIR/include:&/qt:g' m4/qt.m4 || die # moc for qt4 may not be found, if qt3 is installed sed -i 's:MOCQT4=`which moc`:MOCQT4="$QTDIR/bin/moc":g' configure.ac || die autoreconf --install --force --verbose || die } src_compile() { cd ${SRCDIR} mconfigure \ --enable-opi \ --enable-poppler-qt4 \ --disable-poppler-qt \ --disable-cairo-output \ --disable-poppler-glib \ || die # needed to build qt4 bindings successfully mmake -C poppler libpoppler-arthur.la || die mmake || die }