aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libmikmod.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/libmikmod.rb b/Library/Formula/libmikmod.rb
index b4acccd4d..183ad4239 100644
--- a/Library/Formula/libmikmod.rb
+++ b/Library/Formula/libmikmod.rb
@@ -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"