diff options
| author | Trung Lè‚ | 2011-12-16 13:00:43 +1100 |
|---|---|---|
| committer | Adam Vandenberg | 2011-12-15 20:09:49 -0800 |
| commit | 69936a9ae5f7bd529b0fc11b7c695d5cf4c86789 (patch) | |
| tree | dcc91729958cbf9ac997f4f19256dc458e312d35 /Library/Formula | |
| parent | c4491d2fd587d2a0971b6551773372e3c51054a1 (diff) | |
| download | homebrew-69936a9ae5f7bd529b0fc11b7c695d5cf4c86789.tar.bz2 | |
ocp: add dep and fix arg checking
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ocp.rb | 11 |
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" |
