summaryrefslogtreecommitdiff
path: root/print/xpdf
diff options
context:
space:
mode:
authorjoerg <joerg>2006-01-12 02:02:16 +0000
committerjoerg <joerg>2006-01-12 02:02:16 +0000
commitf1644704339a430965ed28939a8e64d2fd6f047d (patch)
tree49395fed6d36d3425b61b49ede0eef72c7359320 /print/xpdf
parent2a058e659af5ffb15ff0d96d685f74d4cb058071 (diff)
downloadpkgsrc-f1644704339a430965ed28939a8e64d2fd6f047d.tar.gz
Use SUBST framework.
Diffstat (limited to 'print/xpdf')
-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: