libmikmod: use options DSL

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Jack Nagel 2012-08-12 19:02:43 -05:00
parent 63c77a42e3
commit dfb16edbf4
1 changed files with 3 additions and 5 deletions

View File

@ -7,12 +7,10 @@ class Libmikmod < Formula
depends_on :x11
def options
[[ '--with-debug', 'Enable debugging symbols']]
end
option 'with-debug', 'Enable debugging symbols'
def install
if ARGV.include? '--with-debug' then
if build.include? 'with-debug'
(ENV.compiler == :clang) ? ENV.Og : ENV.O2
end
@ -23,7 +21,7 @@ class Libmikmod < Formula
--disable-sam9407
--disable-ultra
]
args << '--with-debug' if ARGV.include? '--with-debug'
args << '--with-debug' if build.include? 'with-debug'
mkdir 'macbuild' do
system "../configure", *args
system "make install"