diff options
author | rillig <rillig> | 2007-07-15 22:09:35 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-07-15 22:09:35 +0000 |
commit | 4d2714fa8ee95557a57079586cea7c54b3aa2abe (patch) | |
tree | 4726c430ff11c395a79b161dd162267dce6d2af2 /audio | |
parent | 9f6dd9bdc9a76f7b15be321f0cdb916a545afb32 (diff) | |
download | pkgsrc-4d2714fa8ee95557a57079586cea7c54b3aa2abe.tar.gz |
Using the SUBST framework instead of self-written code.
Diffstat (limited to 'audio')
-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 \ |