2013-10-07 17:11:46 +00:00
|
|
|
class Flac123 < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Command-line program for playing FLAC audio files"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://flac-tools.sourceforge.net/"
|
2015-04-22 21:09:11 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/flac-tools/flac123/flac123-0.0.12-release.tar.gz"
|
|
|
|
sha256 "1976efd54a918eadd3cb10b34c77cee009e21ae56274148afa01edf32654e47d"
|
|
|
|
|
2015-09-05 04:11:53 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "3bc22230d8e4ed12c794a0784173e576d17cfae249bb87d4540680d3f0483957" => :yosemite
|
|
|
|
sha256 "afeeeebde3988d1028452606aaf22ba18379cf59743c4ac9abefac2f86234dd1" => :mavericks
|
|
|
|
sha256 "4f76ae1d865f10de27f44c57242178c06ffb33017ac3646a4dd2115fc2882c61" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-04-22 21:09:11 +00:00
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
2013-10-07 17:11:46 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "flac"
|
|
|
|
depends_on "libao"
|
|
|
|
depends_on "libogg"
|
|
|
|
depends_on "popt"
|
2013-10-07 17:11:46 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-04-22 21:09:11 +00:00
|
|
|
system "make", "install", "CC=#{ENV.cc}",
|
|
|
|
# specify aclocal and automake without version suffixes
|
|
|
|
"ACLOCAL=${SHELL} #{buildpath}/missing --run aclocal",
|
|
|
|
"AUTOMAKE=${SHELL} #{buildpath}/missing --run automake"
|
2013-10-07 17:11:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/flac123"
|
|
|
|
end
|
|
|
|
end
|