forked from MatthewCallis/homebrew-other
/
bass.rb
39 lines (33 loc) · 827 Bytes
/
bass.rb
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
31
32
33
34
35
36
37
38
39
require 'formula'
class Bass < Formula
url 'http://byuu.org/files/bass_v08r01.tar.xz'
homepage 'http://byuu.org/programming/'
sha1 '120844fcd373f1b59bc817e1b1e41ae1d48824d6'
depends_on 'gcc' # 4.7+
# Point to the correct GCC, not MacPorts.
# def patches
# DATA
# end
def install
inreplace 'nall/Makefile' do |s|
s.gsub! "gcc-mp-4.7", "gcc-4.7"
end
system "make"
# system "make install"
bin.install 'bass'
end
end
# __END__
# diff --git a/nall/Makefile b/nall/Makefile
# index bbc4b02..a9913c8 100755
# --- a/nall/Makefile
# +++ b/nall/Makefile
# @@ -38,7 +38,7 @@ ifeq ($(compiler),)
# ifeq ($(platform),win)
# compiler := gcc
# else ifeq ($(platform),osx)
# - compiler := gcc-mp-4.7
# + compiler := gcc-4.7
# else
# compiler := gcc-4.7
# endif