aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ocp.rb16
1 files changed, 6 insertions, 10 deletions
diff --git a/Library/Formula/ocp.rb b/Library/Formula/ocp.rb
index 1b07c1c76..b4609c225 100644
--- a/Library/Formula/ocp.rb
+++ b/Library/Formula/ocp.rb
@@ -5,14 +5,10 @@ class Ocp < Formula
url "http://downloads.sourceforge.net/project/opencubicplayer/ocp-0.1.21/ocp-0.1.21.tar.bz2"
sha1 "aaa16cf1979c572b09c73e7cc61350bfc4477380"
- option "without-mad", "disable mad mpeg audio support"
- option "without-flac", "disable FLAC support"
- option "with-adplug", "enable adplug support"
-
depends_on "libvorbis"
- depends_on "mad" => :recommended unless build.include? "without-mad"
- depends_on "flac" => :recommended unless build.include? "without-flac"
- depends_on "adplug" => :optional if build.include? "with-adplug"
+ depends_on "mad" => :recommended
+ depends_on "flac" => :recommended
+ depends_on "adplug" => :optional
def install
ENV.deparallelize
@@ -24,9 +20,9 @@ class Ocp < Formula
--without-desktop_file_install
]
- args << "--without-mad" if build.include? "without-mad"
- args << "--without-flac" if build.include? "without-flac"
- args << "--with-adplug" if build.include? "with-adplug"
+ args << "--without-mad" if build.without? "mad"
+ args << "--without-flac" if build.without? "flac"
+ args << "--with-adplug" if build.with? "adplug"
system "./configure", *args
system "make"