2013-01-21 14:08:00 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.71 2013/01/21 19:08:00 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
|
2012-06-06 14:27:34 -04:00
|
|
|
COMMENT-utils= PDF conversion tools and utilities
|
2006-06-18 09:09:44 -04:00
|
|
|
|
2013-01-21 14:08:00 -05:00
|
|
|
V= 0.22.0
|
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
|
2012-11-05 14:32:27 -05:00
|
|
|
PKGNAME-utils= poppler-utils-$V
|
2012-06-06 14:27:34 -04:00
|
|
|
PKGNAME-qt= poppler-qt-$V
|
|
|
|
PKGNAME-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
|
|
|
|
2013-01-21 14:08:00 -05:00
|
|
|
SHARED_LIBS += poppler 16.0 # 34.0
|
|
|
|
SHARED_LIBS += poppler-glib 12.0 # 14.0
|
|
|
|
SHARED_LIBS += poppler-qt 11.0 # 3.0
|
|
|
|
SHARED_LIBS += poppler-qt4 12.0 # 6.0
|
|
|
|
SHARED_LIBS += poppler-cpp 4.0 # 2.0
|
2012-09-27 14:45:34 -04:00
|
|
|
|
2011-11-26 14:45:29 -05:00
|
|
|
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}
|
|
|
|
|
2012-08-28 15:13:11 -04:00
|
|
|
PSEUDO_FLAVORS=no_qt no_qt4 bootstrap
|
|
|
|
# XXX not strictly a bootstrap loop, but on the critical path for libreoffice
|
|
|
|
FLAVOR?=no_qt no_qt4 bootstrap
|
2006-10-29 06:03:26 -05:00
|
|
|
|
2011-09-25 04:01:16 -04:00
|
|
|
NOT_FOR_ARCHS-qt4 = arm
|
|
|
|
|
2012-06-06 14:27:34 -04:00
|
|
|
MULTI_PACKAGES=-main -qt -qt4 -utils
|
2011-09-25 04:01:16 -04:00
|
|
|
|
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
|
2012-09-27 14:45:34 -04:00
|
|
|
cWANTLIB= expat freetype fontconfig jpeg m pthread 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-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
|
|
|
|
|
2012-06-06 14:27:34 -04:00
|
|
|
MODULES+= devel/gettext
|
2011-07-08 13:41:46 -04:00
|
|
|
|
2012-06-06 14:27:34 -04:00
|
|
|
BUILD_DEPENDS+= devel/gobject-introspection
|
2007-12-07 14:55:58 -05:00
|
|
|
|
|
|
|
LIB_DEPENDS-main=${MODGETTEXT_LIB_DEPENDS} \
|
2012-02-27 13:53:58 -05:00
|
|
|
devel/glib2 \
|
2011-11-26 14:45:29 -05:00
|
|
|
graphics/cairo \
|
2012-07-13 11:03:19 -04:00
|
|
|
graphics/lcms2 \
|
2010-11-20 04:48:38 -05:00
|
|
|
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} \
|
2012-06-06 14:27:34 -04:00
|
|
|
print/poppler
|
|
|
|
|
|
|
|
LIB_DEPENDS-qt4=${MODQT4_LIB_DEPENDS} \
|
|
|
|
print/poppler
|
2011-11-26 14:45:29 -05:00
|
|
|
|
2012-06-06 14:27:34 -04:00
|
|
|
LIB_DEPENDS-utils=${MODGETTEXT_LIB_DEPENDS} \
|
2010-11-20 04:48:38 -05:00
|
|
|
print/poppler
|
2006-11-21 05:07:26 -05:00
|
|
|
|
2013-01-21 14:08:00 -05:00
|
|
|
WANTLIB-main= ${cWANTLIB} Xext ffi \
|
|
|
|
gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0 \
|
2011-11-26 14:45:29 -05:00
|
|
|
pixman-1 openjpeg \
|
2013-01-21 14:08:00 -05:00
|
|
|
X11 Xau Xdmcp Xrender cairo pcre png \
|
|
|
|
pthread-stubs xcb xcb-render lcms2 \
|
|
|
|
xcb-shm ${MODGETTEXT_WANTLIB}
|
2012-07-13 11:03:19 -04:00
|
|
|
WANTLIB-qt= ${cWANTLIB} lcms2 openjpeg poppler png ${MODQT3_WANTLIB}
|
2012-06-06 14:27:34 -04:00
|
|
|
WANTLIB-qt4= ${cWANTLIB} ${MODQT4_WANTLIB} ICE QtGui QtXml SM X11 Xext Xi \
|
2012-07-13 11:03:19 -04:00
|
|
|
Xinerama Xrender lcms2 openjpeg png poppler QtCore QtGui QtXml
|
2013-01-21 14:08:00 -05:00
|
|
|
WANTLIB-utils= X11 Xau Xdmcp Xext Xrender \
|
|
|
|
c cairo expat ffi fontconfig freetype glib-2.0 \
|
2012-07-13 11:03:19 -04:00
|
|
|
gobject-2.0 gthread-2.0 jpeg lcms2 m pcre pixman-1 png \
|
2012-06-06 14:27:34 -04:00
|
|
|
pthread pthread-stubs stdc++ tiff xcb xcb-render xcb-shm \
|
|
|
|
openjpeg poppler z ${cWANTLIB} ${MODGETTEXT_WANTLIB}
|
2006-10-29 06:03:26 -05:00
|
|
|
|
2012-02-21 11:21:41 -05:00
|
|
|
CONFIGURE_STYLE=autoconf
|
2012-09-27 14:45:34 -04:00
|
|
|
AUTOCONF_VERSION=2.69
|
2012-06-06 14:27:34 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-gtk-doc \
|
|
|
|
--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" \
|
2012-11-05 14:32:27 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
LIBJPEG_CFLAGS="-I${LOCALBASE}/include"
|
2006-06-18 09:09:44 -04:00
|
|
|
|
2012-09-21 10:48:05 -04:00
|
|
|
# If one of these tools is found at configure stage, it might be used,
|
|
|
|
# no matter whether we use --disable-gtk-doc or not.
|
|
|
|
CONFIGURE_ENV +=ac_cv_path_GTKDOC_CHECK="" \
|
|
|
|
ac_cv_path_GTKDOC_REBASE="" \
|
|
|
|
ac_cv_path_GTKDOC_MKPDF=""
|
|
|
|
|
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>
|