aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libdca.rb
blob: 5460c92698475e1d1bae0909fc5f9dea55e8f154 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'formula'

class Libdca < Formula
  homepage 'http://www.videolan.org/developers/libdca.html'
  url 'http://download.videolan.org/pub/videolan/libdca/0.0.5/libdca-0.0.5.tar.bz2'
  sha1 '3fa5188eaaa2fc83fb9c4196f6695a23cb17f3bc'

  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