blob: 111d845e9665a565d40fca08e6833e2a13d04496 (
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
35
36
37
|
require "formula"
class Ocp < Formula
url "http://downloads.sourceforge.net/project/opencubicplayer/ocp-0.1.21/ocp-0.1.21.tar.bz2"
md5 '558a6eacfadfd9c60c97a6e9c7f83f47'
homepage "http://sourceforge.net/p/opencubicplayer/home/"
depends_on "libvorbis"
depends_on "mad" unless ARGV.include? "--without-mad"
depends_on "flac" unless ARGV.include? "--without-flac"
depends_on "adplug" if ARGV.include? "--with-adplug"
def options
[
["--without-mad", "disable mad mpeg audio support"],
["--without-flac", "disable FLAC support"],
["--with-adplug", "enable adplug support"],
]
end
def install
ENV.deparallelize
args = ["--prefix=#{prefix}",
"--without-x11",
"--without-sdl",
"--without-desktop_file_install"]
args << "--without-mad" if ARGV.include? "--without-mad"
args << "--without-flac" if ARGV.include? "--without-flac"
args << "--with-adplug" if ARGV.include? "--with-adplug"
system "./configure", *args
system "make"
system "make install"
end
end
|