summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--print/xpdf/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/print/xpdf/Makefile b/print/xpdf/Makefile
index 4cfc8404438..fa8b5edab8d 100644
--- a/print/xpdf/Makefile
+++ b/print/xpdf/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.47 2005/12/29 06:22:08 jlam Exp $
+# $NetBSD: Makefile,v 1.48 2006/01/12 02:02:16 joerg Exp $
DISTNAME= xpdf-3.01
PKGNAME= ${DISTNAME}pl1
@@ -37,12 +37,13 @@ CONFIGURE_ARGS+= --enable-a4-paper
EGDIR= ${PREFIX}/share/examples/xpdf
CONF_FILES= ${EGDIR}/xpdfrc ${PKG_SYSCONFDIR}/xpdfrc
-post-patch:
- @cd ${WRKSRC}/doc && \
- for f in *.1 *.5; do \
- ${MV} $${f} $${f}.orig; \
- ${SED} ${FILES_SUBST_SED} $${f}.orig > $${f}; \
- done
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= doc/pdffonts.1 doc/pdfimages.1 doc/pdfinfo.1
+SUBST_FILES.paths= doc/pdftopnm.1 doc/pdftops.1 doc/pdftotext.1
+SUBST_FILES.paths= doc/sample-xpdfrc doc/xpdf.1 doc/xpdfrc.5
+SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
+SUBST_STAGE.paths= post-patch
# Used by supplemental packages.
post-install: