ee9e883d48
Instead of forcing c99 use gcc in c99 mode Signed-off-by: Adam Vandenberg <flangy@gmail.com>
29 lines
678 B
Ruby
29 lines
678 B
Ruby
require 'formula'
|
|
|
|
class Pianobar < Formula
|
|
url 'https://github.com/PromyLOPh/pianobar/zipball/2011.07.09'
|
|
version '2011.07.09'
|
|
homepage 'https://github.com/PromyLOPh/pianobar/'
|
|
md5 '5a19a10c83c1bf42ee4360e1a9773dfd'
|
|
|
|
head 'https://github.com/PromyLOPh/pianobar.git'
|
|
|
|
depends_on 'libao'
|
|
depends_on 'mad'
|
|
depends_on 'faad2'
|
|
|
|
skip_clean 'bin'
|
|
|
|
fails_with_llvm "Reports of this not compiling on Xcode 4"
|
|
|
|
def install
|
|
# Force GCC into c99 mode
|
|
ENV.append 'CFLAGS', "-std=c99"
|
|
|
|
system "make", "PREFIX=#{prefix}"
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
|
|
# Install contrib folder too, why not.
|
|
prefix.install Dir['contrib']
|
|
end
|
|
end
|