diff options
Diffstat (limited to 'audio/csound/files/patch-CMakeLists.txt')
-rw-r--r-- | audio/csound/files/patch-CMakeLists.txt | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/audio/csound/files/patch-CMakeLists.txt b/audio/csound/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..2d6f0f93e3dd --- /dev/null +++ b/audio/csound/files/patch-CMakeLists.txt @@ -0,0 +1,84 @@ +--- CMakeLists.txt.orig 2018-11-07 14:05:23 UTC ++++ CMakeLists.txt +@@ -164,8 +164,8 @@ endif() + + # set -Werror if in Debug configuration + if(NOT MSVC AND NOT WASM) +-set(CMAKE_CXX_FLAGS_RELEASE "-O3 ") +-set(CMAKE_C_FLAGS_RELEASE "-O3 ") ++#set(CMAKE_CXX_FLAGS_RELEASE "-O3 ") ++#set(CMAKE_C_FLAGS_RELEASE "-O3 ") + if(${CMAKE_BUILD_TYPE} MATCHES "Debug") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wno-missing-field-initializers") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wno-missing-field-initializers") +@@ -206,7 +206,7 @@ execute_process ( + OUTPUT_VARIABLE PYTHON_USER_SITE_PACKAGES + ) + +-SET(PYTHON_MODULE_INSTALL_DIR ${PYTHON_USER_SITE_PACKAGES} CACHE PATH "Python module install dir") ++#SET(PYTHON_MODULE_INSTALL_DIR ${PYTHON_USER_SITE_PACKAGES} CACHE PATH "Python module install dir") + + set(JAVA_MODULE_INSTALL_DIR ${LIBRARY_INSTALL_DIR} CACHE PATH "Java module install dir") + set(LUA_MODULE_INSTALL_DIR ${LIBRARY_INSTALL_DIR} CACHE PATH "Lua module install dir") +@@ -373,12 +373,12 @@ endif() + + endif(WIN32) + +-if(APPLE) ++if(APPLE OR CMAKE_SYSTEM_NAME MATCHES "${OPSYS}") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") + set_target_properties(${CSOUNDLIB} PROPERTIES CXX_COMPILE_FLAGS "-std=c++11") + endif() + +-if(CMAKE_SYSTEM_NAME MATCHES "Linux") ++if(CMAKE_SYSTEM_NAME MATCHES "${OPSYS}") + set(LINUX YES) + else() + set(LINUX NO) +@@ -527,15 +527,17 @@ find_package(FLTK ) + # LIST_REPLACE(FLTK_LIBRARIES 2 "fltk_images_SHARED") + # endif() + #endif() +-find_package(FAUST) +-find_package(Java) +-find_package(JNI) ++if (BUILD_FAUST_OPCODES) ++ find_package(FAUST) ++endif() ++#find_package(Java) ++#find_package(JNI) + find_package(LIBLO) + find_package(LUAJIT) + find_package(MUSICXML) + find_package(PORTSMF) + find_package(PythonLibs 2.7) +-if(NOT STK_LOCAL) ++if(BUILD_STK_OPCODES AND NOT STK_LOCAL) + find_package(STK) + endif() + find_package(SWIG) +@@ -1245,11 +1247,11 @@ if(CURL_FOUND) + endif() + + # Linux does not have a separate libintl, it is part of libc +-set(LIBINTL_AVAIL (LIBINTL_LIBRARY OR LINUX)) ++set(LIBINTL_AVAIL (LIBINTL_LIBRARY)) + check_deps(USE_GETTEXT LIBINTL_HEADER LIBINTL_AVAIL GETTEXT_MSGFMT_EXECUTABLE) + if(USE_GETTEXT) + message(STATUS "Using GNU gettext.") +- if(NOT LINUX) ++ if(LINUX) + list(APPEND libcsound_LIBS ${LIBINTL_LIBRARY}) + endif() + list(APPEND libcsound_CFLAGS -DGNU_GETTEXT) +@@ -1269,8 +1271,8 @@ endif() + + if(LINUX) + message(STATUS "Building on Linux.") +- add_definitions(-DLINUX -DPIPES -DNO_FLTK_THREADS -D_GNU_SOURCE -DHAVE_SOCKETS) +- list(APPEND libcsound_LIBS m dl) ++ add_definitions(-DLINUX -DPIPES -DNO_FLTK_THREADS -DHAVE_SOCKETS) ++ list(APPEND libcsound_LIBS m) + + find_library(LIBRT_LIBRARY rt) + |