homebrew-core/Formula/flac123.rb

34 lines
1.1 KiB
Ruby
Raw Normal View History

class Flac123 < Formula
desc "Command-line program for playing FLAC audio files"
homepage "http://flac-tools.sourceforge.net/"
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
depends_on "automake" => :build
depends_on "autoconf" => :build
depends_on "flac"
depends_on "libao"
depends_on "libogg"
depends_on "popt"
def install
system "./configure", "--prefix=#{prefix}"
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"
end
test do
system "#{bin}/flac123"
end
end