pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/xmcd Using the SUBST framework instead of self-w...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8d7b841df3e5
branches: trunk
changeset: 530946:8d7b841df3e5
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun Jul 15 22:09:35 2007 +0000
description:
Using the SUBST framework instead of self-written code.
diffstat:
audio/xmcd/Makefile | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diffs (33 lines):
diff -r bff31ddcb797 -r 8d7b841df3e5 audio/xmcd/Makefile
--- a/audio/xmcd/Makefile Sun Jul 15 21:44:41 2007 +0000
+++ b/audio/xmcd/Makefile Sun Jul 15 22:09:35 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.67 2007/06/15 14:47:06 jlam Exp $
+# $NetBSD: Makefile,v 1.68 2007/07/15 22:09:35 rillig Exp $
DISTNAME= xmcd-3.0.2
PKGREVISION= 9
@@ -40,17 +40,16 @@
SPECIAL_PERMS+= ${ARCHBIN}/xmcd ${SETUID_ROOT_PERMS}
CFILES= common.cfg device.cfg wwwwarp.cfg
-.for FILE in ${CFILES}
+.for f in ${CFILES}
CONF_FILES+= ${XMCDDIR}/config/${FILE}.dist ${XMCDDIR}/config/${FILE}
.endfor
REQD_DIRS= ${XMCDDIR} ${XMCDDIR}/cdinfo ${XMCDDIR}/config ${XMCDDIR}/discog
-pre-configure:
- cd ${WRKSRC} && \
- for f in libdi_d/config.sh misc_d/start.sh install.sh; do \
- ${SED} -e "s/@MACHINE_ARCH@/${MACHINE_ARCH}/" $$f > $$f.new; \
- ${MV} -f $$f.new $$f; \
- done
+SUBST_CLASSES+= xmcd
+SUBST_STAGE.xmcd= pre-configure
+SUBST_MESSAGE.xmcd= Replacing MACHINE_ARCH
+SUBST_FILES.xmcd= libdi_d/config.sh misc_d/start.sh install.sh
+SUBST_VARS.xmcd= MACHINE_ARCH
post-install:
if [ -n "${_STRIPFLAG_INSTALL}" ]; then \
Home |
Main Index |
Thread Index |
Old Index