diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-04 17:46:15 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-04 17:46:15 +0000 |
commit | 3aa3f887d9d5cf6c424acb34cfc72a0ecffc806b (patch) | |
tree | 2ebb51417dd65ef0b067d50c42064757f4250ef7 /audio | |
parent | 579a752207393f1f7f3c45c7d5b9d20fd5c8a0fe (diff) | |
download | pkgsrc-3aa3f887d9d5cf6c424acb34cfc72a0ecffc806b.tar.gz |
Use SUBST framework for mpd.conf as well.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/musicpd/Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/audio/musicpd/Makefile b/audio/musicpd/Makefile index 0d875ea4187..0cc994af498 100644 --- a/audio/musicpd/Makefile +++ b/audio/musicpd/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2005/12/29 06:21:31 jlam Exp $ +# $NetBSD: Makefile,v 1.22 2006/01/04 17:46:15 joerg Exp $ DISTNAME= mpd-0.11.5 PKGNAME= ${DISTNAME:S/mpd/musicpd/} @@ -23,17 +23,20 @@ RCD_SCRIPTS= mpd FILES_SUBST+= DEVOSSAUDIO=${DEVOSSAUDIO:Q} LDFLAGS+= ${LIBOSSAUDIO} -SUBST_CLASSES+= config +SUBST_CLASSES+= config paths SUBST_STAGE.config= pre-configure SUBST_FILES.config= src/main.c SUBST_SED.config= -e s,/etc/mpd.conf,${PKG_SYSCONFDIR}/mpd.conf, +SUBST_STAGE.paths= post-patch +SUBST_FILES.paths= mpd.conf +SUBST_SED.paths= -e 's,@DEVOSSAUDIO@,${DEVOSSAUDIO},' -post-build: - @${SED} ${FILES_SUBST_SED} ${FILESDIR}/mpd.conf > ${WRKDIR}/mpd.conf +post-extract: + @${CP} ${FILESDIR}/mpd.conf ${WRKSRC}/mpd.conf post-install: ${INSTALL_DATA_DIR} ${EGDIR} - ${INSTALL_DATA} ${WRKDIR}/mpd.conf ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/mpd.conf ${EGDIR} .include "../../audio/libao/buildlink3.mk" .include "../../audio/libmad/buildlink3.mk" |