2012-03-27 02:31:05 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.61 2012/03/27 06:31:05 kili Exp $
|
2006-06-18 09:09:44 -04:00
|
|
|
|
2007-07-31 18:22:01 -04:00
|
|
|
COMMENT-main= PDF rendering library
|
|
|
|
COMMENT-qt= qt interface to PDF rendering library
|
|
|
|
COMMENT-qt4= qt4 interface to PDF rendering library
|
2006-06-18 09:09:44 -04:00
|
|
|
|
2012-03-27 02:31:05 -04:00
|
|
|
V= 0.18.4
|
2006-10-29 06:03:26 -05:00
|
|
|
DISTNAME= poppler-$V
|
2006-06-18 09:09:44 -04:00
|
|
|
CATEGORIES= print
|
2009-10-26 15:23:45 -04:00
|
|
|
PKGNAME-main= poppler-$V
|
Security update to 0.10.6
Fixes CVE-2009-0799, CVE-2009-0800, CVE-2009-1179, CVE-2009-1180,
CVE-2009-1181, CVE-2009-1182, CVE-2009-1183, CVE-2009-1187,
CVE-2009-1188 and a couple of other bugs.
Detailed changelog at http://poppler.freedesktop.org/releases.html
Major bumps to all shared libs. I think that only libpoppler.so
needs a a bump, but bumps are cheap and don't hurt, and I may have
missed some changes when reading the diffs.
ok landry@ (who tested it with epdfview)
2009-04-22 08:14:15 -04:00
|
|
|
FULLPKGNAME-qt= poppler-qt-$V
|
|
|
|
FULLPKGNAME-qt4=poppler-qt4-$V
|
2011-11-26 14:45:29 -05:00
|
|
|
OLDSHIT = poppler-0.16.7
|
2006-10-29 06:03:26 -05:00
|
|
|
|
2011-11-26 14:45:29 -05:00
|
|
|
SHARED_LIBS += poppler 11.0
|
|
|
|
SHARED_LIBS += poppler-cpp 1.0
|
|
|
|
SHARED_LIBS += poppler-glib 9.0
|
2011-06-04 15:03:19 -04:00
|
|
|
SHARED_LIBS += poppler-qt 8.0
|
2011-11-26 14:45:29 -05:00
|
|
|
SHARED_LIBS += poppler-qt4 8.0
|
|
|
|
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} ${OLDSHIT}${EXTRACT_SUFX}
|
2006-06-18 09:09:44 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://poppler.freedesktop.org/
|
|
|
|
|
2011-07-08 17:08:46 -04:00
|
|
|
MAINTAINER= Matthias Kilian <kili@openbsd.org>
|
2010-10-12 03:00:04 -04:00
|
|
|
|
2008-10-28 08:59:55 -04:00
|
|
|
# GPLv2
|
2006-06-18 09:09:44 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
|
|
|
2007-03-24 09:21:26 -04:00
|
|
|
PSEUDO_FLAVORS=no_qt no_qt4
|
2010-11-18 16:27:23 -05:00
|
|
|
FLAVOR?=
|
2006-10-29 06:03:26 -05:00
|
|
|
|
2011-09-25 04:01:16 -04:00
|
|
|
NOT_FOR_ARCHS-qt4 = arm
|
|
|
|
|
|
|
|
MULTI_PACKAGES=-main -qt -qt4
|
|
|
|
|
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
|
2010-11-04 20:05:15 -04:00
|
|
|
|
2011-11-26 14:45:29 -05:00
|
|
|
cWANTLIB= expat freetype fontconfig jpeg m tiff z stdc++
|
2006-10-29 06:03:26 -05:00
|
|
|
|
2011-09-25 04:01:16 -04:00
|
|
|
.if ${BUILD_PACKAGES:M-qt}
|
2011-03-20 16:52:01 -04:00
|
|
|
MODULES+= x11/qt3
|
2010-10-09 04:05:30 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-poppler-qt
|
2007-03-24 09:21:26 -04:00
|
|
|
.endif
|
2010-10-09 04:05:30 -04:00
|
|
|
|
2011-11-26 14:45:29 -05:00
|
|
|
|
2011-09-25 04:01:16 -04:00
|
|
|
.if ${BUILD_PACKAGES:M-qt4}
|
2011-03-20 16:52:01 -04:00
|
|
|
MODULES+= x11/qt4
|
2010-10-09 04:05:30 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-poppler-qt4
|
2006-10-29 06:03:26 -05:00
|
|
|
.endif
|
|
|
|
|
2011-07-08 16:56:51 -04:00
|
|
|
# XXX g-ir-scanner failure with gcc3
|
2011-07-08 13:41:46 -04:00
|
|
|
.if ${COMPILER_VERSION:L:Mgcc4*}
|
|
|
|
PKG_ARGS+= -DGCC4=1
|
|
|
|
BUILD_DEPENDS+= devel/gobject-introspection
|
|
|
|
CONFIGURE_ARGS+=--enable-introspection
|
|
|
|
.else
|
|
|
|
PKG_ARGS+= -DGCC4=0
|
|
|
|
CONFIGURE_ARGS+=--disable-introspection
|
|
|
|
.endif
|
|
|
|
|
2011-03-20 16:52:01 -04:00
|
|
|
MODULES+= devel/gettext converters/libiconv
|
2007-12-07 14:55:58 -05:00
|
|
|
|
|
|
|
LIB_DEPENDS-main=${MODGETTEXT_LIB_DEPENDS} \
|
2011-03-20 16:52:01 -04:00
|
|
|
${MODLIBICONV_LIB_DEPENDS} \
|
2012-02-27 13:53:58 -05:00
|
|
|
devel/glib2 \
|
2011-11-26 14:45:29 -05:00
|
|
|
devel/libffi \
|
|
|
|
graphics/cairo \
|
2010-11-20 04:48:38 -05:00
|
|
|
graphics/lcms \
|
|
|
|
graphics/openjpeg \
|
2011-11-26 14:45:29 -05:00
|
|
|
graphics/png \
|
|
|
|
graphics/tiff
|
|
|
|
|
2010-05-08 13:09:48 -04:00
|
|
|
LIB_DEPENDS-qt= ${MODQT3_LIB_DEPENDS} \
|
|
|
|
${MODLIBICONV_LIB_DEPENDS} \
|
2011-11-26 14:45:29 -05:00
|
|
|
print/poppler \
|
|
|
|
graphics/png \
|
|
|
|
graphics/tiff
|
|
|
|
|
2010-11-20 04:48:38 -05:00
|
|
|
LIB_DEPENDS-qt4=x11/qt4 \
|
2010-10-09 04:05:30 -04:00
|
|
|
${MODGETTEXT_LIB_DEPENDS} \
|
2010-11-20 04:48:38 -05:00
|
|
|
print/poppler
|
2006-11-21 05:07:26 -05:00
|
|
|
|
2011-11-26 14:45:29 -05:00
|
|
|
WANTLIB-main= ${cWANTLIB} Xext Xfixes c ffi \
|
|
|
|
glib-2.0 gobject-2.0 gthread-2.0 \
|
|
|
|
pixman-1 openjpeg \
|
|
|
|
X11 Xau Xdamage Xdmcp Xrender cairo pcre png \
|
|
|
|
pthread pthread-stubs xcb xcb-render lcms GL Xxf86vm \
|
2010-11-18 17:30:04 -05:00
|
|
|
drm xcb-shm ${MODGETTEXT_WANTLIB}
|
2011-11-26 14:45:29 -05:00
|
|
|
WANTLIB-qt= ${cWANTLIB} lcms openjpeg poppler png ${MODQT3_WANTLIB} \
|
2010-11-06 06:18:38 -04:00
|
|
|
${MODLIBICONV_WANTLIB}
|
2011-11-26 14:45:29 -05:00
|
|
|
WANTLIB-qt4= ${cWANTLIB} ICE QtCore QtGui QtXml SM X11 Xext Xi \
|
|
|
|
Xinerama Xrender lcms \
|
|
|
|
openjpeg png poppler \
|
|
|
|
QtCore QtGui QtXml
|
2006-10-29 06:03:26 -05:00
|
|
|
|
2012-02-21 11:21:41 -05:00
|
|
|
CONFIGURE_STYLE=autoconf
|
2011-11-26 14:45:29 -05:00
|
|
|
AUTOCONF_VERSION=2.68
|
2010-10-09 04:05:30 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-xpdf-headers \
|
2011-11-12 05:50:53 -05:00
|
|
|
--enable-poppler-cpp \
|
2011-03-20 16:52:01 -04:00
|
|
|
--enable-utils \
|
2012-02-27 13:53:58 -05:00
|
|
|
--enable-zlib \
|
|
|
|
--disable-gtk-test
|
2006-10-29 06:03:26 -05:00
|
|
|
|
2011-11-12 05:50:53 -05:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
|
2010-12-24 09:02:12 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2006-06-18 09:09:44 -04:00
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
2011-11-26 14:45:29 -05:00
|
|
|
post-extract:
|
|
|
|
cd ${WRKDIST} && \
|
|
|
|
for i in poppler-qt-uninstalled.pc.in poppler-qt.pc.cmake \
|
|
|
|
poppler-qt.pc.in; do \
|
|
|
|
ln -sf ../${OLDSHIT}/$$i $$i; \
|
|
|
|
done; \
|
|
|
|
ln -sf ../../${OLDSHIT}/m4/qt.m4 m4/qt.m4
|
|
|
|
cd ${WRKDIST} && cp -R ../${OLDSHIT}/qt qt
|
|
|
|
|
2006-06-18 09:09:44 -04:00
|
|
|
.include <bsd.port.mk>
|