2011-03-10 05:11:03 +00:00
|
|
|
class Aften < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Audio encoder which generates ATSC A/52 compressed audio streams"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://aften.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/aften/aften-0.0.8.tar.bz2"
|
|
|
|
sha256 "87cc847233bb92fbd5bed49e2cdd6932bb58504aeaefbfd20ecfbeb9532f0c0a"
|
2010-10-09 16:00:48 +00:00
|
|
|
|
2016-02-15 23:09:29 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2016-09-25 21:16:48 +00:00
|
|
|
sha256 "535ef47b08163c8d1d7a66ffda7d3f280c0569a74d9feedbcfc93cd3c55194ca" => :sierra
|
2016-02-15 23:09:29 +00:00
|
|
|
sha256 "68b4983cc843e2d57854a263038a965a2dd6c473c98111f482ec1c69d09ace83" => :el_capitan
|
|
|
|
sha256 "4f785f04a3bbde677452f2c5d1c04f77605e156b4020294c5799c85d0b8586d3" => :yosemite
|
|
|
|
sha256 "b7acaf77ece8e6b51493ce69e713990a4ce13bc5b9d5ad6914cc86c0f745c9d0" => :mavericks
|
|
|
|
end
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "cmake" => :build
|
2010-10-09 16:00:48 +00:00
|
|
|
|
2016-04-29 16:34:50 +00:00
|
|
|
resource "sample_wav" do
|
|
|
|
url "http://www.mediacollege.com/audio/tone/files/1kHz_44100Hz_16bit_05sec.wav"
|
|
|
|
sha256 "949dd8ef74db1793ac6174b8d38b1c8e4c4e10fb3ffe7a15b4941fa0f1fbdc20"
|
|
|
|
end
|
|
|
|
|
2010-10-09 16:00:48 +00:00
|
|
|
def install
|
2015-08-03 12:55:31 +00:00
|
|
|
mkdir "default" do
|
2012-05-22 21:37:04 +00:00
|
|
|
system "cmake", "-DSHARED=ON", "..", *std_cmake_args
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2010-10-09 16:00:48 +00:00
|
|
|
end
|
|
|
|
end
|
2016-04-29 16:34:50 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
resource("sample_wav").stage testpath
|
|
|
|
system "#{bin}/aften", "#{testpath}/1kHz_44100Hz_16bit_05sec.wav", "sample.ac3"
|
|
|
|
end
|
2010-10-09 16:00:48 +00:00
|
|
|
end
|