parent
63c77a42e3
commit
dfb16edbf4
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue