summaryrefslogtreecommitdiff
path: root/homebrew/csound
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/csound')
-rw-r--r--homebrew/csound/.beer62
-rw-r--r--homebrew/csound/.make.sh-auto7
-rw-r--r--homebrew/csound/_metadata/description1
-rw-r--r--homebrew/csound/_metadata/homepage1
-rw-r--r--homebrew/csound/_metadata/name1
-rw-r--r--homebrew/csound/_metadata/version1
-rwxr-xr-xhomebrew/csound/download.sh1
7 files changed, 74 insertions, 0 deletions
diff --git a/homebrew/csound/.beer b/homebrew/csound/.beer
new file mode 100644
index 000000000..3eb3d0b38
--- /dev/null
+++ b/homebrew/csound/.beer
@@ -0,0 +1,62 @@
+{
+ "name": "Csound",
+ "description": "Sound and music computing system",
+ "url": "https://github.com/csound/csound/archive/6.12.2.tar.gz",
+ "mirror": null,
+ "homepage": "https://csound.com",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ },
+ {
+ "depend": "fltk",
+ "build-depend": false
+ },
+ {
+ "depend": "liblo",
+ "build-depend": false
+ },
+ {
+ "depend": "libsamplerate",
+ "build-depend": false
+ },
+ {
+ "depend": "libsndfile",
+ "build-depend": false
+ },
+ {
+ "depend": "portaudio",
+ "build-depend": false
+ },
+ {
+ "depend": "portmidi",
+ "build-depend": false
+ },
+ {
+ "depend": "stk",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "inreplace \"CMakeLists.txt\",",
+ "%r{^set\\(CS_FRAMEWORK_DEST\\s+\"~/Library/Frameworks\"\\)$},",
+ "\"set(CS_FRAMEWORK_DEST \\\"#{frameworks}\\\")\"",
+ "args = std_cmake_args + %W[",
+ "-DBUILD_FLUID_OPCODES=OFF",
+ "-DBUILD_JAVA_INTERFACE=OFF",
+ "-DBUILD_LUA_INTERFACE=OFF",
+ "-DBUILD_PYTHON_INTERFACE=OFF",
+ "-DCMAKE_INSTALL_RPATH=#{frameworks}",
+ "]",
+ "mkdir \"build\" do",
+ "system \"cmake\", \"..\", *args",
+ "system \"make\", \"install\"",
+ "include.install_symlink \"#{frameworks}/CsoundLib64.framework/Headers\" => \"csound\""
+ ],
+ "version": "6.12.2",
+ "file": "csound.rb"
+} \ No newline at end of file
diff --git a/homebrew/csound/.make.sh-auto b/homebrew/csound/.make.sh-auto
new file mode 100644
index 000000000..06bc76fe1
--- /dev/null
+++ b/homebrew/csound/.make.sh-auto
@@ -0,0 +1,7 @@
+pkg:setup
+inreplace "CMakeLists.txt", %r{^set\(CS_FRAMEWORK_DEST\s+"~/Library/Frameworks"\)$}, "set(CS_FRAMEWORK_DEST \"#{frameworks}\")"
+args = std_cmake_args + %W[-DBUILD_FLUID_OPCODES=OFF -DBUILD_JAVA_INTERFACE=OFF -DBUILD_LUA_INTERFACE=OFF -DBUILD_PYTHON_INTERFACE=OFF -DCMAKE_INSTALL_RPATH=#{frameworks} ]
+mkdir "build" && cd build
+cmake .. *args
+make DESTDIR=${PKG_DEST} install
+include.install_symlink "#{frameworks}/CsoundLib64.framework/Headers" => "csound"
diff --git a/homebrew/csound/_metadata/description b/homebrew/csound/_metadata/description
new file mode 100644
index 000000000..6426ee066
--- /dev/null
+++ b/homebrew/csound/_metadata/description
@@ -0,0 +1 @@
+Sound and music computing system
diff --git a/homebrew/csound/_metadata/homepage b/homebrew/csound/_metadata/homepage
new file mode 100644
index 000000000..309345a53
--- /dev/null
+++ b/homebrew/csound/_metadata/homepage
@@ -0,0 +1 @@
+https://csound.com
diff --git a/homebrew/csound/_metadata/name b/homebrew/csound/_metadata/name
new file mode 100644
index 000000000..45b9a0dce
--- /dev/null
+++ b/homebrew/csound/_metadata/name
@@ -0,0 +1 @@
+Csound
diff --git a/homebrew/csound/_metadata/version b/homebrew/csound/_metadata/version
new file mode 100644
index 000000000..f867e2993
--- /dev/null
+++ b/homebrew/csound/_metadata/version
@@ -0,0 +1 @@
+6.12.2
diff --git a/homebrew/csound/download.sh b/homebrew/csound/download.sh
new file mode 100755
index 000000000..144f5ad49
--- /dev/null
+++ b/homebrew/csound/download.sh
@@ -0,0 +1 @@
+wget https://github.com/csound/csound/archive/6.12.2.tar.gz \ No newline at end of file