2010-05-06 01:59:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libdca < Formula
|
2010-05-06 01:59:26 +00:00
|
|
|
homepage 'http://www.videolan.org/developers/libdca.html'
|
2013-01-29 05:22:50 +00:00
|
|
|
url 'http://download.videolan.org/pub/videolan/libdca/0.0.5/libdca-0.0.5.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '3fa5188eaaa2fc83fb9c4196f6695a23cb17f3bc'
|
2010-05-06 01:59:26 +00:00
|
|
|
|
2014-10-21 15:14:29 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "3d21b7c01673aeff88a00e4986f069311e021e7e" => :yosemite
|
|
|
|
sha1 "cdade946152a659fa3bcd9066732822a11905d17" => :mavericks
|
|
|
|
sha1 "e3398adba7ac2e06fcc487eed2f442e7b831d8d1" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2010-05-06 01:59:26 +00:00
|
|
|
def install
|
2014-08-08 21:11:27 +00:00
|
|
|
# Fixes "duplicate symbol ___sputc" error when building with clang
|
|
|
|
# https://github.com/Homebrew/homebrew/issues/31456
|
|
|
|
ENV.append_to_cflags "-std=gnu89"
|
|
|
|
|
2013-01-29 05:22:50 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2010-05-06 01:59:26 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|