diff options
| author | Adam Vandenberg | 2012-08-25 23:08:00 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-25 23:08:00 -0700 |
| commit | b268aeb69d723c829b2e658b0404d98944f5e7e3 (patch) | |
| tree | 9329b074a7ac84a5b2e5587c6ada2e3991651910 /Library | |
| parent | df1652299bb95998db615c65f76d71c8709311ad (diff) | |
| download | homebrew-b268aeb69d723c829b2e658b0404d98944f5e7e3.tar.bz2 | |
mdxmini: use new dsl
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mdxmini.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Library/Formula/mdxmini.rb b/Library/Formula/mdxmini.rb index 88b82bd69..89db15f4f 100644 --- a/Library/Formula/mdxmini.rb +++ b/Library/Formula/mdxmini.rb @@ -4,19 +4,17 @@ class Mdxmini < Formula homepage 'http://clogging.web.fc2.com/psp/' url 'https://github.com/BouKiCHi/mdxplayer/tarball/3e60c12666cd4fb5fe17bc0651ff883bd54644ad' version '20111115' - md5 '80a3f96dbe84c19bf7e2042e7b8e819a' + sha1 '59e0bf647b0ab563ef030ce67805d7f7c9684bcc' - depends_on 'sdl' unless ARGV.include? "--lib-only" + option "lib-only", "Do not build commandline player" - def options - [["--lib-only", "Do not build commandline player"]] - end + depends_on 'sdl' unless build.include? "lib-only" def install cd "jni/mdxmini" do # Specify Homebrew's cc inreplace "mak/general.mak", "gcc", ENV.cc - if ARGV.include? "--lib-only" + if build.include? "lib-only" system "make -f Makefile.lib" else system "make" @@ -25,7 +23,7 @@ class Mdxmini < Formula # Makefile doesn't build a dylib system "#{ENV.cc} -dynamiclib -install_name #{lib}/libmdxmini.dylib -o libmdxmini.dylib -undefined dynamic_lookup obj/*.o" - bin.install "mdxplay" unless ARGV.include? "--lib-only" + bin.install "mdxplay" unless build.include? "lib-only" lib.install "libmdxmini.a", "libmdxmini.dylib" (include+'libmdxmini').install Dir['src/*.h'] end |
