summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2004-07-09 12:41:29 +0000
committerxtraeme <xtraeme>2004-07-09 12:41:29 +0000
commit13e36861ac08cf9291b595618023dbfe936ce5b6 (patch)
tree2943bef0990e8a0a75c547400a39f2a5c6b48232 /sysutils
parent9968d6fba1f004275261d26014654d9efc350ac7 (diff)
downloadpkgsrc-13e36861ac08cf9291b595618023dbfe936ce5b6.tar.gz
Use subst.mk instead of doing sed/mv dance.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/cdrecord/Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/sysutils/cdrecord/Makefile b/sysutils/cdrecord/Makefile
index 4f0a4d347d1..f11ab42836e 100644
--- a/sysutils/cdrecord/Makefile
+++ b/sysutils/cdrecord/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.59 2004/07/09 12:32:27 drochner Exp $
+# $NetBSD: Makefile,v 1.60 2004/07/09 12:41:29 xtraeme Exp $
DISTNAME= cdrtools-2.00.3
PKGNAME= cdrecord-2.00.3
@@ -42,18 +42,8 @@ MESSAGE_SUBST+= PKGNAME_NOREV=${PKGNAME_NOREV}
MESSAGE_SUBST+= CDRECORD_CONF=${CDRECORD_CONF}
.endif
-CDRECORD_CONF_FILES= cdrecord/defaults.c cdrecord/cdrecord.1
-CDRECORD_CONF_FILES+= readcd/readcd.1
-
INSTALLATION_DIRS= bin man/man1 man/man8
-post-patch:
- @cd ${WRKSRC}; for file in ${CDRECORD_CONF_FILES}; do \
- ${MV} ${WRKSRC}/$$file ${WRKSRC}/$${file}.old && \
- ${SED} -e 's|@CDRECORD_CONF@|${CDRECORD_CONF}|' \
- ${WRKSRC}/$${file}.old > ${WRKSRC}/$$file; \
- done
-
do-configure:
cd ${WRKSRC}/RULES; \
for suffix in netbsd-cc.rul netbsd-gcc.rul; do \
@@ -88,6 +78,13 @@ do-install:
${INSTALL_PROGRAM} OBJ/*/readcd ${PREFIX}/bin; \
${INSTALL_MAN} readcd.1 ${PREFIX}/man/man1
+SUBST_CLASSES= fix
+SUBST_STAGE.fix= post-patch
+SUBST_FILES.fix= cdrecord/defaults.c cdrecord/cdrecord.1 \
+ readcd/readcd.1
+SUBST_SED.fix= -e "s,@CDRECORD_CONF@,${CDRECORD_CONF},g"
+SUBST_MESSAGE.fix= "Fixing paths."
+
.include "../../textproc/groff/buildlink3.mk"
.include "../../mk/ossaudio.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"