pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/cdrecord Use subst.mk instead of doing sed/mv...
details: https://anonhg.NetBSD.org/pkgsrc/rev/bfd21fecc891
branches: trunk
changeset: 477793:bfd21fecc891
user: xtraeme <xtraeme%pkgsrc.org@localhost>
date: Fri Jul 09 12:41:29 2004 +0000
description:
Use subst.mk instead of doing sed/mv dance.
diffstat:
sysutils/cdrecord/Makefile | 19 ++++++++-----------
1 files changed, 8 insertions(+), 11 deletions(-)
diffs (42 lines):
diff -r 80fb2f0861e3 -r bfd21fecc891 sysutils/cdrecord/Makefile
--- a/sysutils/cdrecord/Makefile Fri Jul 09 12:34:53 2004 +0000
+++ b/sysutils/cdrecord/Makefile Fri Jul 09 12:41:29 2004 +0000
@@ -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+= 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 @@
${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"
Home |
Main Index |
Thread Index |
Old Index