summaryrefslogtreecommitdiff
path: root/print/poppler-cpp/Makefile
diff options
context:
space:
mode:
authordrochner <drochner>2011-10-20 16:32:57 +0000
committerdrochner <drochner>2011-10-20 16:32:57 +0000
commit7fa8aa83b2e45fd00a06fc30a577dda508731f3e (patch)
treed179aa437d2d553437382457ed386df28057892c /print/poppler-cpp/Makefile
parent6472d7168f8a4536ec366b79654c4f190d3f3158 (diff)
downloadpkgsrc-7fa8aa83b2e45fd00a06fc30a577dda508731f3e.tar.gz
build poppler's "cpp" wrapper as a seperate pkg, addresses
PR pkg/45498 by Francois Tigeot
Diffstat (limited to 'print/poppler-cpp/Makefile')
-rw-r--r--print/poppler-cpp/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/print/poppler-cpp/Makefile b/print/poppler-cpp/Makefile
new file mode 100644
index 00000000000..408da9891c1
--- /dev/null
+++ b/print/poppler-cpp/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.1 2011/10/20 16:32:57 drochner Exp $
+#
+
+.include "../../print/poppler/Makefile.common"
+
+PKGNAME= poppler-cpp-${POPPLER_VERS}
+
+COMMENT= PDF rendering library (cpp wrapper)
+MAINTAINER= reed@reedmedia.net
+
+CONFLICTS+= poppler<0.4.5nb1
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= gmake
+PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-glib.pc.in
+
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
+# Don't build the cairo graphics backend, required by glib.
+CONFIGURE_ARGS+= --disable-cairo-output
+# Don't build the splash graphics backend.
+CONFIGURE_ARGS+= --disable-splash-output
+# Don't compile poppler qt wrapper.
+CONFIGURE_ARGS+= --disable-poppler-qt
+# Don't compile GTK+ test program.
+CONFIGURE_ARGS+= --disable-gtk-test
+CONFIGURE_ARGS+= --disable-utils
+
+BUILDLINK_API_DEPENDS.poppler+= poppler-${POPPLER_VERS}{,nb*}
+.include "../../print/poppler/buildlink3.mk"
+
+.if !empty(PKG_BUILD_OPTIONS.poppler:Mpoppler-cms)
+CONFIGURE_ARGS+= --enable-cms
+.else
+CONFIGURE_ARGS+= --disable-cms
+.endif
+
+BUILD_DIRS= cpp
+INSTALL_DIRS= cpp
+
+INSTALLATION_DIRS+= lib/pkgconfig
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/poppler-cpp.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"