2005-03-12 12:05:38 +01:00
|
|
|
# New ports collection makefile for: poppler
|
|
|
|
# Date created: 03 March 2005
|
|
|
|
# Whom: marcus@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
First all, ahze did most of work. Thanks ahze! Last week or so, I am just
merely pick up and help him. Thanks to many testers in both private and
mailing list emails for report a few of build and dependencies problems.
Also, thanks to marcus and Chess Griffin for test in their tinderboxes.
x11/pixman: Update to 0.10.0
-------------------------------------------------------
Firefox 3 needs it. Orignal, the shared library was bumped and ahze has
added a new feature in our USE_GNOME=ltverhack by can control the number
of shared library. To control the number of shared library, add the
ltverhack:N. Right now pixman has USE_GNOME=ltverhack:9 to make it stays
same at libpixman-1.so.9. If anyone want to use ltverhack:N in one of your
port, you need to make sure the ABI doesn't change to use it..
-------------------------------------------------------
graphics/cairo: Update to 1.6.4
-------------------------------------------------------
Firefox 3 needs it. We have updated most cairo binding ports too.
-------------------------------------------------------
graphics/poppler: Update to 0.8.3
-------------------------------------------------------
The shared libraries version have been changed. All ports that depend on
poppler have PORTREVISION bump. The graphics/py-poppler has been updated
to 0.8.1 to work with newer poppler better. As for the poppler-qt, there
is no shared library version change.
-------------------------------------------------------
www/firefox3 and gecko ports related: Update to 3.0 final
-------------------------------------------------------
The bsd.gecko.mk has been moved from www/mozilla/ to Mk/. You no longer
need to include bsd.gecko.mk/Makefile.common by manual. We are keeping it
in backward compatibility, so the rest ports won't be break. We haven't
add some other ports to have Firefox 3 support yet, so feel free to send
us patch or commit it by yourself (to committers). However, view in
bsd.gecko.mk for document.
-------------------------------------------------------
Approved by: portmgr (marcus)
2008-06-30 22:16:22 +02:00
|
|
|
# $MCom: ports-stable/graphics/poppler/Makefile,v 1.8 2008/06/20 17:47:36 mezz Exp $
|
2005-03-12 12:05:38 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= poppler
|
2008-09-08 04:52:16 +02:00
|
|
|
PORTVERSION= 0.8.7
|
2008-08-04 04:28:01 +02:00
|
|
|
PORTREVISION?= 0
|
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
|
|
|
|
2008-07-03 18:13:44 +02:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
|
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
|
First all, ahze did most of work. Thanks ahze! Last week or so, I am just
merely pick up and help him. Thanks to many testers in both private and
mailing list emails for report a few of build and dependencies problems.
Also, thanks to marcus and Chess Griffin for test in their tinderboxes.
x11/pixman: Update to 0.10.0
-------------------------------------------------------
Firefox 3 needs it. Orignal, the shared library was bumped and ahze has
added a new feature in our USE_GNOME=ltverhack by can control the number
of shared library. To control the number of shared library, add the
ltverhack:N. Right now pixman has USE_GNOME=ltverhack:9 to make it stays
same at libpixman-1.so.9. If anyone want to use ltverhack:N in one of your
port, you need to make sure the ABI doesn't change to use it..
-------------------------------------------------------
graphics/cairo: Update to 1.6.4
-------------------------------------------------------
Firefox 3 needs it. We have updated most cairo binding ports too.
-------------------------------------------------------
graphics/poppler: Update to 0.8.3
-------------------------------------------------------
The shared libraries version have been changed. All ports that depend on
poppler have PORTREVISION bump. The graphics/py-poppler has been updated
to 0.8.1 to work with newer poppler better. As for the poppler-qt, there
is no shared library version change.
-------------------------------------------------------
www/firefox3 and gecko ports related: Update to 3.0 final
-------------------------------------------------------
The bsd.gecko.mk has been moved from www/mozilla/ to Mk/. You no longer
need to include bsd.gecko.mk/Makefile.common by manual. We are keeping it
in backward compatibility, so the rest ports won't be break. We haven't
add some other ports to have Firefox 3 support yet, so feel free to send
us patch or commit it by yourself (to committers). However, view in
bsd.gecko.mk for document.
-------------------------------------------------------
Approved by: portmgr (marcus)
2008-06-30 22:16:22 +02:00
|
|
|
USE_GNOME= gnomehack gnometarget libxml2 ltverhack
|
|
|
|
USE_AUTOTOOLS= libtool:15
|
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-23 11:36:51 +02:00
|
|
|
--with-html-dir=${DOCSDIR}
|
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)
|
First all, ahze did most of work. Thanks ahze! Last week or so, I am just
merely pick up and help him. Thanks to many testers in both private and
mailing list emails for report a few of build and dependencies problems.
Also, thanks to marcus and Chess Griffin for test in their tinderboxes.
x11/pixman: Update to 0.10.0
-------------------------------------------------------
Firefox 3 needs it. Orignal, the shared library was bumped and ahze has
added a new feature in our USE_GNOME=ltverhack by can control the number
of shared library. To control the number of shared library, add the
ltverhack:N. Right now pixman has USE_GNOME=ltverhack:9 to make it stays
same at libpixman-1.so.9. If anyone want to use ltverhack:N in one of your
port, you need to make sure the ABI doesn't change to use it..
-------------------------------------------------------
graphics/cairo: Update to 1.6.4
-------------------------------------------------------
Firefox 3 needs it. We have updated most cairo binding ports too.
-------------------------------------------------------
graphics/poppler: Update to 0.8.3
-------------------------------------------------------
The shared libraries version have been changed. All ports that depend on
poppler have PORTREVISION bump. The graphics/py-poppler has been updated
to 0.8.1 to work with newer poppler better. As for the poppler-qt, there
is no shared library version change.
-------------------------------------------------------
www/firefox3 and gecko ports related: Update to 3.0 final
-------------------------------------------------------
The bsd.gecko.mk has been moved from www/mozilla/ to Mk/. You no longer
need to include bsd.gecko.mk/Makefile.common by manual. We are keeping it
in backward compatibility, so the rest ports won't be break. We haven't
add some other ports to have Firefox 3 support yet, so feel free to send
us patch or commit it by yourself (to committers). However, view in
bsd.gecko.mk for document.
-------------------------------------------------------
Approved by: portmgr (marcus)
2008-06-30 22:16:22 +02:00
|
|
|
LIB_DEPENDS+= poppler.3:${PORTSDIR}/graphics/poppler
|
2008-07-03 18:13:44 +02:00
|
|
|
|
2006-04-30 02:47:21 +02:00
|
|
|
.if ${SLAVEPORT}=="gtk"
|
|
|
|
CONFIGURE_ARGS+=--enable-poppler-glib
|
|
|
|
USE_GNOME+= gtk20
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/glib
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/glib
|
2007-07-13 15:54:42 +02:00
|
|
|
.else
|
2008-07-03 18:13:44 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-poppler-glib \
|
|
|
|
--disable-gdk \
|
|
|
|
--disable-gtk-test
|
2007-07-13 15:54:42 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${SLAVEPORT}=="qt"
|
2006-04-30 02:47:21 +02:00
|
|
|
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"
|
2007-07-13 15:54:42 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-poppler-qt
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${SLAVEPORT}=="qt4"
|
2007-07-03 13:14:36 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-poppler-qt4
|
|
|
|
USE_QT_VER+= 4
|
First all, ahze did most of work. Thanks ahze! Last week or so, I am just
merely pick up and help him. Thanks to many testers in both private and
mailing list emails for report a few of build and dependencies problems.
Also, thanks to marcus and Chess Griffin for test in their tinderboxes.
x11/pixman: Update to 0.10.0
-------------------------------------------------------
Firefox 3 needs it. Orignal, the shared library was bumped and ahze has
added a new feature in our USE_GNOME=ltverhack by can control the number
of shared library. To control the number of shared library, add the
ltverhack:N. Right now pixman has USE_GNOME=ltverhack:9 to make it stays
same at libpixman-1.so.9. If anyone want to use ltverhack:N in one of your
port, you need to make sure the ABI doesn't change to use it..
-------------------------------------------------------
graphics/cairo: Update to 1.6.4
-------------------------------------------------------
Firefox 3 needs it. We have updated most cairo binding ports too.
-------------------------------------------------------
graphics/poppler: Update to 0.8.3
-------------------------------------------------------
The shared libraries version have been changed. All ports that depend on
poppler have PORTREVISION bump. The graphics/py-poppler has been updated
to 0.8.1 to work with newer poppler better. As for the poppler-qt, there
is no shared library version change.
-------------------------------------------------------
www/firefox3 and gecko ports related: Update to 3.0 final
-------------------------------------------------------
The bsd.gecko.mk has been moved from www/mozilla/ to Mk/. You no longer
need to include bsd.gecko.mk/Makefile.common by manual. We are keeping it
in backward compatibility, so the rest ports won't be break. We haven't
add some other ports to have Firefox 3 support yet, so feel free to send
us patch or commit it by yourself (to committers). However, view in
bsd.gecko.mk for document.
-------------------------------------------------------
Approved by: portmgr (marcus)
2008-06-30 22:16:22 +02:00
|
|
|
QT_COMPONENTS= gui corelib xml qtestlib moc_build
|
|
|
|
# It requires poppler/splash to be built unless you disable splash backend
|
|
|
|
# support to allow you use BUILD_WRKSRC here. It seems that splash backend
|
|
|
|
# can read more PDF files than without, tested with demos's poppler_qt4viewer.
|
2007-07-13 15:54:42 +02:00
|
|
|
#BUILD_WRKSRC= ${WRKSRC}/qt4
|
2007-07-03 13:14:36 +02:00
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/qt4
|
2007-07-13 15:54:42 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-poppler-qt4
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${SLAVEPORT}=="utils"
|
2006-05-02 02:37:23 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-utils
|
|
|
|
CONFLICTS= xpdf-[0-9]*
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/utils
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/utils
|
2008-07-03 18:13:44 +02:00
|
|
|
MAN1= pdffonts.1 pdfimages.1 pdfinfo.1 \
|
|
|
|
pdftohtml.1 pdftops.1 pdftotext.1 pdftoppm.1
|
2006-04-30 02:47:21 +02:00
|
|
|
.else
|
2007-07-13 15:54:42 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-utils
|
|
|
|
.endif
|
2007-07-14 23:31:07 +02:00
|
|
|
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-poppler-glib --disable-poppler-qt \
|
2008-07-03 18:13:44 +02:00
|
|
|
--disable-poppler-qt4 --disable-utils --disable-gdk \
|
|
|
|
--disable-gtk-test
|
2007-07-13 15:54:42 +02:00
|
|
|
|
2006-07-10 04:04:07 +02:00
|
|
|
.if defined(WITHOUT_CAIRO)
|
2008-07-03 18:13:44 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-cairo-output
|
2006-09-17 23:51:24 +02:00
|
|
|
.else
|
2008-07-03 18:13:44 +02:00
|
|
|
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
|
2006-07-10 04:04:07 +02:00
|
|
|
.endif
|
2007-07-14 23:31:07 +02:00
|
|
|
.endif
|
2006-04-30 02:47:21 +02:00
|
|
|
|
|
|
|
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
|
2008-07-03 20:45:44 +02:00
|
|
|
.if defined(SLAVEPORT) && ${SLAVEPORT}=="qt4"
|
|
|
|
@${REINPLACE_CMD} -e 's|MOCQT4=`.*|MOCQT4="${LOCALBASE}/bin/moc-qt4"|' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
.endif
|
2006-04-30 02:47:21 +02:00
|
|
|
|
|
|
|
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
|
2007-07-25 16:35:31 +02:00
|
|
|
.elif ${SLAVEPORT}=="qt4"
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/poppler-qt4.pc ${PREFIX}/libdata/pkgconfig
|
2006-04-30 02:47:21 +02:00
|
|
|
.endif
|
|
|
|
.endif
|
2005-03-12 12:05:38 +01:00
|
|
|
|
2006-04-30 02:47:21 +02:00
|
|
|
.include <bsd.port.post.mk>
|