Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 47 lines (40 sloc) 1.261 kb
9976120 Add MPD
Oliver Charles authored
1 require 'formula'
2
3 class Mpd <Formula
1f351fd @telemachus Update mpd to 0.5.12
telemachus authored
4 url 'http://downloads.sourceforge.net/project/musicpd/mpd/0.15.12/mpd-0.15.12.tar.bz2'
9976120 Add MPD
Oliver Charles authored
5 homepage 'http://mpd.wikia.com'
1f351fd @telemachus Update mpd to 0.5.12
telemachus authored
6 md5 'b00b289a20ecd9accfd4972d6395135c'
9976120 Add MPD
Oliver Charles authored
7
d56367c @adamv Mark scons, cmake & pkg-config as build-time deps
adamv authored
8 depends_on 'pkg-config' => :build
9976120 Add MPD
Oliver Charles authored
9 depends_on 'glib'
10 depends_on 'libid3tag'
11 depends_on 'flac'
9e5695a @0xffea mpd: enable more features
0xffea authored
12 depends_on 'libshout'
4155cc2 @wmlex Update Formula MPD
wmlex authored
13 depends_on 'mad'
14 depends_on 'lame'
abe2299 @m0rk updated mpd to 0.15.9
m0rk authored
15 depends_on 'faad2' => :optional
9e5695a @0xffea mpd: enable more features
0xffea authored
16 depends_on 'fluid-synth'
17 depends_on 'libcue' => :optional
18 depends_on 'libmms' => :optional
19 depends_on 'libzzip' => :optional
9976120 Add MPD
Oliver Charles authored
20
2d03309 @telemachus Add optional configure flag for Last.fm support in mpd
telemachus authored
21 def options
22 [["--lastfm", "Compile with experimental support for Last.fm radio"]]
23 end
24
9976120 Add MPD
Oliver Charles authored
25 def install
abe2299 @m0rk updated mpd to 0.15.9
m0rk authored
26 # make faad.h findable (when brew is used elsewhere than /usr/local/)
27 ENV.append 'CFLAGS', "-I#{HOMEBREW_PREFIX}/include"
28
03b8ad8 @0xffea mpd: update version, enable curl on 10.6
0xffea authored
29 configure_args = [
30 "--prefix=#{prefix}",
31 "--disable-debug",
32 "--disable-dependency-tracking",
9e5695a @0xffea mpd: enable more features
0xffea authored
33 "--enable-bzip2",
03b8ad8 @0xffea mpd: update version, enable curl on 10.6
0xffea authored
34 "--enable-flac",
9e5695a @0xffea mpd: enable more features
0xffea authored
35 "--enable-shout",
36 "--enable-fluidsynth",
37 "--enable-zip",
4155cc2 @wmlex Update Formula MPD
wmlex authored
38 "--enable-lame-encoder",
03b8ad8 @0xffea mpd: update version, enable curl on 10.6
0xffea authored
39 ]
40 configure_args << "--disable-curl" if MACOS_VERSION <= 10.5
2d03309 @telemachus Add optional configure flag for Last.fm support in mpd
telemachus authored
41 configure_args << "--enable-lastfm" if ARGV.include?("--lastfm")
03b8ad8 @0xffea mpd: update version, enable curl on 10.6
0xffea authored
42
43 system "./configure", *configure_args
9976120 Add MPD
Oliver Charles authored
44 system "make install"
45 end
46 end
Something went wrong with that request. Please try again.