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