homebrew-core/Formula/libmikmod.rb
Jaime Marquínez Ferrándiz b7678ae561 Change some SourceForge urls to use https://downloads.sourceforge.net
Closes Homebrew/homebrew#27041.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

30 lines
774 B
Ruby

require 'formula'
class Libmikmod < Formula
homepage 'http://mikmod.shlomifish.org'
url 'https://downloads.sourceforge.net/project/mikmod/libmikmod/3.3.5/libmikmod-3.3.5.tar.gz'
sha256 'b714ee340a04e6867f60246f679e0f40063b92f99269b6b715c8bf19ad469fb6'
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