23 lines
889 B
Ruby
23 lines
889 B
Ruby
class Libdca < Formula
|
|
desc "Library for decoding DTS Coherent Acoustics streams"
|
|
homepage "https://www.videolan.org/developers/libdca.html"
|
|
url "https://download.videolan.org/pub/videolan/libdca/0.0.5/libdca-0.0.5.tar.bz2"
|
|
sha256 "dba022e022109a5bacbe122d50917769ff27b64a7bba104bd38ced8de8510642"
|
|
|
|
bottle do
|
|
sha1 "3d21b7c01673aeff88a00e4986f069311e021e7e" => :yosemite
|
|
sha1 "cdade946152a659fa3bcd9066732822a11905d17" => :mavericks
|
|
sha1 "e3398adba7ac2e06fcc487eed2f442e7b831d8d1" => :mountain_lion
|
|
end
|
|
|
|
def install
|
|
# Fixes "duplicate symbol ___sputc" error when building with clang
|
|
# https://github.com/Homebrew/homebrew/issues/31456
|
|
ENV.append_to_cflags "-std=gnu89"
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
end
|