homebrew-core/Formula/libmikmod.rb

33 lines
793 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Libmikmod < Formula
homepage 'http://mikmod.shlomifish.org'
url 'http://mikmod.shlomifish.org/files/libmikmod-3.2.0b4.tar.gz'
sha256 'da0c4fcfc5ca15c653baeb62b8cf91b35cfa11c1081a1aacc1e443a7d35db870'
depends_on :x11
def options
[[ '--with-debug', 'Enable debugging symbols']]
2012-03-17 19:27:45 +00:00
end
def install
if ARGV.include? '--with-debug' then
(ENV.compiler == :clang) ? ENV.Og : ENV.O2
end
# OSX has CoreAudio, but ALSA is not for this OS nor is SAM9407 nor ULTRA.
args = %W[
--prefix=#{prefix}
--disable-alsa
--disable-sam9407
--disable-ultra
]
args << '--with-debug' if ARGV.include? '--with-debug'
2012-02-22 04:48:36 +00:00
mkdir 'macbuild' do
system "../configure", *args
system "make install"
end
end
end