aboutsummaryrefslogtreecommitdiff
path: root/audio/csound/Makefile
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-05-30 20:39:12 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-05-30 20:39:12 +0000
commit3fef6c52f0fc4ef44d16f7c2f73fab20c9c251e5 (patch)
treec6487f309b5d29e868c4ea46df98e320c50df957 /audio/csound/Makefile
parent0b206685de74445cde7f184f18a43c7ac16172a6 (diff)
Update portaudio to v19/Remove portaudio2 [1]
Chase portaudio change Add patches from debian for games/cultivation Add patches from upsteam for audio/rezound Mark py-fastaudio as broken Approved by: maintainer
Notes
Notes: svn path=/head/; revision=387982
Diffstat (limited to 'audio/csound/Makefile')
-rw-r--r--audio/csound/Makefile14
1 files changed, 2 insertions, 12 deletions
diff --git a/audio/csound/Makefile b/audio/csound/Makefile
index 3a803a48591b..bd12948333e5 100644
--- a/audio/csound/Makefile
+++ b/audio/csound/Makefile
@@ -107,15 +107,10 @@ MAKE_ARGS+= useOSC=0
.endif
.if ${PORT_OPTIONS:MPORTAUDIO}
-BUILD_DEPENDS+= portaudio2>=0:${PORTSDIR}/audio/portaudio2
-RUN_DEPENDS+= portaudio2>=0:${PORTSDIR}/audio/portaudio2
+LIB_DEPENDS+= libportaudio.so:${PORTSDIR}/audio/portaudio
MAKE_ARGS+= usePortAudio=1
-PORTAUDIO_L= "${LOCALBASE}/lib/portaudio2"
-PORTAUDIO_R= "-Wl,-rpath,${LOCALBASE}/lib/portaudio2"
.else
MAKE_ARGS+= usePortAudio=0
-PORTAUDIO_L= # empty
-PORTAUDIO_R= # empty
.endif
.if ${PORT_OPTIONS:MPULSEAUDIO}
@@ -157,9 +152,7 @@ CXXLIB= # empty
post-patch:
@${SED} -e "s|%%LOCALBASE%%|${LOCALBASE}|g; \
- s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|; \
- s|%%PORTAUDIO_L%%|${PORTAUDIO_L}|; \
- s|%%PORTAUDIO_R%%|${PORTAUDIO_R}|" \
+ s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|" \
< ${FILESDIR}/custom.py.in > ${WRKSRC}/custom.py
@${REINPLACE_CMD} -e "s|'unsupported'|'linux'|; \
s|Exit(-1)|print \"\"|; \
@@ -170,7 +163,6 @@ post-patch:
/LINKFLAGS/s|\['-Wl,-Bdynamic'\]|Split('${LDFLAGS}')|; \
s|\"pthread\"|\"\"|; \
s|'pthread'|''|; \
- s|\"portaudio.h\"|\"portaudio2/portaudio.h\"|; \
s|\"boost/any.hpp\"|\"##boost/any.hpp##\"|; \
s|\"alsa/asoundlib.h\"|\"${ALSA_H}\"|; \
s|'xmlfile.h'|'##xmlfile.h##'|; \
@@ -186,8 +178,6 @@ post-patch:
/jpluginEnvironment/s|'asound'|''|; \
/portaudioEnvironment/s|'asound'|''|; \
/jackEnvironment/s|'asound'|''|" ${WRKSRC}/SConstruct
- @${REINPLACE_CMD} -e "s|<portaudio.h>|<portaudio2/portaudio.h>|" \
- ${WRKSRC}/InOut/rtpa.c
@${REINPLACE_CMD} -e "s|linux/if.h|sys/types.h|" \
${WRKSRC}/OOps/remote.c