homebrew-core/Formula/libsndfile.rb
2017-02-02 20:24:27 +01:00

31 lines
1 KiB
Ruby

class Libsndfile < Formula
desc "C library for files containing sampled sound"
homepage "http://www.mega-nerd.com/libsndfile/"
url "http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.27.tar.gz"
sha256 "a391952f27f4a92ceb2b4c06493ac107896ed6c76be9a613a4731f076d30fac0"
bottle do
cellar :any
sha256 "d62e838578eef2bd9ec76a8cc2ee48016c20b83bd4edce89b61892a640d666fa" => :sierra
sha256 "31bdf218e00a1df4e659e098b4abb73a75f69e3a3372a9116f57a2714d27fe35" => :el_capitan
sha256 "4b6e891dc0dde551f1ee73ea508553ebb1c84c08fbdc5ae0e874e30ab0367ffb" => :yosemite
end
option :universal
depends_on "pkg-config" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "flac"
depends_on "libogg"
depends_on "libvorbis"
def install
ENV.universal_binary if build.universal?
system "autoreconf", "-i"
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
end