diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-03-24 22:12:47 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-03-24 22:12:47 +0800 |
commit | c92e393a2f49fb071ec395cdc547827de00b20f1 (patch) | |
tree | ee95ad4745085d1f07e78b2dc83bba941ded103b /graphics/poppler/Makefile | |
parent | fe0cb6ff1b91aa57f2ad8207559b8ff038570ea0 (diff) | |
download | marcuscom-ports-c92e393a2f49fb071ec395cdc547827de00b20f1.tar marcuscom-ports-c92e393a2f49fb071ec395cdc547827de00b20f1.tar.gz marcuscom-ports-c92e393a2f49fb071ec395cdc547827de00b20f1.tar.bz2 marcuscom-ports-c92e393a2f49fb071ec395cdc547827de00b20f1.tar.lz marcuscom-ports-c92e393a2f49fb071ec395cdc547827de00b20f1.tar.xz marcuscom-ports-c92e393a2f49fb071ec395cdc547827de00b20f1.tar.zst marcuscom-ports-c92e393a2f49fb071ec395cdc547827de00b20f1.zip |
Update to 0.7.3
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10823 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics/poppler/Makefile')
-rw-r--r-- | graphics/poppler/Makefile | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/graphics/poppler/Makefile b/graphics/poppler/Makefile new file mode 100644 index 000000000..0e778d996 --- /dev/null +++ b/graphics/poppler/Makefile @@ -0,0 +1,108 @@ +# New ports collection makefile for: poppler +# Date created: 03 March 2005 +# Whom: marcus@FreeBSD.org +# +# $FreeBSD$ +# $MCom: ports-stable/graphics/poppler/Makefile,v 1.4 2007/11/30 04:35:05 marcus Exp $ +# + +PORTNAME= poppler +PORTVERSION= 0.7.3 +PORTREVISION?= 0 +CATEGORIES= graphics print +MASTER_SITES= http://poppler.freedesktop.org/ + +MAINTAINER?= gnome@FreeBSD.org +COMMENT?= A PDF rendering library + +RUN_DEPENDS= poppler-data>0:${PORTSDIR}/graphics/poppler-data + +USE_GMAKE= yes +USE_GNOME= gnomehack gnometarget libxml2 ltverhack +USE_AUTOTOOLS= libtool:15 +USE_LDCONFIG= yes +CONFIGURE_ARGS= --enable-zlib \ + --enable-xpdf-headers \ + --with-html-dir=${DOCSDIR} +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 ${PTHREAD_CFLAGS}" \ + LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" + +.if !defined(SLAVEPORT) +OPTIONS= CAIRO "Enable cairo output backend" on +.endif + +.include <bsd.port.pre.mk> + +.if defined(SLAVEPORT) +LIB_DEPENDS+= poppler.3:${PORTSDIR}/graphics/poppler +.if ${SLAVEPORT}=="gtk" +CONFIGURE_ARGS+=--enable-poppler-glib +USE_GNOME+= gtk20 +BUILD_WRKSRC= ${WRKSRC}/glib +INSTALL_WRKSRC= ${WRKSRC}/glib +.else +CONFIGURE_ARGS+=--disable-poppler-glib +.endif + +.if ${SLAVEPORT}=="qt" +CONFIGURE_ARGS+=--enable-poppler-qt +USE_QT_VER+= 3 +BUILD_WRKSRC= ${WRKSRC}/qt +INSTALL_WRKSRC= ${WRKSRC}/qt +.include "${PORTSDIR}/Mk/bsd.kde.mk" +.else +CONFIGURE_ARGS+=--disable-poppler-qt +.endif + +.if ${SLAVEPORT}=="qt4" +CONFIGURE_ARGS+=--enable-poppler-qt4 +USE_QT_VER+= 4 +QT_COMPONENTS= gui corelib xml qtestlib moc_build +#BUILD_WRKSRC= ${WRKSRC}/qt4 +INSTALL_WRKSRC= ${WRKSRC}/qt4 +.else +CONFIGURE_ARGS+=--disable-poppler-qt4 +.endif + +.if ${SLAVEPORT}=="utils" +CONFIGURE_ARGS+=--enable-utils +CONFLICTS= xpdf-[0-9]* +BUILD_WRKSRC= ${WRKSRC}/utils +INSTALL_WRKSRC= ${WRKSRC}/utils +MAN1= pdffonts.1 pdfimages.1 pdfinfo.1 \ + pdftohtml.1 pdftops.1 pdftotext.1 pdftoppm.1 +.else +CONFIGURE_ARGS+=--disable-utils +.endif + +.else +CONFIGURE_ARGS+=--disable-poppler-glib --disable-poppler-qt \ + --disable-poppler-qt4 --disable-utils + +.if defined(WITHOUT_CAIRO) +CONFIGURE_ARGS+= --disable-cairo-output +.else +LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo +.endif +.endif + +post-patch: +.if defined(SLAVEPORT) && ${SLAVEPORT}=="qt" + @${REINPLACE_CMD} -e 's|/usr/local/qt/include|${LOCALBASE}/include|; \ + s|/usr/local/qt/lib|${LOCALBASE}/lib|' \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|$$QTDIR|${QT_PREFIX}|' ${WRKSRC}/configure +.endif + +post-install: +.if defined(SLAVEPORT) +.if ${SLAVEPORT}=="gtk" + ${INSTALL_DATA} ${WRKSRC}/poppler-glib.pc ${PREFIX}/libdata/pkgconfig +.elif ${SLAVEPORT}=="qt" + ${INSTALL_DATA} ${WRKSRC}/poppler-qt.pc ${PREFIX}/libdata/pkgconfig +.elif ${SLAVEPORT}=="qt4" + ${INSTALL_DATA} ${WRKSRC}/poppler-qt4.pc ${PREFIX}/libdata/pkgconfig +.endif +.endif + +.include <bsd.port.post.mk> |