diff options
author | wiz <wiz@pkgsrc.org> | 2011-04-07 08:37:24 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2011-04-07 08:37:24 +0000 |
commit | 8132cf0337458c1d31bc861d0f7ccfd3323c50d2 (patch) | |
tree | 999411a3760c074d6a2811753458d181dbcfa957 /audio/csound5 | |
parent | 11d5907f045907049da99d762c00931a1fe4a20a (diff) | |
download | pkgsrc-8132cf0337458c1d31bc861d0f7ccfd3323c50d2.tar.gz |
Support destdir installation.
Diffstat (limited to 'audio/csound5')
-rw-r--r-- | audio/csound5/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/audio/csound5/Makefile b/audio/csound5/Makefile index e87740e50a1..5a574e763fc 100644 --- a/audio/csound5/Makefile +++ b/audio/csound5/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2011/01/13 13:37:00 wiz Exp $ +# $NetBSD: Makefile,v 1.15 2011/04/07 08:37:24 wiz Exp $ # DISTNAME= Csound${CSOUND_VERSION}_src @@ -12,6 +12,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://sourceforge.net/projects/csound/ COMMENT= Software synthesizer and sequencer +PKG_DESTDIR_SUPPORT= user-destdir + CSOUND_VERSION= 5.01 USE_LANGUAGES= c c++ CFLAGS+= -g -D__PKGSRC_PREFIX__=${PREFIX}/ -DBETA @@ -25,14 +27,16 @@ SCONS_ARGS+= useALSA=0 useJack=0 useOSC=0 usePortMIDI=0 SCONS_ARGS+= usePortAudio=0 SCONS_ENV_FILE= ${WRKDIR}/ugly-pkgsrc-scons-hack.txt +INSTALLATION_DIRS= bin + do-build: ${ECHO} ${MAKE_ENV:Q} >${SCONS_ENV_FILE} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SCONS} ${SCONS_ARGS} do-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 + eval "${SETENV} $${SCONS_ENV} ${SCONS} ${SCONS_ARGS} prefix=${DESTDIR}${PREFIX} install" + cd ${DESTDIR}${PREFIX} && ${LN} -s ../lib/csound5/csound bin/csound5 .include "../../audio/fluidsynth/buildlink3.mk" .include "../../audio/libsndfile/buildlink3.mk" |