summaryrefslogtreecommitdiff
path: root/fonts
diff options
context:
space:
mode:
authorjoerg <joerg>2006-01-05 20:13:34 +0000
committerjoerg <joerg>2006-01-05 20:13:34 +0000
commit79cc68425b453196749750ba5554c55a5214e569 (patch)
treef3fb88207871ffd08af18baec93a62871ae2e3a9 /fonts
parentaa75585bfa55a76b09af8532dc5d5f9e37e719ac (diff)
downloadpkgsrc-79cc68425b453196749750ba5554c55a5214e569.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"