aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTrung Lè‚2011-12-16 13:00:43 +1100
committerAdam Vandenberg2011-12-15 20:09:49 -0800
commit69936a9ae5f7bd529b0fc11b7c695d5cf4c86789 (patch)
treedcc91729958cbf9ac997f4f19256dc458e312d35 /Library/Formula
parentc4491d2fd587d2a0971b6551773372e3c51054a1 (diff)
downloadhomebrew-69936a9ae5f7bd529b0fc11b7c695d5cf4c86789.tar.bz2
ocp: add dep and fix arg checking
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ocp.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/Library/Formula/ocp.rb b/Library/Formula/ocp.rb
index 711eed67f..111d845e9 100644
--- a/Library/Formula/ocp.rb
+++ b/Library/Formula/ocp.rb
@@ -5,6 +5,7 @@ class Ocp < Formula
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"
@@ -25,13 +26,9 @@ class Ocp < Formula
"--without-sdl",
"--without-desktop_file_install"]
- if ARGV.include? "--without-mad"
- args << "--without-mad"
- elsif ARGV.include? "--without-flac"
- args << "--without-flac"
- elsif ARGV.include? "--with-adplug"
- args << "--with-adplug"
- end
+ 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"