2005-03-12 12:05:38 +01:00
|
|
|
# New ports collection makefile for: poppler
|
|
|
|
# Date created: 03 March 2005
|
|
|
|
# Whom: marcus@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2007-07-03 13:25:39 +02:00
|
|
|
# $MCom: ports/graphics/poppler/Makefile,v 1.36 2007/07/01 20:46:42 mezz Exp $
|
2005-03-12 12:05:38 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= poppler
|
2007-07-03 13:14:36 +02:00
|
|
|
PORTVERSION= 0.5.9
|
|
|
|
PORTREVISION?= 1
|
2005-03-12 12:05:38 +01:00
|
|
|
CATEGORIES= graphics print
|
2005-03-14 06:16:59 +01:00
|
|
|
MASTER_SITES= http://poppler.freedesktop.org/
|
2005-03-12 12:05:38 +01:00
|
|
|
|
2006-04-30 02:47:21 +02:00
|
|
|
MAINTAINER?= gnome@FreeBSD.org
|
|
|
|
COMMENT?= A PDF rendering library
|
2005-03-12 12:05:38 +01:00
|
|
|
|
2006-10-14 10:35:50 +02:00
|
|
|
RUN_DEPENDS= poppler-data>0:${PORTSDIR}/graphics/poppler-data
|
|
|
|
|
2005-03-12 12:05:38 +01:00
|
|
|
USE_GMAKE= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-07-03 13:14:36 +02:00
|
|
|
USE_GNOME= gnomehack gnometarget libxml2
|
2006-10-14 10:35:50 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-02-01 18:48:05 +01:00
|
|
|
CONFIGURE_ARGS= --enable-zlib \
|
2006-04-30 02:47:21 +02:00
|
|
|
--enable-xpdf-headers \
|
2007-07-03 13:14:36 +02:00
|
|
|
--with-html-dir=${DOCSDIR} \
|
|
|
|
--mandir=${PREFIX}/man
|
2007-07-03 13:25:39 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 ${PTHREAD_CFLAGS}" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
2006-04-30 02:47:21 +02:00
|
|
|
|
2006-07-10 04:04:07 +02:00
|
|
|
.if !defined(SLAVEPORT)
|
|
|
|
OPTIONS= CAIRO "Enable cairo output backend" on
|
|
|
|
.endif
|
|
|
|
|
2006-04-30 02:47:21 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(SLAVEPORT)
|
|
|
|
LIB_DEPENDS+= poppler.1:${PORTSDIR}/graphics/poppler
|
|
|
|
.if ${SLAVEPORT}=="gtk"
|
|
|
|
CONFIGURE_ARGS+=--enable-poppler-glib
|
|
|
|
USE_GNOME+= gtk20
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/glib
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/glib
|
|
|
|
.elif ${SLAVEPORT}=="qt"
|
|
|
|
CONFIGURE_ARGS+=--enable-poppler-qt
|
|
|
|
USE_QT_VER+= 3
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/qt
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/qt
|
2007-07-03 13:14:36 +02:00
|
|
|
.include "${PORTSDIR}/Mk/bsd.kde.mk"
|
|
|
|
.elif ${SLAVEPORT}=="qt4"
|
|
|
|
CONFIGURE_ARGS+=--enable-poppler-qt4
|
|
|
|
USE_QT_VER+= 4
|
|
|
|
QT_COMPONENTS= gui corelib xml qtestlib
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/qt4
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/qt4
|
2006-04-30 02:47:21 +02:00
|
|
|
.include "${PORTSDIR}/Mk/bsd.kde.mk"
|
2006-05-02 02:37:23 +02:00
|
|
|
.elif ${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
|
2006-04-30 02:47:21 +02:00
|
|
|
.endif
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-poppler-glib --disable-poppler-qt \
|
2006-05-02 02:37:23 +02:00
|
|
|
--disable-poppler-qt4 --disable-utils
|
2006-07-10 04:04:07 +02:00
|
|
|
.if defined(WITHOUT_CAIRO)
|
|
|
|
CONFIGURE_ARGS+= --disable-cairo-output
|
2006-09-17 23:51:24 +02:00
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
|
2006-07-10 04:04:07 +02:00
|
|
|
.endif
|
2006-04-30 02:47:21 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.if defined(SLAVEPORT) && ${SLAVEPORT}=="qt"
|
2007-07-03 13:25:39 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local/qt/include|${LOCALBASE}/include|; \
|
|
|
|
s|/usr/local/qt/lib|${LOCALBASE}/lib|' \
|
2006-04-30 02:47:21 +02:00
|
|
|
${WRKSRC}/configure
|
2007-02-13 01:16:29 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|$$QTDIR|${QT_PREFIX}|' ${WRKSRC}/configure
|
2006-04-30 02:47:21 +02:00
|
|
|
.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
|
|
|
|
.endif
|
|
|
|
.endif
|
2005-03-12 12:05:38 +01:00
|
|
|
|
2006-04-30 02:47:21 +02:00
|
|
|
.include <bsd.port.post.mk>
|