diff options
author | joerg <joerg> | 2006-01-04 17:46:15 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-01-04 17:46:15 +0000 |
commit | 2678bda6afa63679120e24232ed4e03d2709a7bf (patch) | |
tree | 2ebb51417dd65ef0b067d50c42064757f4250ef7 /audio | |
parent | 4729dbc0c7e88049e437505497c2b7a502eab5f4 (diff) | |
download | pkgsrc-2678bda6afa63679120e24232ed4e03d2709a7bf.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" |