blob: 106f8673070bc356ea6836611a8dfc1118b417f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
require 'formula'
class Ncmpcpp < Formula
url 'http://unkart.ovh.org/ncmpcpp/ncmpcpp-0.5.8.tar.bz2'
homepage 'http://unkart.ovh.org/ncmpcpp/'
md5 '288952c6b4cf4fa3683f3f83a58da37c'
depends_on 'taglib'
depends_on 'libmpdclient'
depends_on 'fftw' if ARGV.include? "--visualizer"
def options
[
["--outputs", "Compile with mpd outputs control"],
["--visualizer", "Compile with built-in visualizer"],
["--clock", "Compile with optional clock tab"]
]
end
def install
ENV.append 'LDFLAGS', '-liconv'
args = ["--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-taglib",
"--with-curl",
"--enable-unicode"]
args << '--enable-outputs' if ARGV.include?('--outputs')
args << '--enable-visualizer' if ARGV.include?('--visualizer')
args << '--enable-clock' if ARGV.include?('--clock')
system "./configure", *args
system "make install"
end
end
|