c8d2d41c1d
This takes care of a `brew audit` complaint. Closes Homebrew/homebrew#18828. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
37 lines
1 KiB
Ruby
37 lines
1 KiB
Ruby
require 'formula'
|
|
|
|
class Pianobar < Formula
|
|
homepage 'https://github.com/PromyLOPh/pianobar/'
|
|
url 'https://github.com/PromyLOPh/pianobar/archive/2012.12.01.tar.gz'
|
|
sha256 '25f12e230adef68405a89dbe290e437a64258fdea7bf26fe9bf04548699a390b'
|
|
|
|
head 'https://github.com/PromyLOPh/pianobar.git'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'libao'
|
|
depends_on 'mad'
|
|
depends_on 'faad2'
|
|
depends_on 'gnutls'
|
|
depends_on 'libgcrypt'
|
|
depends_on 'json-c'
|
|
|
|
fails_with :llvm do
|
|
build 2334
|
|
cause "Reports of this not compiling on Xcode 4"
|
|
end
|
|
|
|
def install
|
|
# Discard Homebrew's CFLAGS as Pianobar reportedly doesn't like them
|
|
ENV['CFLAGS'] = "-O2 -DNDEBUG " +
|
|
# Or it doesn't build at all
|
|
"-std=c99 " +
|
|
# build if we aren't /usr/local'
|
|
"#{ENV["CPPFLAGS"]} #{ENV["LDFLAGS"]}"
|
|
|
|
system "make", "PREFIX=#{prefix}"
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
|
|
# Install contrib folder too, why not.
|
|
prefix.install 'contrib'
|
|
end
|
|
end
|