diff options
author | rillig <rillig@pkgsrc.org> | 2007-07-15 22:09:35 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-07-15 22:09:35 +0000 |
commit | e666347b2a849e3f3f9adf116956d01531011639 (patch) | |
tree | 4726c430ff11c395a79b161dd162267dce6d2af2 /audio/xmcd | |
parent | c7ed81f66bc3fe913b6a9b13cb2a4904864f11bf (diff) | |
download | pkgsrc-e666347b2a849e3f3f9adf116956d01531011639.tar.gz |
Using the SUBST framework instead of self-written code.
Diffstat (limited to 'audio/xmcd')
-rw-r--r-- | audio/xmcd/Makefile | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/audio/xmcd/Makefile b/audio/xmcd/Makefile index 37d9b551f01..0c8b52f1c7b 100644 --- a/audio/xmcd/Makefile +++ b/audio/xmcd/Makefile @@ -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}/cda ${SETUID_ROOT_PERMS} 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 \ |