2009-08-10 02:29:51 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.25 2009/08/10 06:34:09 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
|
|
|
|
2009-05-26 09:05:46 -04:00
|
|
|
V= 0.10.7
|
2006-10-29 06:03:26 -05:00
|
|
|
DISTNAME= poppler-$V
|
2006-06-18 09:09:44 -04:00
|
|
|
CATEGORIES= print
|
2009-08-10 02:29:51 -04:00
|
|
|
PKGNAME-main= poppler-$Vp0
|
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
|
2006-10-29 06:03:26 -05:00
|
|
|
|
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
|
|
|
SHARED_LIBS += poppler 5.0 # .2.0
|
|
|
|
SHARED_LIBS += poppler-glib 5.0 # .4.0
|
|
|
|
SHARED_LIBS += poppler-qt 5.0 # .2.0
|
|
|
|
SHARED_LIBS += poppler-qt4 4.0 # .4.0
|
2006-06-18 09:09:44 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://poppler.freedesktop.org/
|
|
|
|
|
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}
|
|
|
|
|
2008-01-21 17:52:43 -05:00
|
|
|
QT4INC=
|
|
|
|
|
2007-03-24 09:21:26 -04:00
|
|
|
PSEUDO_FLAVORS=no_qt no_qt4
|
2006-11-21 05:07:26 -05:00
|
|
|
MULTI_PACKAGES=-main
|
2006-10-29 06:03:26 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if empty(FLAVOR:L:Mno_qt)
|
|
|
|
MULTI_PACKAGES+=-qt
|
|
|
|
|
|
|
|
# the configure test for qt is highly bogus, so instead, we keep it disabled
|
|
|
|
# and override the correct variables so that it gets built anyways.
|
|
|
|
|
2007-03-24 09:21:26 -04:00
|
|
|
MAKE_FLAGS+= POPPLER_QT_CXXFLAGS='-pthread -I${MODQT3_INCDIR}' \
|
|
|
|
POPPLER_QT_LIBS='-pthread -L${MODQT3_LIBDIR} -lqt-mt' \
|
2006-10-29 06:03:26 -05:00
|
|
|
qt_subdir=qt \
|
|
|
|
qt_pc_file=poppler-qt.pc
|
|
|
|
|
2007-03-24 09:21:26 -04:00
|
|
|
MODULES+= x11/qt3
|
|
|
|
.endif
|
|
|
|
.if empty(FLAVOR:L:Mno_qt4)
|
|
|
|
MULTI_PACKAGES+=-qt4
|
2007-12-07 14:55:58 -05:00
|
|
|
MAKE_FLAGS+= POPPLER_QT4_CFLAGS='-pthread -I${X11BASE}/include -I${MODQT4_INCDIR}' \
|
2007-03-24 09:21:26 -04:00
|
|
|
POPPLER_QT4_LIBS='-pthread -L${MODQT4_LIBDIR} -lQtCore -lQtGui -lQtXml' \
|
|
|
|
qt4_subdir=qt4 \
|
|
|
|
qt4_pc_file=poppler-qt4.pc \
|
|
|
|
poppler_arthur=libpoppler-arthur.la \
|
|
|
|
libpoppler_arthur_la_SOURCES="ArthurOutputDev.h ArthurOutputDev.cc" \
|
2008-01-21 17:52:43 -05:00
|
|
|
am_libpoppler_arthur_la_OBJECTS=ArthurOutputDev.lo \
|
2007-03-24 09:21:26 -04:00
|
|
|
arthur_includes='$$(POPPLER_QT4_CXXFLAGS)' \
|
|
|
|
arthur_libs='$$(POPPLER_QT4_LIBS)'
|
|
|
|
|
|
|
|
MODULES+= x11/qt4
|
2008-01-21 17:52:43 -05:00
|
|
|
QT4INC= -I${MODQT4_INCDIR}
|
2006-10-29 06:03:26 -05:00
|
|
|
.endif
|
|
|
|
|
2008-11-19 13:27:16 -05:00
|
|
|
WANTLIB= expat freetype fontconfig jpeg m z
|
2006-11-21 05:07:26 -05:00
|
|
|
|
2007-12-07 14:55:58 -05:00
|
|
|
MODULES+= devel/gettext
|
|
|
|
|
|
|
|
LIB_DEPENDS-main=${MODGETTEXT_LIB_DEPENDS} \
|
|
|
|
gdk-x11-2.0,gdk_pixbuf-2.0::x11/gtk+2 \
|
|
|
|
xml2::textproc/libxml
|
2007-03-24 09:21:26 -04:00
|
|
|
LIB_DEPENDS-qt= ${MODQT3_LIB_DEPENDS} poppler::print/poppler
|
|
|
|
LIB_DEPENDS-qt4=QtCore,QtGui,QtXml::x11/qt4 poppler::print/poppler
|
2006-11-21 05:07:26 -05:00
|
|
|
|
2008-11-19 13:27:16 -05:00
|
|
|
WANTLIB-main= ${WANTLIB} Xcursor Xext Xfixes Xi Xinerama Xrandr gio-2.0 \
|
2007-07-31 18:22:01 -04:00
|
|
|
glib-2.0 gmodule-2.0 gobject-2.0 pango-1.0 pangocairo-1.0 \
|
2008-11-19 13:27:16 -05:00
|
|
|
pangoft2-1.0 pixman-1 \
|
2009-08-10 02:29:51 -04:00
|
|
|
X11 Xau Xcomposite Xdamage Xdmcp Xrender cairo glitz pcre png \
|
|
|
|
pthread-stubs xcb
|
2007-12-07 14:55:58 -05:00
|
|
|
WANTLIB-qt= ${WANTLIB} iconv xml2
|
|
|
|
WANTLIB-qt4= ${WANTLIB} iconv xml2
|
2006-10-29 06:03:26 -05:00
|
|
|
|
2006-06-18 09:09:44 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ARGS= --enable-xpdf-headers \
|
|
|
|
--disable-poppler-qt \
|
|
|
|
--disable-poppler-qt4 \
|
|
|
|
--disable-utils \
|
|
|
|
--enable-zlib
|
2006-10-29 06:03:26 -05:00
|
|
|
|
2008-01-21 17:52:43 -05:00
|
|
|
CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include ${QT4INC}" \
|
2007-12-07 14:55:58 -05:00
|
|
|
CFLAGS="-I${LOCALBASE}/include" \
|
2008-10-28 08:59:55 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
MOCQT4=${MODQT4_MOC}
|
2006-06-18 09:09:44 -04:00
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
USE_X11= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|