audio/zynaddsubfx: Fix JACK support by using portaudio v2
While here, clean up makefile of this unmaintained port. PR: 194403 Submitted by: Hans Petter Selasky
This commit is contained in:
parent
698f4644c4
commit
faef5b56cc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=372515
2 changed files with 46 additions and 18 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME= zynaddsubfx
|
||||
PORTVERSION= 2.4.3
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= SF
|
||||
DISTNAME= ZynAddSubFX-${PORTVERSION}
|
||||
|
@ -16,10 +16,14 @@ LICENSE= GPLv2
|
|||
LIB_DEPENDS= libfftw3.so:${PORTSDIR}/math/fftw3 \
|
||||
libmxml.so:${PORTSDIR}/textproc/mxml
|
||||
|
||||
BROKEN_ia64= invokes i386 asm
|
||||
BROKEN_powerpc= invokes i386 asm
|
||||
BROKEN_sparc64= invokes i386 asm
|
||||
|
||||
USES= tar:bzip2 cmake pkgconfig
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES GUI LASH LO JACK PORTAUDIO
|
||||
OPTIONS_DEFAULT= GUI PORTAUDIO
|
||||
OPTIONS_DEFINE= JACK GUI PORTAUDIO LASH LO DOCS EXAMPLES
|
||||
OPTIONS_DEFAULT= JACK GUI PORTAUDIO
|
||||
OPTIONS_RADIO= AUDIO
|
||||
OPTIONS_RADIO_AUDIO= ALSAMIDI DSSI
|
||||
OPTIONS_SUB= yes
|
||||
|
@ -74,10 +78,6 @@ PORTEXAMPLES= *
|
|||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
|
||||
BROKEN= Does not compile on ia64, powerpc, or sparc64: invokes i386 asm
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == "i386" || ${ARCH} == "amd64"
|
||||
CFLAGS+= -DASM_F2I_YES
|
||||
.endif
|
||||
|
@ -94,22 +94,20 @@ post-patch:
|
|||
/pthread/d ; \
|
||||
s|lib64|lib|' ${WRKSRC}/src/CMakeLists.txt
|
||||
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/src/Misc/Config.cpp
|
||||
@${REINPLACE_CMD} -e 's|portaudio.h|portaudio2/portaudio.h|' ${WRKSRC}/src/Nio/PaEngine.h
|
||||
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${STAGEDIR}${DATADIR}/banks
|
||||
(cd ${WRKDIR}/${DISTNAME}/instruments/banks \
|
||||
&& ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/banks)
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/banks \
|
||||
${STAGEDIR}${DOCSDIR} \
|
||||
${STAGEDIR}${DOCSDIR2} \
|
||||
${STAGEDIR}${DOCSDIR3} \
|
||||
${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
(cd ${WRKDIR}/${DISTNAME}/instruments/banks && \
|
||||
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/banks)
|
||||
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
|
||||
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR3}
|
||||
${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${STAGEDIR}${DOCSDIR3}
|
||||
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
@(cd ${WRKSRC}/instruments/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
||||
(cd ${WRKSRC}/instruments/examples && \
|
||||
${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
30
audio/zynaddsubfx/files/patch-src__CMakeLists.txt
Normal file
30
audio/zynaddsubfx/files/patch-src__CMakeLists.txt
Normal file
|
@ -0,0 +1,30 @@
|
|||
--- src/CMakeLists.txt.orig 2014-10-16 15:33:19.000000000 +0200
|
||||
+++ src/CMakeLists.txt 2014-10-16 15:33:53.000000000 +0200
|
||||
@@ -127,6 +127,13 @@
|
||||
# From here on, the setting variables have been prepared so concentrate
|
||||
# on the actual compiling.
|
||||
|
||||
+if(PaEnable)
|
||||
+ include_directories(${PORTAUDIO_INCLUDE_DIRS})
|
||||
+ add_definitions(-DPORTAUDIO=1)
|
||||
+ list(APPEND AUDIO_LIBRARIES ${PORTAUDIO_LIBRARIES})
|
||||
+ list(APPEND AUDIO_LIBRARY_DIRS ${PORTAUDIO_LIBRARY_DIRS})
|
||||
+endif()
|
||||
+
|
||||
if(AlsaEnable)
|
||||
list(APPEND AUDIO_LIBRARIES ${ASOUND_LIBRARY})
|
||||
list(APPEND AUDIO_LIBRARY_DIRS ${ASOUND_LIBRARY_DIRS})
|
||||
@@ -143,13 +150,6 @@
|
||||
add_definitions(-DOSS=1)
|
||||
endif(OssEnable)
|
||||
|
||||
-if(PaEnable)
|
||||
- include_directories(${PORTAUDIO_INCLUDE_DIR})
|
||||
- add_definitions(-DPORTAUDIO=1)
|
||||
- list(APPEND AUDIO_LIBRARIES ${PORTAUDIO_LIBRARIES})
|
||||
- list(APPEND AUDIO_LIBRARY_DIRS ${PORTAUDIO_LIBRARY_DIRS})
|
||||
-endif()
|
||||
-
|
||||
if (CompileTests)
|
||||
ENABLE_TESTING()
|
||||
endif()
|
Loading…
Reference in a new issue