summaryrefslogtreecommitdiff
path: root/fonts
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-05 20:13:34 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-05 20:13:34 +0000
commit021cfa7367cfc420d105d7f7ee16b12cd39d523c (patch)
treef3fb88207871ffd08af18baec93a62871ae2e3a9 /fonts
parent2c5e0c221ed25824978c3e2237c17bce20b53790 (diff)
downloadpkgsrc-021cfa7367cfc420d105d7f7ee16b12cd39d523c.tar.gz
Replace usage of FILES_SUBST_SED.
Diffstat (limited to 'fonts')
-rw-r--r--fonts/t1lib/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/fonts/t1lib/Makefile b/fonts/t1lib/Makefile
index 46489041d02..f2598ca7257 100644
--- a/fonts/t1lib/Makefile
+++ b/fonts/t1lib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2005/12/29 06:21:41 jlam Exp $
+# $NetBSD: Makefile,v 1.29 2006/01/05 20:13:34 joerg Exp $
DISTNAME= t1lib-5.1.0
PKGREVISION= 4
@@ -24,6 +24,15 @@ CONF_FILES+= ${EGDIR}/FontDataBase ${DATADIR}/FontDataBase
.include "../../graphics/xpm/buildlink3.mk"
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= t1lib.config.sample
+SUBST_SED.paths= -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.paths+= -e 's,@LOCALBASE@,${LOCALBASE},g'
+SUBST_STAGE.paths= post-patch
+
+post-extract:
+ ${CP} ${FILESDIR}/t1lib.config.sample ${WRKSRC}
+
pre-build:
${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM}
@@ -35,9 +44,8 @@ post-install:
${PAX} -rw -s "/doc/${PKGBASE}/" doc ${PREFIX}/share/doc
${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/t1lib.config.sample ${EGDIR}
cd ${WRKSRC}/examples; \
${PAX} -rw FontDataBase t1example1.c t1lib.config ${EGDIR}
- ${SED} ${FILES_SUBST_SED} \
- ${FILESDIR}/t1lib.config.sample > ${EGDIR}/t1lib.config.sample
.include "../../mk/bsd.pkg.mk"