From 830cb5ca4c7fe16f70e29ba1b2bf67f73a9e0c0b Mon Sep 17 00:00:00 2001 From: reed Date: Tue, 6 Dec 2005 17:13:50 +0000 Subject: 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. --- print/poppler/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'print/poppler/Makefile') 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/ -- cgit v1.2.3