summaryrefslogtreecommitdiff
path: root/audio/csound5
diff options
context:
space:
mode:
authorben <ben>2006-09-04 14:17:51 +0000
committerben <ben>2006-09-04 14:17:51 +0000
commit45a1326fb6a7bd3a6dcad933e8f030863572cdb9 (patch)
treea07cc3ff768823af2fd4aae7e6b9fbbdb52e61e2 /audio/csound5
parent421a5278841572a04e524d8ca16b5a9049aca899 (diff)
downloadpkgsrc-45a1326fb6a7bd3a6dcad933e8f030863572cdb9.tar.gz
Fix the csound5 install phase.
At some point, pkgsrc started setting a different MAKE_ENV in the install phase than in the build phase. This caused scons to report that "the build action changed", which caused scons to rebuild csound5 and install it with a broken configuration. This hack saves MAKE_ENV to a file in WRKDIR, then uses that file to set the environment in the install phase.
Diffstat (limited to 'audio/csound5')
-rw-r--r--audio/csound5/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/audio/csound5/Makefile b/audio/csound5/Makefile
index f895999fa47..6d697b8ec3c 100644
--- a/audio/csound5/Makefile
+++ b/audio/csound5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/05/21 22:46:22 ben Exp $
+# $NetBSD: Makefile,v 1.2 2006/09/04 14:17:51 ben Exp $
#
DISTNAME= Csound${CSOUND_VERSION}_src
@@ -21,12 +21,15 @@ SCONS_ARGS= -C ${WRKSRC} prefix=${PREFIX}
SCONS_ARGS+= buildDSSI=0 buildLoris=0 buildRelease=1
SCONS_ARGS+= useALSA=0 useJack=0 useOSC=0 usePortMIDI=0
SCONS_ARGS+= usePortAudio=0
+SCONS_ENV_FILE= ${WRKDIR}/ugly-pkgsrc-scons-hack.txt
do-build:
+ ${ECHO} ${MAKE_ENV:Q} >${SCONS_ENV_FILE}
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SCONS} ${SCONS_ARGS}
do-install:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SCONS} ${SCONS_ARGS} install
+ cd ${WRKSRC} && SCONS_ENV="`${CAT} ${SCONS_ENV_FILE}`" && \
+ eval "${SETENV} $${SCONS_ENV} ${SCONS} ${SCONS_ARGS} install"
cd ${PREFIX} && ${LN} -s ../lib/csound5/csound bin/csound5
.include "../../audio/fluidsynth/buildlink3.mk"