pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/poppler Set --sysconfdir=${PKG_SYSCONFDIR} so th...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6d4319c87ab7
branches:  trunk
changeset: 504186:6d4319c87ab7
user:      reed <reed%pkgsrc.org@localhost>
date:      Tue Dec 06 17:13:50 2005 +0000

description:
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:

 print/poppler/Makefile |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r a4823f7a3a16 -r 6d4319c87ab7 print/poppler/Makefile
--- a/print/poppler/Makefile    Tue Dec 06 16:42:15 2005 +0000
+++ b/print/poppler/Makefile    Tue Dec 06 17:13:50 2005 +0000
@@ -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 @@
 
 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-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/



Home | Main Index | Thread Index | Old Index