diff options
author | joerg <joerg> | 2006-01-12 02:02:16 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-01-12 02:02:16 +0000 |
commit | a02899c30b9ccfad177a5e76244d0afe4c29b6db (patch) | |
tree | 49395fed6d36d3425b61b49ede0eef72c7359320 /print | |
parent | d97b739ef4af3e33a99bf461f1179fc0f47b7c06 (diff) | |
download | pkgsrc-a02899c30b9ccfad177a5e76244d0afe4c29b6db.tar.gz |
Use SUBST framework.
Diffstat (limited to 'print')
-rw-r--r-- | print/xpdf/Makefile | 15 |
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: |