2012-10-12 13:25:38 +00:00
|
|
|
class FdkAac < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Standalone library of the Fraunhofer FDK AAC code from Android"
|
2014-05-31 23:07:57 +00:00
|
|
|
homepage "http://sourceforge.net/projects/opencore-amr/"
|
2015-03-12 20:23:25 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-0.1.4.tar.gz"
|
|
|
|
sha256 "5910fe788677ca13532e3f47b7afaa01d72334d46a2d5e1d1f080f1173ff15ab"
|
2012-10-12 13:25:38 +00:00
|
|
|
|
2015-03-17 03:23:52 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "69c1659f65a9ca7644bf81ac4a8833ad23f63239c9f4cc14ab39bc203dbe2c68" => :yosemite
|
|
|
|
sha256 "6b4ea8d82e310acb425325ad19d79ad039c3a3c88db0534e59d0fd973c16d058" => :mavericks
|
|
|
|
sha256 "6288e9b2d40ea937f7964aa0ea86e99884d8f7729a8f57429ec51cdb53b3ca4f" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-05-31 23:07:57 +00:00
|
|
|
head do
|
|
|
|
url "git://opencore-amr.git.sourceforge.net/gitroot/opencore-amr/fdk-aac"
|
2012-10-12 13:25:38 +00:00
|
|
|
|
2014-05-31 23:07:57 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
2012-10-12 13:25:38 +00:00
|
|
|
|
|
|
|
def install
|
2014-05-31 23:07:57 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2015-03-12 20:23:25 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-example"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/aac-enc", test_fixtures("test.wav"), "test.aac"
|
|
|
|
assert File.exist?("test.aac")
|
2012-10-12 13:25:38 +00:00
|
|
|
end
|
|
|
|
end
|