homebrew-core/Formula/libmikmod.rb

31 lines
771 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://sourceforge.net/projects/mikmod/files/libmikmod/3.3.3/libmikmod-3.3.3.tar.gz'
sha256 '79f02478c5abd8b2af73df4cc5f9d52625aa044327c01563168e270cf79b2437'
option 'with-debug', 'Enable debugging symbols'
2012-03-17 19:27:45 +00:00
def install
2013-11-12 17:51:58 +00:00
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
]
2013-06-27 00:02:37 +00:00
args << '--with-debug' if build.with? 'debug'
2012-02-22 04:48:36 +00:00
mkdir 'macbuild' do
system "../configure", *args
system "make install"
end
end
def test
system "#{bin}/libmikmod-config", "--version"
end
end