diff options
author | marino <marino@FreeBSD.org> | 2014-11-13 09:08:36 +0000 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2014-11-13 09:08:36 +0000 |
commit | 082d40dd3487f3cd4ea02dab3458c896ba7f7e22 (patch) | |
tree | 34468230cfa51c1204c660c8ea7e22121717fde0 | |
parent | eb1ee62cc88d20ca0577902ce9c60d89b5c97f4f (diff) | |
download | FreeBSD-ports-082d40dd3487f3cd4ea02dab3458c896ba7f7e22.zip FreeBSD-ports-082d40dd3487f3cd4ea02dab3458c896ba7f7e22.tar.gz |
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
-rw-r--r-- | audio/zynaddsubfx/Makefile | 36 | ||||
-rw-r--r-- | audio/zynaddsubfx/files/patch-src__CMakeLists.txt | 30 |
2 files changed, 47 insertions, 19 deletions
diff --git a/audio/zynaddsubfx/Makefile b/audio/zynaddsubfx/Makefile index 61dce15..b9b66f2 100644 --- a/audio/zynaddsubfx/Makefile +++ b/audio/zynaddsubfx/Makefile @@ -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}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DATADIR}/banks \ + ${STAGEDIR}${DOCSDIR} \ + ${STAGEDIR}${DOCSDIR2} \ + ${STAGEDIR}${DOCSDIR3} \ + ${STAGEDIR}${EXAMPLESDIR} + + (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> diff --git a/audio/zynaddsubfx/files/patch-src__CMakeLists.txt b/audio/zynaddsubfx/files/patch-src__CMakeLists.txt new file mode 100644 index 0000000..056d11c --- /dev/null +++ b/audio/zynaddsubfx/files/patch-src__CMakeLists.txt @@ -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() |