2013-01-19 07:16:31 +00:00
|
|
|
class Aubio < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Extract annotations from audio signals"
|
2015-08-07 17:01:54 +00:00
|
|
|
homepage "https://aubio.org/"
|
|
|
|
url "https://aubio.org/pub/aubio-0.4.2.tar.bz2"
|
2015-08-06 23:56:00 +00:00
|
|
|
sha256 "1cc58e0fed2b9468305b198ad06b889f228b797a082c2ede716dc30fcb4f8f1f"
|
2014-06-09 19:45:15 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
head "https://github.com/piem/aubio.git", :branch => "develop"
|
2014-11-06 00:09:17 +00:00
|
|
|
|
2014-06-23 11:00:18 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-08-07 05:34:41 +00:00
|
|
|
sha256 "4b9b7780d8523f46b4de9da1da42de9a81af06bbe87b1c36125860b8eb014533" => :yosemite
|
|
|
|
sha256 "f23c2aeef3734dadeaa2369da75e20a50269650ab18e9a1a5639df9de8eb43d2" => :mavericks
|
|
|
|
sha256 "770f58a1601edce01bcdd4fffcb6bc7a75c81c3119eab6592cd51c911fe0bc24" => :mountain_lion
|
2014-06-23 11:00:18 +00:00
|
|
|
end
|
|
|
|
|
2014-06-09 19:45:15 +00:00
|
|
|
option :universal
|
2013-01-19 07:16:31 +00:00
|
|
|
|
2013-06-14 19:09:06 +00:00
|
|
|
depends_on :macos => :lion
|
2013-06-28 03:38:12 +00:00
|
|
|
|
2014-06-09 19:45:15 +00:00
|
|
|
depends_on :python => :optional
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2014-12-04 17:01:18 +00:00
|
|
|
depends_on "libtool" => :build
|
2013-01-19 07:16:31 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "libav" => :optional
|
|
|
|
depends_on "libsndfile" => :optional
|
|
|
|
depends_on "libsamplerate" => :optional
|
|
|
|
depends_on "fftw" => :optional
|
|
|
|
depends_on "jack" => :optional
|
2014-11-06 00:09:17 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
if build.with? "python"
|
|
|
|
depends_on "numpy" => :python
|
2014-06-09 19:45:15 +00:00
|
|
|
end
|
2013-01-19 07:16:31 +00:00
|
|
|
|
|
|
|
def install
|
2014-06-09 19:45:15 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
|
|
|
|
|
|
|
# Needed due to issue with recent cland (-fno-fused-madd))
|
|
|
|
ENV.refurbish_args
|
|
|
|
|
|
|
|
system "./waf", "configure", "--prefix=#{prefix}"
|
|
|
|
system "./waf", "build"
|
|
|
|
system "./waf", "install"
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
if build.with? "python"
|
|
|
|
cd "python" do
|
2014-06-09 19:45:15 +00:00
|
|
|
system "python", "./setup.py", "build"
|
|
|
|
system "python", "./setup.py", "install", "--prefix", prefix
|
2015-08-03 12:55:31 +00:00
|
|
|
bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
2014-06-09 19:45:15 +00:00
|
|
|
end
|
|
|
|
end
|
2013-01-19 07:16:31 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2015-08-03 12:55:31 +00:00
|
|
|
if build.with? "python"
|
2014-06-09 19:45:15 +00:00
|
|
|
system "#{bin}/aubiocut", "--verbose", "/System/Library/Sounds/Glass.aiff"
|
|
|
|
end
|
|
|
|
system "#{bin}/aubioonset", "--verbose", "/System/Library/Sounds/Glass.aiff"
|
2013-01-19 07:16:31 +00:00
|
|
|
end
|
|
|
|
end
|