2010-07-25 16:09:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cmus < Formula
|
2010-07-25 16:09:49 +00:00
|
|
|
homepage 'http://cmus.sourceforge.net/'
|
2012-08-23 04:39:27 +00:00
|
|
|
url 'http://downloads.sourceforge.net/cmus/cmus-v2.4.3.tar.bz2'
|
|
|
|
sha1 'ba63a417b0df42fa9a4850dd8b922a95a426f7f5'
|
2012-04-19 02:37:43 +00:00
|
|
|
|
|
|
|
head 'https://git.gitorious.org/cmus/cmus.git'
|
2010-07-25 16:09:49 +00:00
|
|
|
|
2011-03-05 23:26:51 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-07-25 16:09:49 +00:00
|
|
|
depends_on 'libao'
|
|
|
|
depends_on 'mad'
|
|
|
|
depends_on 'libogg'
|
|
|
|
depends_on 'libvorbis'
|
|
|
|
depends_on 'faad2'
|
|
|
|
depends_on 'flac'
|
2011-03-05 23:26:51 +00:00
|
|
|
depends_on 'mp4v2'
|
2012-08-23 04:39:27 +00:00
|
|
|
depends_on 'libcue' if build.head?
|
2010-07-25 16:09:49 +00:00
|
|
|
|
|
|
|
skip_clean 'bin/cmus'
|
|
|
|
skip_clean 'bin/cmus-remote'
|
|
|
|
|
|
|
|
def install
|
2012-04-08 03:05:40 +00:00
|
|
|
# We add this to CPPFLAGS and LDFLAGS in ENV, but cmus doesn't
|
|
|
|
# pick up on that. Adding this patch because I am too lazy to
|
|
|
|
# send a patch upstream to respect CPPFLAGS - @adamv
|
|
|
|
unless HOMEBREW_PREFIX.to_s == '/usr/local'
|
|
|
|
ENV.append 'CFLAGS', "-isystem #{HOMEBREW_PREFIX}/include -L#{HOMEBREW_PREFIX}/lib"
|
|
|
|
end
|
|
|
|
|
2010-07-25 16:09:49 +00:00
|
|
|
system "./configure", "prefix=#{prefix}", "mandir=#{man}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|