27 lines
703 B
Ruby
27 lines
703 B
Ruby
|
class Faust < Formula
|
||
|
desc "Functional programming language for real time signal processing"
|
||
|
homepage "https://faust.grame.fr"
|
||
|
url "https://github.com/grame-cncm/faust/releases/download/2.15.11/faust-2.15.11.tar.gz"
|
||
|
sha256 "660816b7fa44da718868d895a82f18f4a441c347bc39afc20a651124f5711d5c"
|
||
|
|
||
|
depends_on "cmake" => :build
|
||
|
depends_on "pkg-config" => :build
|
||
|
depends_on "libmicrohttpd"
|
||
|
depends_on "libsndfile"
|
||
|
depends_on "llvm"
|
||
|
|
||
|
def install
|
||
|
system "make", "world"
|
||
|
system "make", "install", "PREFIX=#{prefix}"
|
||
|
end
|
||
|
|
||
|
test do
|
||
|
(testpath/"noise.dsp").write <<~EOS
|
||
|
import("stdfaust.lib");
|
||
|
process = no.noise;
|
||
|
EOS
|
||
|
|
||
|
system "#{bin}/faust", "noise.dsp"
|
||
|
end
|
||
|
end
|