summaryrefslogtreecommitdiff
path: root/audio/csound
diff options
context:
space:
mode:
Diffstat (limited to 'audio/csound')
-rw-r--r--audio/csound/Makefile184
-rw-r--r--audio/csound/distinfo3
-rw-r--r--audio/csound/files/custom.py.in12
-rw-r--r--audio/csound/files/patch-CMakeLists.txt84
-rw-r--r--audio/csound/files/patch-H_remote.h14
-rw-r--r--audio/csound/files/patch-InOut_rtalsa.c27
-rw-r--r--audio/csound/files/patch-Opcodes_stk_CMakeLists.txt11
-rw-r--r--audio/csound/files/patch-Top_csound.c65
-rw-r--r--audio/csound/files/patch-cmake_Modules_FindFAUST.cmake11
-rw-r--r--audio/csound/files/pkg-message.in4
-rw-r--r--audio/csound/pkg-descr21
-rw-r--r--audio/csound/pkg-plist129
12 files changed, 565 insertions, 0 deletions
diff --git a/audio/csound/Makefile b/audio/csound/Makefile
new file mode 100644
index 000000000000..9d7f3b9fd853
--- /dev/null
+++ b/audio/csound/Makefile
@@ -0,0 +1,184 @@
+# Created by: trevor
+# $FreeBSD$
+
+PORTNAME= csound
+DISTVERSION= 6.12.2
+CATEGORIES= audio lang
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Sound synthesizer
+
+LICENSE= LGPL21+
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= boost-libs>0:devel/boost-libs \
+ swig3.0:devel/swig30 \
+ gmm++>0:math/gmm++
+LIB_DEPENDS= libsamplerate.so:audio/libsamplerate \
+ libsndfile.so:audio/libsndfile
+
+USES= alias bison cmake:outsource compiler:c++11-lib eigen:3 localbase ncurses python:2.7
+USE_GITHUB= yes
+USE_LDCONFIG= yes
+
+CMAKE_ARGS= -DBUILD_CSOUNDVST:BOOL=OFF \
+ -DBUILD_PD_CLASS:BOOL=OFF \
+ -DPYTHON_MODULE_INSTALL_DIR:PATH="${PYTHONPREFIX_SITELIBDIR}" \
+ -DOPSYS:STRING="${OPSYS}"
+CMAKE_OFF= USE_ALSA BUILD_JAVA_INTERFACE BUILD_TESTS
+SSP_UNSAFE= yes
+BINARY_ALIAS= swig=swig3.0
+LDFLAGS+= -lexecinfo
+
+SUB_FILES= pkg-message
+
+OPTIONS_DEFINE= CURL FLTK HDF5 NLS OPENMP PORTAUDIO PULSEAUDIO
+OPTIONS_GROUP= PLUGINS
+OPTIONS_GROUP_PLUGINS= BUCHLA CHUA DSSI EXCITER FAUST FLUIDSYNTH IMAGE JACK LUA LINALG OSC P5GLOVE PADSYNTH PLATEREV PVSGENDY SCANSYN SELECT SERIAL STACK STK WIIMOTE # Opcodes/CMakeLists.txt, Opcodes/stk/CMakeLists.txt
+OPTIONS_DEFAULT= FLTK OPENMP
+OPTIONS_DEFAULT+= BUCHLA CHUA DSSI EXCITER FAUST FLUIDSYNTH IMAGE JACK OSC P5GLOVE PADSYNTH PLATEREV SCANSYN SELECT SERIAL STACK STK # for PLUGINS
+OPTIONS_SUB= yes
+
+BUCHLA_DESC= Build the Buchla filter opcode
+BUCHLA_CMAKE_BOOL= BUILD_BUCHLA_OPCODES
+
+CHUA_DESC= Build the chua opcodes
+CHUA_CMAKE_BOOL= BUILD_CHUA_OPCODES
+
+CURL_CMAKE_BOOL= USE_CURL # see https://github.com/csound/csound/issues/1067
+CURL_LIB_DEPENDS= libcurl.so:ftp/curl
+
+DSSI_DESC= Build DSSI opcodes
+DSSI_BUILD_DEPENDS= dssi>0:audio/dssi
+DSSI_LIB_DEPENDS= libdssialsacompat.so:audio/libdssialsacompat
+DSSI_RUN_DEPENDS= dssi>0:audio/dssi
+DSSI_CMAKE_BOOL= BUILD_DSSI_OPCODES
+DSSI_CFLAGS= -isystem ${LOCALBASE}/include/dssi
+
+EXCITER_DESC= Build the exciter opcode
+EXCITER_CMAKE_BOOL= BUILD_EXCITER_OPCODES
+
+FLTK_DESC= Build FLTK plugin and GUI
+FLTK_USE= XORG=ice,sm,x11,xext
+FLTK_LIB_DEPENDS= libfltk.so:x11-toolkits/fltk
+FLTK_CMAKE_ON= -DBUILD_WINSOUND:BOOL=ON
+FLTK_CMAKE_OFF= -DBUILD_CSOUND_AC:BOOL=OFF \
+ -DBUILD_VIRTUAL_KEYBOARD:BOOL=OFF \
+ -DUSE_FLTK:BOOL=OFF
+
+FAUST_DESC= Build the Faust opcodes
+FAUST_USES= ssl
+FAUST_LLVM_VERSION= 60
+FAUST_BUILD_DEPENDS= faust>0:audio/faust
+FAUST_RUN_DEPENDS= faust>0:audio/faust \
+ llvm${FAUST_LLVM_VERSION}>0:devel/llvm${FAUST_LLVM_VERSION}
+FAUST_CMAKE_BOOL= BUILD_FAUST_OPCODES
+FAUST_CMAKE_ON= -DFAUST_LLVM_VERSION:STRING=${FAUST_LLVM_VERSION}
+
+FLUIDSYNTH_DESC= Building FluidSynth opcodes
+FLUIDSYNTH_LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth
+FLUIDSYNTH_CMAKE_BOOL= BUILD_FLUID_OPCODES
+
+HDF5_DESC= Build HDF5 read/write opcodes
+HDF5_LIB_DEPENDS= libhdf5.so:science/hdf5 \
+ libsz.so:science/szip
+HDF5_CMAKE_BOOL= BUILD_HDF5_OPCODES
+
+JACK_DESC= Build the JACK related opcodes
+JACK_LIB_DEPENDS= libjack.so:audio/jack
+JACK_CMAKE_BOOL= BUILD_JACK_OPCODES USE_JACK
+
+LINALG_DESC= Build the linear algebra opcodes
+LINALG_CMAKE_BOOL= BUILD_LINEAR_ALGEBRA_OPCODES
+LINALG_BROKEN= see https://github.com/csound/csound/issues/1069
+
+LUA_DESC= Build Lua Interface and opcodes
+LUA_LIB_DEPENDS= libluajit-5.1.so:lang/luajit
+LUA_CMAKE_OFF= -DBUILD_CSOUND_AC_LUA_INTERFACE:BOOL=OFF \
+ -DBUILD_LUA_INTERFACE:BOOL=OFF \
+ -DBUILD_LUA_OPCODES:BOOL=OFF
+NLS_USES= gettext
+NLS_CMAKE_OFF= -DGETTEXT_MSGFMT_EXECUTABLE:FILEPATH="" \
+ -DGETTEXT_MSGMERGE_EXECUTABLE:FILEPATH="" \
+ -DLIBINTL_LIBRARY:FILEPATH="" \
+ -DUSE_GETTEXT:BOOL=OFF
+OPENMP_CMAKE_BOOL= USE_OPEN_MP
+
+OSC_DESC= Build OSC opcodes
+OSC_LIB_DEPENDS= liblo.so:audio/liblo
+OSC_CMAKE_BOOL= BUILD_OSC_OPCODES
+
+PADSYNTH_DESC= Build the Padsynth opcode
+PADSYNTH_CMAKE_BOOL= BUILD_PADSYNTH_OPCODES
+
+IMAGE_DESC= Build Image opcodes
+IMAGE_LIB_DEPENDS= libpng.so:graphics/png
+IMAGE_CMAKE_BOOL= BUILD_IMAGE_OPCODES
+
+P5GLOVE_DESC= Build PortAudio I/O module
+P5GLOVE_CMAKE_BOOL= BUILD_P5GLOVE_OPCODES
+
+PORTAUDIO_DESC= Build PortAudio I/O module
+PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio
+PORTAUDIO_CMAKE_BOOL= USE_PORTAUDIO
+
+PULSEAUDIO_DESC= Build PulseAudio I/O module
+PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio
+PULSEAUDIO_CMAKE_BOOL= USE_PULSEAUDIO
+
+PLATEREV_DESC= Build the platerev opcode
+PLATEREV_CMAKE_BOOL= BUILD_PLATEREV_OPCODES
+
+PVSGENDY_DESC= Build the pvsgendy opcode
+PVSGENDY_CMAKE_BOOL= BUILD_PVSGENDY_OPCODE
+
+SCANSYN_DESC= Build the select opcodes
+SCANSYN_CMAKE_BOOL= BUILD_SCANSYN_OPCODES
+
+SELECT_DESC= Build the select opcode
+SELECT_CMAKE_BOOL= BUILD_SELECT_OPCODE
+
+SERIAL_DESC= Build the serial opcode
+SERIAL_CMAKE_BOOL= BUILD_SERIAL_OPCODES
+
+STACK_DESC= Build the stack opcodes
+STACK_CMAKE_BOOL= BUILD_STACK_OPCODES
+
+STK_DESC= Build the stk opcodes
+STK_CMAKE_BOOL= BUILD_STK_OPCODES
+STK_LIB_DEPENDS= libstk-4.6.0.so:audio/stk
+
+WIIMOTE_DESC= Build the Wiimote opcodes
+WIIMOTE_CMAKE_BOOL= BUILD_WIIMOTE_OPCODES
+WIIMOTE_BROKEN= Need to port wiiuse: https://github.com/rpavlik/wiiuse
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|/usr/local|${LOCALBASE}|' \
+ ${WRKSRC}/InOut/CMakeLists.txt
+ @${REINPLACE_CMD} -e \
+ 's|/usr/include/Python2.7|${PYTHON_INCLUDEDIR}| ; \
+ s|/usr/local|${LOCALBASE}| ; \
+ /linuxjoystick/s|^|#| ; \
+ s| dl)|)|' \
+ ${WRKSRC}/Opcodes/CMakeLists.txt
+ @${REINPLACE_CMD} -e \
+ '/CMAKE_SYSTEM_NAME/s|"Linux"|"${OPSYS}"|' \
+ ${WRKSRC}/Frontends/CMakeLists.txt
+ @${REINPLACE_CMD} -e \
+ 's| mixer)| csmixer)|' \
+ ${WRKSRC}/util/CMakeLists.txt
+.for i in Engine/auxfd.c H/prototyp.h OOps/diskin2.c OOps/dumpf.c \
+ Opcodes/partials.c Top/csound.c
+ @${REINPLACE_CMD} -e \
+ 's|\([[:blank:]]fd\)\(close\)|\1__\2|' ${WRKSRC}/${i}
+.endfor
+
+post-install:
+ @${LN} -sf libcsnd6.so.6.0 ${STAGEDIR}${PREFIX}/lib/libcsnd6.so.6
+ @${LN} -sf libcsound64.so.6.0 ${STAGEDIR}${PREFIX}/lib/libcsound64.so.6
+
+post-install-FLTK-on:
+ @${LN} -sf libCsoundAC.so.6.0 ${STAGEDIR}${PREFIX}/lib/libCsoundAC.so.6
+
+.include <bsd.port.mk>
diff --git a/audio/csound/distinfo b/audio/csound/distinfo
new file mode 100644
index 000000000000..9c3eb56ef563
--- /dev/null
+++ b/audio/csound/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1542488559
+SHA256 (csound-csound-6.12.2_GH0.tar.gz) = 39f4872b896eb1cbbf596fcacc0f2122fd3e5ebbb5cec14a81b4207d6b8630ff
+SIZE (csound-csound-6.12.2_GH0.tar.gz) = 26297850
diff --git a/audio/csound/files/custom.py.in b/audio/csound/files/custom.py.in
new file mode 100644
index 000000000000..3e5fbf1a5856
--- /dev/null
+++ b/audio/csound/files/custom.py.in
@@ -0,0 +1,12 @@
+# Order is important: place local paths ahead of system paths.
+
+import sys
+
+customCPPPATH = [ '%%LOCALBASE%%/include', '%%PYTHON_INCLUDEDIR%%' ]
+customCCFLAGS = [ ]
+customCXXFLAGS = [ ]
+customLIBS = [ 'intl' ]
+customLIBPATH = [ '%%PORTAUDIO_L%%', '%%LOCALBASE%%/lib' ]
+customSHLINKFLAGS = [ '%%PORTAUDIO_R%%', '%%PTHREAD_LIBS%%' ]
+customSWIGFLAGS = []
+platform = 'linux'
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)
+
diff --git a/audio/csound/files/patch-H_remote.h b/audio/csound/files/patch-H_remote.h
new file mode 100644
index 000000000000..d83fa52cd1f1
--- /dev/null
+++ b/audio/csound/files/patch-H_remote.h
@@ -0,0 +1,14 @@
+--- H/remote.h.orig 2015-09-29 11:13:27 UTC
++++ H/remote.h
+@@ -42,7 +42,10 @@
+ #ifdef MACOSX
+ #include <net/if.h>
+ #endif
+- #ifdef LINUX
++ #ifdef __FreeBSD__
++ #include <net/if.h>
++ #endif
++ #ifdef linux
+ #include <linux/if.h>
+ #endif
+ #include <arpa/inet.h>
diff --git a/audio/csound/files/patch-InOut_rtalsa.c b/audio/csound/files/patch-InOut_rtalsa.c
new file mode 100644
index 000000000000..11f938a16a08
--- /dev/null
+++ b/audio/csound/files/patch-InOut_rtalsa.c
@@ -0,0 +1,27 @@
+--- InOut/rtalsa.c.orig 2018-11-07 14:05:23 UTC
++++ InOut/rtalsa.c
+@@ -23,6 +23,7 @@
+ 02110-1301 USA
+ */
+
++/*
+ #ifndef _ISOC99_SOURCE
+ #define _ISOC99_SOURCE 1
+ #endif
+@@ -36,6 +37,7 @@
+ #ifndef _BSD_SOURCE
+ #define _BSD_SOURCE 1
+ #endif
++*/
+
+ #include "csdl.h"
+
+@@ -54,6 +56,8 @@
+ #include <signal.h>
+ #include <sys/mman.h>
+ #include <sys/resource.h>
++#include <stdlib.h>
++#include <sys/fcntl.h>
+
+
+ #include "soundio.h"
diff --git a/audio/csound/files/patch-Opcodes_stk_CMakeLists.txt b/audio/csound/files/patch-Opcodes_stk_CMakeLists.txt
new file mode 100644
index 000000000000..f7b69b36bd55
--- /dev/null
+++ b/audio/csound/files/patch-Opcodes_stk_CMakeLists.txt
@@ -0,0 +1,11 @@
+--- Opcodes/stk/CMakeLists.txt.orig 2018-11-17 19:16:54 UTC
++++ Opcodes/stk/CMakeLists.txt
+@@ -4,7 +4,7 @@ if(WIN32)
+ cmake_policy(SET CMP0060 NEW)
+ endif()
+
+-if(NOT STK_LOCAL)
++if(BUILD_STK_OPCODES AND NOT STK_LOCAL)
+ find_package(STK)
+ endif()
+
diff --git a/audio/csound/files/patch-Top_csound.c b/audio/csound/files/patch-Top_csound.c
new file mode 100644
index 000000000000..e5b3f6e4fd2a
--- /dev/null
+++ b/audio/csound/files/patch-Top_csound.c
@@ -0,0 +1,65 @@
+--- Top/csound.c.orig 2018-11-07 14:05:23 UTC
++++ Top/csound.c
+@@ -60,10 +60,14 @@
+ //#include "cs_par_dispatch.h"
+ #include "find_opcode.h"
+
+-#if defined(linux)||defined(__HAIKU__)|| defined(__EMSCRIPTEN__)||defined(__CYGWIN__)
++#if defined(linux) || defined(__FreeBSD__) || defined(__HAIKU__)|| defined(__EMSCRIPTEN__)||defined(__CYGWIN__)
+ #define PTHREAD_SPINLOCK_INITIALIZER 0
+ #endif
+
++#if defined(__FreeBSD__)
++#include <sys/sysctl.h>
++#endif
++
+ #include "csound_standard_types.h"
+
+ #include "csdebug.h"
+@@ -405,7 +409,7 @@ static const CSOUND cenviron_ = {
+ rewriteheader,
+ csoundLoadSoundFile,
+ fdrecord,
+- fdclose,
++ fd__close,
+ csoundCreateFileHandle,
+ csoundGetFileName,
+ csoundFileClose,
+@@ -3755,7 +3759,7 @@ void csoundNotifyFileOpened(CSOUND* csou
+ /* ------------------------------------ */
+
+ #if defined(HAVE_RDTSC)
+-#if !(defined(LINUX) && defined(__GNUC__) && defined(__i386__))
++#if !(defined(LINUX) && defined(__GNUC__) && defined(__i386__)) || !(defined(__FreeBSD__) && defined(__i386__))
+ #undef HAVE_RDTSC
+ #endif
+ #endif
+@@ -3768,6 +3772,13 @@ static double timeResolutionSeconds = -1
+ static int getTimeResolution(void)
+ {
+ #if defined(HAVE_RDTSC)
++#if defined(__FreeBSD__)
++ size_t size;
++ int timeResolutionSeconds;
++ size = sizeof timeResolutionSeconds;
++ sysctlbyname("hw.clockrate", &timeResolutionSeconds, &size, NULL, 0);
++
++#else
+ FILE *f;
+ char buf[256];
+
+@@ -3803,9 +3814,14 @@ static int getTimeResolution(void)
+ }
+ }
+ fclose(f);
++#endif /* __FreeBSD__ */
+ if (UNLIKELY(timeResolutionSeconds <= 0.0)) {
+ fprintf(stderr, Str("No valid CPU frequency entry "
++#if defined(__FreeBSD__)
++ "was found.\n"));
++#else
+ "was found in /proc/cpuinfo.\n"));
++#endif /* __FreeBSD__ */
+ return -1;
+ }
+ /* MHz -> seconds */
diff --git a/audio/csound/files/patch-cmake_Modules_FindFAUST.cmake b/audio/csound/files/patch-cmake_Modules_FindFAUST.cmake
new file mode 100644
index 000000000000..40e45b4557cc
--- /dev/null
+++ b/audio/csound/files/patch-cmake_Modules_FindFAUST.cmake
@@ -0,0 +1,11 @@
+--- cmake/Modules/FindFAUST.cmake.orig 2018-11-17 16:56:13 UTC
++++ cmake/Modules/FindFAUST.cmake
+@@ -27,7 +27,7 @@ if(FAUST_FOUND)
+ # This is a static build of faust, hence
+ # we have to add all the LLVM flags...
+
+- find_program(LLVM_CONFIG llvm-config HINTS /usr/bin /usr/local/bin /usr/local/opt/llvm/bin)
++ find_program(LLVM_CONFIG llvm-config${FAUST_LLVM_VERSION} HINTS /usr/bin /usr/local/bin /usr/local/opt/llvm/bin)
+ if(NOT LLVM_CONFIG)
+ message(FATAL_ERROR "Using a static Faust library requires LLVM tooling to be present in the path")
+ endif()
diff --git a/audio/csound/files/pkg-message.in b/audio/csound/files/pkg-message.in
new file mode 100644
index 000000000000..94fe1c601a87
--- /dev/null
+++ b/audio/csound/files/pkg-message.in
@@ -0,0 +1,4 @@
+===================-Please Note:-====================================
+%%PREFIX%%/bin/mixer has been renamed to %%PREFIX%%/bin/csmixer so it
+won't conflict with /usr/bin/mixer
+=====================================================================
diff --git a/audio/csound/pkg-descr b/audio/csound/pkg-descr
new file mode 100644
index 000000000000..11619737c6b7
--- /dev/null
+++ b/audio/csound/pkg-descr
@@ -0,0 +1,21 @@
+Csound is a programming language designed and optimized for sound
+rendering and signal processing. The language consists of over 450
+opcodes - the operational codes that the sound designer uses to build
+"instruments" or patches.
+
+Although there are an increasing number of graphical "front-ends" for
+the language, you typically design and modify your patches using a word
+processor. Usually, you create two text files - a .orc (orchestra) file
+containing the "instruments," and a .sco (score) file containing the
+"notes."
+
+In Csound, the complexity of your patches is limited by your knowledge,
+interest, and need, but never by the language itself. For instance, a
+22,050 oscillator additive synthesizer with 1024 stage envelope
+generators on each is merely a copy-and-paste operation. The same goes
+for a 1 million voice granular texture!
+
+Have you ever dreamed of sounds such as these? Well in Csound you can.
+And in Csound these dreams can come true!
+
+WWW: https://csound.com/
diff --git a/audio/csound/pkg-plist b/audio/csound/pkg-plist
new file mode 100644
index 000000000000..ce437a000083
--- /dev/null
+++ b/audio/csound/pkg-plist
@@ -0,0 +1,129 @@
+bin/atsa
+bin/cs
+bin/csanalyze
+bin/csb64enc
+bin/csbeats
+bin/csdebugger
+bin/csmixer
+bin/csound
+bin/cvanal
+bin/dnoise
+bin/envext
+bin/extract
+bin/extractor
+bin/het_export
+bin/het_import
+bin/hetro
+bin/lpanal
+bin/lpc_export
+bin/lpc_import
+bin/makecsd
+bin/pv_export
+bin/pv_import
+bin/pvanal
+bin/pvlook
+bin/scale
+bin/scot
+bin/scsort
+bin/sdif2ad
+bin/sndinfo
+bin/src_conv
+bin/srconv
+%%FLTK%%bin/winsound
+include/csound/CppSound.hpp
+include/csound/CsoundFile.hpp
+include/csound/OpcodeBase.hpp
+include/csound/arrays.h
+include/csound/cfgvar.h
+include/csound/csPerfThread.hpp
+include/csound/cs_par_structs.h
+include/csound/cscore.h
+include/csound/csdebug.h
+include/csound/csdl.h
+include/csound/csound.h
+include/csound/csound.hpp
+include/csound/csoundCore.h
+include/csound/csound_data_structures.h
+include/csound/csound_standard_types.h
+include/csound/csound_threaded.hpp
+include/csound/csound_type_system.h
+include/csound/cwindow.h
+include/csound/filebuilding.h
+include/csound/float-version.h
+include/csound/interlocks.h
+include/csound/modload.h
+include/csound/msg_attr.h
+include/csound/plugin.h
+include/csound/pools.h
+include/csound/pstream.h
+include/csound/pvfileio.h
+include/csound/soundio.h
+include/csound/sysdep.h
+include/csound/text.h
+include/csound/version.h
+lib/csound/plugins64-6.0/libampmidid.so
+lib/csound/plugins64-6.0/libarrayops.so
+lib/csound/plugins64-6.0/libbeosc.so
+%%BUCHLA%%lib/csound/plugins64-6.0/libbuchla.so
+lib/csound/plugins64-6.0/libcellular.so
+%%CHUA%%lib/csound/plugins64-6.0/libchua.so
+lib/csound/plugins64-6.0/libcontrol.so
+lib/csound/plugins64-6.0/libcs_date.so
+lib/csound/plugins64-6.0/libdoppler.so
+%%DSSI%%lib/csound/plugins64-6.0/libdssi4cs.so
+lib/csound/plugins64-6.0/libemugens.so
+%%EXCITER%%lib/csound/plugins64-6.0/libexciter.so
+lib/csound/plugins64-6.0/libfareygen.so
+%%FAUST%%lib/csound/plugins64-6.0/libfaustcsound.so
+%%FLUIDSYNTH%%lib/csound/plugins64-6.0/libfluidOpcodes.so
+lib/csound/plugins64-6.0/libfractalnoise.so
+lib/csound/plugins64-6.0/libframebuffer.so
+lib/csound/plugins64-6.0/libftsamplebank.so
+lib/csound/plugins64-6.0/libgetftargs.so
+%%IMAGE%%lib/csound/plugins64-6.0/libimage.so
+lib/csound/plugins64-6.0/libipmidi.so
+%%JACK%%lib/csound/plugins64-6.0/libjackTransport.so
+%%JACK%%lib/csound/plugins64-6.0/libjacko.so
+%%HDF5%%lib/csound/plugins64-6.0/libhdf5ops.so
+lib/csound/plugins64-6.0/libliveconv.so
+lib/csound/plugins64-6.0/libmixer.so
+%%OSC%%lib/csound/plugins64-6.0/libosc.so
+%%PADSYNTH%%lib/csound/plugins64-6.0/libpadsynth.so
+%%PLATEREV%%lib/csound/plugins64-6.0/libplaterev.so
+lib/csound/plugins64-6.0/libpvsops.so
+lib/csound/plugins64-6.0/libpy.so
+lib/csound/plugins64-6.0/libquadbezier.so
+%%JACK%%lib/csound/plugins64-6.0/librtjack.so
+%%PORTAUDIO%%lib/csound/plugins64-6.0/librtpa.so
+%%PULSEAUDIO%%lib/csound/plugins64-6.0/librtpulse.so
+%%SCANSYN%%lib/csound/plugins64-6.0/libscansyn.so
+lib/csound/plugins64-6.0/libscugens.so
+%%SELECT%%lib/csound/plugins64-6.0/libselect.so
+%%SERIAL%%lib/csound/plugins64-6.0/libserial.so
+lib/csound/plugins64-6.0/libsignalflowgraph.so
+%%STACK%%lib/csound/plugins64-6.0/libstackops.so
+lib/csound/plugins64-6.0/libstdutil.so
+%%STK%%lib/csound/plugins64-6.0/libstkops.so
+lib/csound/plugins64-6.0/libsystem_call.so
+lib/csound/plugins64-6.0/liburandom.so
+%%FLTK%%lib/csound/plugins64-6.0/libvirtual.so
+%%FLTK%%lib/csound/plugins64-6.0/libwidgets.so
+%%FLTK%%lib/libCsoundAC.so.6
+lib/libcsnd6.so
+lib/libcsnd6.so.6
+lib/libcsnd6.so.6.0
+lib/libcsound64.so
+lib/libcsound64.so.6
+lib/libcsound64.so.6.0
+%%LUA%%lib/luaCsnd6.so
+%%PYTHON_SITELIBDIR%%/_csnd6.so
+%%PYTHON_SITELIBDIR%%/csnd6.py
+%%PYTHON_SITELIBDIR%%/ctcsound.py
+share/cmake/Csound/FindCsound.cmake
+%%NLS%%share/locale/de/LC_MESSAGES/csound6.mo
+%%NLS%%share/locale/en_US/LC_MESSAGES/csound6.mo
+%%NLS%%share/locale/es/LC_MESSAGES/csound6.mo
+%%NLS%%share/locale/es_CO/LC_MESSAGES/csound6.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/csound6.mo
+%%NLS%%share/locale/it/LC_MESSAGES/csound6.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/csound6.mo