Skip to content

Commit 58a229d

Browse files
authored
Merge pull request #260 from gusano/topic/LadspaUGen
Make LadspaUGen optional
2 parents dd092a2 + 0f9de28 commit 58a229d

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ else()
6464
endif()
6565

6666
option(AY "Build with AY ugens" ON)
67+
option(LADSPA "Build with Ladspa ugen" ON)
6768
option(QUARKS "Install plugins as quarks")
6869
option(OSX_PACKAGE "Package dmg for Apple")
6970
option(IN_PLACE_BUILD "Build and install in cmake build folder" ON)

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,27 @@ ambisonics) subproject.
8484
* (default on linux `/usr/local`)
8585
* `cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..`
8686
+ Install in cmake build folder instead of `CMAKE_INSTALL_PREFIX`
87-
* (OSX ONLY, default=ON)
87+
* (macOS ONLY, default=ON)
8888
* `cmake -DIN_PLACE_BUILD=ON`
8989
+ Build the plugins as quarks
90-
* (default 'OFF')
90+
* (default=OFF)
9191
* `cmake -DQUARKS=ON ..`
9292
+ Build supernova-plugins
93-
* (default 'OFF')
93+
* (default=OFF)
9494
* `cmake -DSUPERNOVA=ON ..`
95+
+ Build Ladspa UGen
96+
* (macOS AND LINUX ONLY, default=ON)
97+
* `sc3-plugins/build/$ cmake -DLADSPA=ON ..`
9598
+ Print all cmake options
9699
* `sc3-plugins/build/$ cmake -L ..`
97100

98101
### Troubleshooting
99102

103+
#### Known issues
104+
105+
**On some Linux distributions** it has been reported that Ladspa UGen could prevent SuperCollider server from booting ([sc3-plugins/#210](https://github.com/supercollider/sc3-plugins/issues/210), [sc3-plugins/#23](https://github.com/supercollider/sc3-plugins/issues/23) and [supercollider/#4421](https://github.com/supercollider/supercollider/issues/4421)).
106+
See above how to build sc3-plugins without Ladspa if needed.
107+
100108
#### Build errors
101109

102110
If you get an error while building that files are missing, it probably means that you didn't clone all the SuperCollider

source/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ set(PLUGIN_DIRS_EXTRA
115115
BetablockerUGens
116116
ChaosUGens
117117
DEINDUGens
118-
LadspaUGen
119118
MembraneUGens
120119
NCAnalysisUGens
121120
OteyPianoUGens
@@ -243,7 +242,8 @@ BUILD_PLUGIN(MembraneUGens "MembraneUGens/Membrane_shape.c;MembraneUGens/Membran
243242
"" "MembraneUGens")
244243

245244
# LadspaUGen
246-
if(NOT WIN32)
245+
if(LADSPA AND NOT WIN32)
246+
list(APPEND PLUGIN_DIRS_EXTRA LadspaUGen)
247247
BUILD_PLUGIN(LadspaUGen "LadspaUGen/LadspaUGen.cpp;LadspaUGen/search.c" "${CMAKE_DL_LIBS}" "LadspaUGen")
248248
add_executable(ladspalist LadspaUGen/ladspalist.c LadspaUGen/search.c)
249249
target_link_libraries(ladspalist "${CMAKE_DL_LIBS}")
@@ -357,7 +357,7 @@ if (NOT APPLE)
357357
DESTINATION ${INSTALL_DESTINATION})
358358
endif()
359359

360-
if(NOT WIN32)
360+
if(LADSPA AND NOT WIN32)
361361
install(TARGETS ladspalist
362362
DESTINATION ${INSTALL_DESTINATION_LADSPALIST})
363363
endif()

0 commit comments

Comments
 (0)