diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2019-12-16 11:48:44 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2019-12-16 11:49:17 +0100 |
commit | 5774c968ebbb210686b29e27e1d87239955e6165 (patch) | |
tree | 721e61ba72c89ca721dfcffd696ada89222fe411 /media-sound/csound | |
parent | package.mask: Last rite x11-libs/fox:1.6, x11-misc/xfe (diff) | |
download | gentoo-5774c968ebbb210686b29e27e1d87239955e6165.tar.gz gentoo-5774c968ebbb210686b29e27e1d87239955e6165.tar.bz2 gentoo-5774c968ebbb210686b29e27e1d87239955e6165.zip |
media-sound/csound-{6.13.0,9999}: fixes
1) added hdf5 use flag and related dependency (bug #703072)
2) enabled most of the cmake flags to catch other possible issues
3) fixed configuring lua library when -luajit (bug #703078)
pkg-config --variable=libname returns empty string so in that
case using default libname
4) 6.13.0 - removed BUILD_MP3OUT_OPCODE as that was introduced later
Closes: https://bugs.gentoo.org/703072
Closes: https://bugs.gentoo.org/703078
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-sound/csound')
-rw-r--r-- | media-sound/csound/csound-6.13.0.ebuild | 50 | ||||
-rw-r--r-- | media-sound/csound/csound-9999.ebuild | 49 |
2 files changed, 54 insertions, 45 deletions
diff --git a/media-sound/csound/csound-6.13.0.ebuild b/media-sound/csound/csound-6.13.0.ebuild index fc723946ca35..bee79ef48771 100644 --- a/media-sound/csound/csound-6.13.0.ebuild +++ b/media-sound/csound/csound-6.13.0.ebuild @@ -31,7 +31,7 @@ SLOT="0" # java doesn't work atm as it needs to have some variables specified to work, see src_configure # mp3 doesnt work as media-sound/lame does not install cmake file IUSE="+alsa beats chua curl +cxx debug doc double-precision dssi examples -fltk +fluidsynth +image jack keyboard linear lua luajit nls osc portaudio +fltk +fluidsynth hdf5 +image jack keyboard linear lua luajit nls osc portaudio portaudio portmidi pulseaudio python samples static-libs stk test +threads +utils vim-syntax websocket" @@ -71,6 +71,7 @@ CDEPEND=" ) fluidsynth? ( media-sound/fluidsynth:= ) fltk? ( x11-libs/fltk:1[threads?] ) + hdf5? ( sci-libs/hdf5 ) image? ( media-libs/libpng:0= ) jack? ( virtual/jack ) keyboard? ( x11-libs/fltk:1[threads?] ) @@ -121,47 +122,46 @@ src_prepare() { src_configure() { local mycmakeargs=( - #-DBUILD_BELA=OFF - #-DBUILD_BUCHLA_OPCODES=ON + -DBUILD_BELA=OFF + -DBUILD_BUCHLA_OPCODES=ON -DBUILD_CHUA_OPCODES=$(usex chua) -DBUILD_CSBEATS=$(usex beats) - #-DBUILD_CUDA_OPCODES=OFF + -DBUILD_CUDA_OPCODES=OFF -DBUILD_CXX_INTERFACE=$(usex cxx) -DBUILD_DSSI_OPCODES=$(usex dssi) - #-DBUILD_EMUGENS_OPCODES=ON - #-DBUILD_EXCITER_OPCODES=ON + -DBUILD_EMUGENS_OPCODES=ON + -DBUILD_EXCITER_OPCODES=ON -DBUILD_FAUST_OPCODES=OFF -DBUILD_FLUID_OPCODES=$(usex fluidsynth) - #-DBUILD_FRAMEBUFFER_OPCODES=ON - #-DBUILD_HDF5_OPCODES=ON + -DBUILD_FRAMEBUFFER_OPCODES=ON + -DBUILD_HDF5_OPCODES=$(usex hdf5) -DBUILD_IMAGE_OPCODES=$(usex image) -DBUILD_JACK_OPCODES=$(usex jack) -DBUILD_JAVA_INTERFACE=OFF -DBUILD_LINEAR_ALGEBRA_OPCODES=$(usex linear) -DBUILD_LUA_INTERFACE=$(usex lua) - -DBUILD_MP3OUT_OPCODE=OFF -DBUILD_MULTI_CORE=$(usex threads) - #-DBUULD_OPENCL_OPCODES=OFF + -DBUILD_OPENCL_OPCODES=OFF -DBUILD_OSC_OPCODES=$(usex osc) -DBUILD_P5GLOVE_OPCODES=OFF - #-DBUILD_PADSYNTH_OPCODES=ON - #-DBUILD_PLATEREV_OPCODES=ON - #-DBUILD_PVSGENDY_OPCODE=OFF + -DBUILD_PADSYNTH_OPCODES=ON + -DBUILD_PLATEREV_OPCODES=ON + -DBUILD_PVSGENDY_OPCODE=OFF -DBUILD_PYTHON_INTERFACE=$(usex python) -DBUILD_PYTHON_OPCODES=$(usex python) -DBUILD_RELEASE=ON -DBUILD_SCANSYN_OPCODES=OFF # this is not allowed to be redistributed: https://github.com/csound/csound/issues/1148 - #-DBUILD_SELECT_OPCODE=ON - #-DBUILD_SERIAL_OPCODES=ON + -DBUILD_SELECT_OPCODE=ON + -DBUILD_SERIAL_OPCODES=ON -DBUILD_SHARED_LIBS=ON - #-DBUILD_STACK_OPCODES=ON + -DBUILD_STACK_OPCODES=ON -DBUILD_STATIC_LIBRARY=$(usex static-libs) -DBUILD_STATIC_LIBRARY=$(usex test) -DBUILD_STK_OPCODES=$(usex stk) -DBUILD_TESTS=$(usex test) -DBUILD_UTILITIES=$(usex utils) -DBUILD_VIRTUAL_KEYBOARD=$(usex keyboard) - #-DBUILD_VST4CS_OPCODES=OFF + -DBUILD_VST4CS_OPCODES=OFF -DBUILD_WEBSOCKET_OPCODE=$(usex websocket) -DBUILD_WIIMOTE_OPCODES=OFF -DBUILD_WINSOUND=OFF @@ -180,8 +180,8 @@ src_configure() { -DUSE_FLTK=$(usex fltk) -DUSE_GETTEXT=$(usex nls) -DUSE_GIT_COMMIT=ON - #_DUSE_IPMIDI=ON - #-DUSE_LRINT=ON + _DUSE_IPMIDI=ON + -DUSE_LRINT=ON -DUSE_JACK=$(usex jack) -DUSE_PORTAUDIO=$(usex portaudio) -DUSE_PORTMIDI=$(usex portmidi) @@ -199,16 +199,20 @@ src_configure() { # set the library that we want to use if use lua ; then - local package + local libdir + local libname if use luajit ; then - package="luajit" + libdir=$(pkg-config --variable=libdir luajit) + libname=$(pkg-config --variable=libname luajit) else - package="lua" + libdir=$(pkg-config --variable=libdir lua) + libname=$(pkg-config --variable=libname lua) + [[ -z "${libname}" ]] && libname="lua" fi mycmakeargs+=( - -DLUA_LIBRARY="$(pkg-config --variable=libdir ${package})/lib$(pkg-config --variable=libname ${package}).so" + -DLUA_LIBRARY="${libdir}/lib${libname}.so" ) fi diff --git a/media-sound/csound/csound-9999.ebuild b/media-sound/csound/csound-9999.ebuild index 84567ca2d8d8..d6e3677445f6 100644 --- a/media-sound/csound/csound-9999.ebuild +++ b/media-sound/csound/csound-9999.ebuild @@ -31,7 +31,7 @@ SLOT="0" # java doesn't work atm as it needs to have some variables specified to work, see src_configure # mp3 doesnt work as media-sound/lame does not install cmake file IUSE="+alsa beats chua curl +cxx debug doc double-precision dssi examples -fltk +fluidsynth +image jack keyboard linear lua luajit nls osc portaudio +fltk +fluidsynth hdf5 +image jack keyboard linear lua luajit nls osc portaudio portaudio portmidi pulseaudio python samples static-libs stk test +threads +utils vim-syntax websocket" @@ -71,6 +71,7 @@ CDEPEND=" ) fluidsynth? ( media-sound/fluidsynth:= ) fltk? ( x11-libs/fltk:1[threads?] ) + hdf5? ( sci-libs/hdf5 ) image? ( media-libs/libpng:0= ) jack? ( virtual/jack ) keyboard? ( x11-libs/fltk:1[threads?] ) @@ -121,19 +122,19 @@ src_prepare() { src_configure() { local mycmakeargs=( - #-DBUILD_BELA=OFF - #-DBUILD_BUCHLA_OPCODES=ON + -DBUILD_BELA=OFF + -DBUILD_BUCHLA_OPCODES=ON -DBUILD_CHUA_OPCODES=$(usex chua) -DBUILD_CSBEATS=$(usex beats) - #-DBUILD_CUDA_OPCODES=OFF + -DBUILD_CUDA_OPCODES=OFF -DBUILD_CXX_INTERFACE=$(usex cxx) -DBUILD_DSSI_OPCODES=$(usex dssi) - #-DBUILD_EMUGENS_OPCODES=ON - #-DBUILD_EXCITER_OPCODES=ON + -DBUILD_EMUGENS_OPCODES=ON + -DBUILD_EXCITER_OPCODES=ON -DBUILD_FAUST_OPCODES=OFF -DBUILD_FLUID_OPCODES=$(usex fluidsynth) - #-DBUILD_FRAMEBUFFER_OPCODES=ON - #-DBUILD_HDF5_OPCODES=ON + -DBUILD_FRAMEBUFFER_OPCODES=ON + -DBUILD_HDF5_OPCODES=$(usex hdf5) -DBUILD_IMAGE_OPCODES=$(usex image) -DBUILD_JACK_OPCODES=$(usex jack) -DBUILD_JAVA_INTERFACE=OFF @@ -141,27 +142,27 @@ src_configure() { -DBUILD_LUA_INTERFACE=$(usex lua) -DBUILD_MP3OUT_OPCODE=OFF -DBUILD_MULTI_CORE=$(usex threads) - #-DBUULD_OPENCL_OPCODES=OFF + -DBUILD_OPENCL_OPCODES=OFF -DBUILD_OSC_OPCODES=$(usex osc) -DBUILD_P5GLOVE_OPCODES=OFF - #-DBUILD_PADSYNTH_OPCODES=ON - #-DBUILD_PLATEREV_OPCODES=ON - #-DBUILD_PVSGENDY_OPCODE=OFF + -DBUILD_PADSYNTH_OPCODES=ON + -DBUILD_PLATEREV_OPCODES=ON + -DBUILD_PVSGENDY_OPCODE=OFF -DBUILD_PYTHON_INTERFACE=$(usex python) -DBUILD_PYTHON_OPCODES=$(usex python) -DBUILD_RELEASE=ON -DBUILD_SCANSYN_OPCODES=OFF # this is not allowed to be redistributed: https://github.com/csound/csound/issues/1148 - #-DBUILD_SELECT_OPCODE=ON - #-DBUILD_SERIAL_OPCODES=ON + -DBUILD_SELECT_OPCODE=ON + -DBUILD_SERIAL_OPCODES=ON -DBUILD_SHARED_LIBS=ON - #-DBUILD_STACK_OPCODES=ON + -DBUILD_STACK_OPCODES=ON -DBUILD_STATIC_LIBRARY=$(usex static-libs) -DBUILD_STATIC_LIBRARY=$(usex test) -DBUILD_STK_OPCODES=$(usex stk) -DBUILD_TESTS=$(usex test) -DBUILD_UTILITIES=$(usex utils) -DBUILD_VIRTUAL_KEYBOARD=$(usex keyboard) - #-DBUILD_VST4CS_OPCODES=OFF + -DBUILD_VST4CS_OPCODES=OFF -DBUILD_WEBSOCKET_OPCODE=$(usex websocket) -DBUILD_WIIMOTE_OPCODES=OFF -DBUILD_WINSOUND=OFF @@ -180,8 +181,8 @@ src_configure() { -DUSE_FLTK=$(usex fltk) -DUSE_GETTEXT=$(usex nls) -DUSE_GIT_COMMIT=ON - #_DUSE_IPMIDI=ON - #-DUSE_LRINT=ON + _DUSE_IPMIDI=ON + -DUSE_LRINT=ON -DUSE_JACK=$(usex jack) -DUSE_PORTAUDIO=$(usex portaudio) -DUSE_PORTMIDI=$(usex portmidi) @@ -199,16 +200,20 @@ src_configure() { # set the library that we want to use if use lua ; then - local package + local libdir + local libname if use luajit ; then - package="luajit" + libdir=$(pkg-config --variable=libdir luajit) + libname=$(pkg-config --variable=libname luajit) else - package="lua" + libdir=$(pkg-config --variable=libdir lua) + libname=$(pkg-config --variable=libname lua) + [[ -z "${libname}" ]] && libname="lua" fi mycmakeargs+=( - -DLUA_LIBRARY="$(pkg-config --variable=libdir ${package})/lib$(pkg-config --variable=libname ${package}).so" + -DLUA_LIBRARY="${libdir}/lib${libname}.so" ) fi |