summaryrefslogtreecommitdiff
path: root/print/poppler/Makefile
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2005-12-06 17:13:50 +0000
committerreed <reed@pkgsrc.org>2005-12-06 17:13:50 +0000
commit830cb5ca4c7fe16f70e29ba1b2bf67f73a9e0c0b (patch)
tree8e35e45b4510f5b2047ee7741f12f2af4d21e06a /print/poppler/Makefile
parente3aeff9129b0ed6fa8e100934ad2b1be31a83283 (diff)
downloadpkgsrc-830cb5ca4c7fe16f70e29ba1b2bf67f73a9e0c0b.tar.gz
Set --sysconfdir=${PKG_SYSCONFDIR} so that SYSTEM_XPDFRC in
${PREFIX}/include/poppler/poppler-config.h is set appropriately for the user's PKG_SYSCONFBASE setting. Use the PAPERSIZE variable to set the a4 option, the same way the xpdf package does it. These two improvements are from Mark Davies via private email. Thank you Mark. Bump PKGREVISION.
Diffstat (limited to 'print/poppler/Makefile')
-rw-r--r--print/poppler/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/print/poppler/Makefile b/print/poppler/Makefile
index c239a00f3aa..6bee848b858 100644
--- a/print/poppler/Makefile
+++ b/print/poppler/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2005/12/05 20:50:53 rillig Exp $
+# $NetBSD: Makefile,v 1.4 2005/12/06 17:13:50 reed Exp $
#
DISTNAME= poppler-0.4.2
+PKGREVISION= 1
CATEGORIES= print
MASTER_SITES= http://poppler.freedesktop.org/
@@ -20,6 +21,7 @@ GNU_CONFIGURE= yes
INSTALLATION_DIRS+= share/doc/poppler
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
# TODO: Later add an option to choose Splash versus Cairo backend.
## Don't build the Splash graphics backend.
#CONFIGURE_ARGS+= --disable-splash-output
@@ -29,11 +31,15 @@ CONFIGURE_ARGS+= --disable-cairo-output
CONFIGURE_ARGS+= --disable-poppler-qt
# Don't compile GTK+ test program.
CONFIGURE_ARGS+= --disable-gtk-test
-# TODO: check papersize?
-# --enable-a4-paper use A4 paper size instead of Letter for PostScript output
# maybe glib wrapper is only part needing gtk??
# --disable-poppler-glib Don't compile poppler glib wrapper.
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(PAPERSIZE) && ${PAPERSIZE} == "A4"
+CONFIGURE_ARGS+= --enable-a4-paper
+.endif
+
post-install:
${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/poppler/
${INSTALL_MAN} ${WRKSRC}/README-XPDF ${PREFIX}/share/doc/poppler/