From d707f174bb67b5b1d8a4ab00b024990a07dc5e37 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Thu, 1 Feb 2018 09:29:23 +0000 Subject: [PATCH 3/4] use standard plugins path --- CMakeLists.txt | 8 +------- Top/csmodule.c | 4 ++-- installer/misc/mkpackage.py | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c1db25d5..ee88ca66f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -195,13 +195,7 @@ else() endif() message(STATUS "LIBRARY INSTALL DIR: ${LIBRARY_INSTALL_DIR}") -if(USE_DOUBLE) - message(STATUS "Building with 64-bit floats") - set(PLUGIN_INSTALL_DIR "${LIBRARY_INSTALL_DIR}/csound/plugins64-${APIVERSION}") -else() - message(STATUS "Building with 32-bit floats") - set(PLUGIN_INSTALL_DIR "${LIBRARY_INSTALL_DIR}/csound/plugins-${APIVERSION}") -endif() +set(PLUGIN_INSTALL_DIR "${LIBRARY_INSTALL_DIR}/csound/plugins-${APIVERSION}") execute_process ( COMMAND python -c diff --git a/Top/csmodule.c b/Top/csmodule.c index 21381b9f0..0a16616b1 100644 --- a/Top/csmodule.c +++ b/Top/csmodule.c @@ -159,9 +159,9 @@ static const char *plugindir64_envvar = "OPCODE6DIR64"; # define ENABLE_OPCODEDIR_WARNINGS 0 # ifndef CS_DEFAULT_PLUGINDIR # ifndef USE_DOUBLE -# define CS_DEFAULT_PLUGINDIR "/usr/local/lib/csound/plugins" +# define CS_DEFAULT_PLUGINDIR "/usr/lib/csound/plugins" # else -# define CS_DEFAULT_PLUGINDIR "/usr/local/lib/csound/plugins64" +# define CS_DEFAULT_PLUGINDIR "/usr/lib64/csound/plugins" # endif # endif #endif diff --git a/installer/misc/mkpackage.py b/installer/misc/mkpackage.py index 801311b18..fe3d86077 100755 --- a/installer/misc/mkpackage.py +++ b/installer/misc/mkpackage.py @@ -27,7 +27,7 @@ libDir2 = libDir + '/csound/lib' # single precision plugin libraries pluginDir32 = libDir + '/csound/plugins' # double precision plugin libraries -pluginDir64 = libDir + '/csound/plugins64' +pluginDir64 = libDir + '/csound/plugins' # documentation docDir = instPrefix + '/share/doc/csound' # tclcsound.so -- 2.21.0