homebrew-core/Formula/pianobar.rb

27 lines
701 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Pianobar < Formula
url 'https://github.com/PromyLOPh/pianobar/tarball/2011.01.24'
version '2011.01.24'
homepage 'https://github.com/PromyLOPh/pianobar/'
md5 '97ee5b39e5e9006f6139db2787f346a0'
head 'git://github.com/PromyLOPh/pianobar.git'
depends_on 'libao'
depends_on 'mad'
depends_on 'faad2'
skip_clean :bin
def install
inreplace "Makefile" do |s|
s.gsub! "CFLAGS:=-std=c99 -O2 -DNDEBUG", "CFLAGS=-std=c99 #{ENV.cflags} #{ENV['CPPFLAGS']} #{ENV['LDFLAGS']}"
end
system "make", "PREFIX=#{prefix}"
system "make", "install", "PREFIX=#{prefix}"
# Install contrib folder too, why not.
prefix.install Dir['contrib']
end
end