homebrew-core/Formula/libcanberra.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

26 lines
994 B
Ruby

class Libcanberra < Formula
desc "Implementation of XDG Sound Theme and Name Specifications"
homepage "http://0pointer.de/lennart/projects/libcanberra/"
head "git://git.0pointer.de/libcanberra"
url "http://0pointer.de/lennart/projects/libcanberra/libcanberra-0.30.tar.xz"
sha256 "c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72"
depends_on "pkg-config" => :build
depends_on "libvorbis"
depends_on "pulseaudio" => :optional
depends_on "gstreamer" => :optional
depends_on "gtk+" => :optional
depends_on "gtk+3" => :optional
# Remove --as-needed and --gc-sections linker flag as it causes linking to fail
patch :p0 do
url "https://trac.macports.org/export/104881/trunk/dports/audio/libcanberra/files/patch-configure.diff"
sha256 "614084839beb507c705d1b8d32f6ad1fa0c8379d6705fb3c866e6d7c5d3cf0b8"
end
def install
system "./autogen.sh" if build.head?
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
end