homebrew-core/Formula/libcanberra.rb
Dominyk Tiller c4d9c2a99c formule: migrate various patches (part 1)
a2ps: migrate patches
argp-standalone: migrate patch
autotrace: migrate patches
avidemux: reference secure link
bibtex2html: migrate patches
bsdmake: migrate patches
cctools: migrate patches
cdparanoia: migrate patches
cdrdao: reference secure links
center-im: migrate patch
clisp: migrate patch
clucene: migrate patches
cvs: migrate to sha256
daemon: migrate patch
dvdrtools: migrate patches
exim: style nits
exim: migrate option
ghostscript: migrate patch
glib: migrate patch
gpsd: migrate patch
graphviz: migrate patch
gtkglext: migrate patches
gupnp: migrate patch
hping: migrate patches
id3lib: migrate patches
jigdo: migrate patch
jove: migrate patch
ld64: migrate patches
libcanberra: migrate patch
libgcrypt: migrate patch
libinfinity: migrate patch
liblinear: migrate patch
libmms: migrate patch
libnet: migrate patch
lsdvd: migrate patches
2015-10-07 19:36:24 +01:00

27 lines
990 B
Ruby

class Libcanberra < Formula
desc "Implementation of XDG Sound Theme and Name Specifications"
homepage "http://0pointer.de/lennart/projects/libcanberra/"
url "http://0pointer.de/lennart/projects/libcanberra/libcanberra-0.30.tar.xz"
sha256 "c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72"
head "git://git.0pointer.de/libcanberra"
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://raw.githubusercontent.com/Homebrew/patches/b2cf078b/libcanberra/patch-configure.diff"
sha256 "614084839beb507c705d1b8d32f6ad1fa0c8379d6705fb3c866e6d7c5d3cf0b8"
end
def install
system "./autogen.sh" if build.head?
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
end