blob: 1061373992cb24d71ce46965fce51dc21a7240d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
require 'formula'
class Libmikmod < Formula
homepage 'http://mikmod.shlomifish.org'
url 'http://sourceforge.net/projects/mikmod/files/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
|