diff --git a/common/shlibs b/common/shlibs index fd007eb569..fa6eec6df4 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2223,3 +2223,5 @@ libgavl.so.1 gavl-1.40_1 libmxml.so.1 mxml-2.9_1 libdovecot-sieve.so.0 dovecot-plugin-pigeonhole-0.4.9_2 libi3ipc-glib-1.0.so.0 i3ipc-glib-0.6.0_1 +libcsound64.so.6.0 csound-6.05.0_1 +libcsnd6.so.6.0 csound-6.05.0_1 diff --git a/srcpkgs/csound/files/csound.sh b/srcpkgs/csound/files/csound.sh new file mode 100755 index 0000000000..ddd6e48557 --- /dev/null +++ b/srcpkgs/csound/files/csound.sh @@ -0,0 +1,3 @@ +export OPCODE6DIR=/usr/lib/csound/plugins64 +export CSSTRNGS=/usr/share/locale +export RAWWAVE_PATH=/usr/lib/stk/rawwaves \ No newline at end of file diff --git a/srcpkgs/csound/patches/libm.patch b/srcpkgs/csound/patches/libm.patch new file mode 100644 index 0000000000..4691543b1a --- /dev/null +++ b/srcpkgs/csound/patches/libm.patch @@ -0,0 +1,47 @@ +diff --git CMake/gLists.txt CMake/gLists.txt +index 2b16079..18a6ad1 100644 +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -97,6 +97,10 @@ endfunction(make_executable) + function(make_utility name srcs) + make_executable(${name} "${srcs}" "${CSOUNDLIB}") + add_dependencies(${name} ${CSOUNDLIB}) ++ ++ if(LINUX) ++ target_link_libraries(${name} m) ++ endif() + endfunction() + + +diff --git frontends/CMakeLists.txt frontends/CMakeLists.txt +index d0e3a21..b31f37a 100644 +--- frontends/CMakeLists.txt ++++ frontends/CMakeLists.txt +@@ -43,6 +43,9 @@ endfunction(make_plugin_frontend) + + # We need a different name to avoid clashes with float libcsound + make_executable(csound-bin "${CS_MAIN_SRCS}" "${CSOUNDLIB}" csound) ++if(LINUX) ++ target_link_libraries(csound-bin m) ++endif() + + message(STATUS "Building csLadspa") + +diff --git util/CMakeLists.txt util/CMakeLists.txt +index 25089cc..ebf0aa5 100644 +--- util/CMakeLists.txt ++++ util/CMakeLists.txt +@@ -23,9 +23,11 @@ if(BUILD_UTILITIES) + make_utility(hetro het_main.c) + make_utility(lpanal lpc_main.c) + make_utility(lpc_export lpcx_main.c) +- target_link_libraries(lpc_export m) + make_utility(lpc_import lpci_main.c) +- make_executable(mixer-bin mixer_main.c "${CSOUNDLIB}" mixer) ++ if(LINUX) ++ make_executable(mixer-bin mixer_main.c "${CSOUNDLIB}" mixer) ++ endif() ++ target_link_libraries(mixer-bin m) + make_utility(pvanal pvc_main.c) + make_utility(pvlook pvl_main.c) + make_utility(pv_export pvx_main.c) diff --git a/srcpkgs/csound/template b/srcpkgs/csound/template new file mode 100644 index 0000000000..9ff01488c6 --- /dev/null +++ b/srcpkgs/csound/template @@ -0,0 +1,25 @@ +# Template file for 'csound' +pkgname=csound +version=6.05.0 +revision=1 +build_style=cmake +configure_args=" +-DJAVA_MODULE_INSTALL_DIR=/usr/lib/csound/java +-DPYTHON_MODULE_INSTALL_DIR=/usr/lib/python2.7/site-packages +-DLUA_MODULE_INSTALL_DIR=/usr/lib/lua/5.1 +-DDPD_MODULE_INSTALL_DIR=/usr/lib/pd/extra" +hostmakedepends="cmake python flex" +makedepends="pd-devel fltk-devel fluidsynth-devel liblo-devel portaudio-devel portmidi-devel tk-devel libcurl-devel LuaJIT-devel boost-devel libgomp-devel libsndfile-devel" +depends="pd" +short_desc="A programming language for sound rendering and signal processing" +maintainer="Andrea Brancaleoni " +license="LGPL-3" +homepage="http://csound.github.io" +distfiles="https://github.com/$pkgname/$pkgname/archive/$version.tar.gz" +checksum=2384cbc82fe37b70192c87977b52c55b336731ecbfd3be1d8d30c7223815d7b9 +nocross=yes + +post_install() { + rm -r $DESTDIR/tmp + vinstall ${FILESDIR}/csound.sh 755 etc/profile.d +}