2010-01-30 03:18:52 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pianobar < Formula
|
2011-01-28 23:55:48 +00:00
|
|
|
url 'https://github.com/PromyLOPh/pianobar/tarball/2011.01.24'
|
|
|
|
version '2011.01.24'
|
2010-11-10 18:16:28 +00:00
|
|
|
homepage 'https://github.com/PromyLOPh/pianobar/'
|
2011-01-28 23:55:48 +00:00
|
|
|
md5 '97ee5b39e5e9006f6139db2787f346a0'
|
2010-01-30 03:18:52 +00:00
|
|
|
|
2010-10-07 23:49:20 +00:00
|
|
|
head 'git://github.com/PromyLOPh/pianobar.git'
|
|
|
|
|
2010-07-15 14:11:41 +00:00
|
|
|
depends_on 'libao'
|
|
|
|
depends_on 'mad'
|
|
|
|
depends_on 'faad2'
|
2010-01-30 03:18:52 +00:00
|
|
|
|
2010-11-19 06:05:54 +00:00
|
|
|
skip_clean :bin
|
|
|
|
|
2010-01-30 03:18:52 +00:00
|
|
|
def install
|
2011-02-22 06:11:40 +00:00
|
|
|
inreplace "Makefile" do |s|
|
2011-02-22 07:57:23 +00:00
|
|
|
s.gsub! "CFLAGS:=-std=c99 -O2 -DNDEBUG", "CFLAGS=-std=c99 #{ENV.cflags} #{ENV['CPPFLAGS']} #{ENV['LDFLAGS']}"
|
2011-02-22 06:11:40 +00:00
|
|
|
end
|
2010-07-15 14:11:41 +00:00
|
|
|
system "make", "PREFIX=#{prefix}"
|
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
2010-12-09 02:22:18 +00:00
|
|
|
# Install contrib folder too, why not.
|
|
|
|
prefix.install Dir['contrib']
|
2010-01-30 03:18:52 +00:00
|
|
|
end
|
|
|
|
end
|