homebrew-core/Formula/libmikmod.rb
2014-07-03 22:33:31 +01:00

37 lines
1,006 B
Ruby

require 'formula'
class Libmikmod < Formula
homepage 'http://mikmod.shlomifish.org'
url 'https://downloads.sourceforge.net/project/mikmod/libmikmod/3.3.6/libmikmod-3.3.6.tar.gz'
sha256 '3f363e03f7b1db75b9b6602841bbd440ed275a548e53545f980df8155de4d330'
bottle do
cellar :any
sha1 "eb5b851f5ceddf5c5cf95dff87570b3ba17534ec" => :mavericks
sha1 "8f93de789fdca344d196458f65f4a444f59b8f0b" => :mountain_lion
sha1 "70b74f60052e4bd590e2591c78ac8a123cb2b67f" => :lion
end
option 'with-debug', 'Enable debugging symbols'
def install
ENV.O2 if build.with? 'debug'
# 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 build.with? 'debug'
mkdir 'macbuild' do
system "../configure", *args
system "make install"
end
end
test do
system "#{bin}/libmikmod-config", "--version"
end
end