blob: 2eb989e012167889b6233b031e020f2f8de92335 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
require 'formula'
class Spin < Formula
homepage 'http://spinroot.com/spin/whatispin.html'
url 'http://spinroot.com/spin/Src/spin622.tar.gz'
version '6.2.2'
sha1 'f402048864761d0fceefa61e8f03a9ee33a16a4c'
fails_with :llvm do
build 2334
end
# replace -DPC with -DMAC in makefile CFLAGS
def patches
DATA
end
def install
ENV.deparallelize
cd("Src#{version}") do
system "make"
bin.install "spin"
end
man1.install "Man/spin.1"
end
end
# manual patching is required by the spin install process
__END__
diff --git a/Src6.2.2/makefile b/Src6.2.2/makefile
index 02d2a02..7687e0a 100644
--- a/Src6.2.2/makefile
+++ b/Src6.2.2/makefile
@@ -13,12 +13,12 @@
# see also ./make_pc for a simpler script, not requiring make
-CC=gcc
-CFLAGS=-O2 -DNXT # on some systems add: -I/usr/include
+#CC=gcc
+#CFLAGS=-O2 -DNXT # on some systems add: -I/usr/include
# CC=gcc -m32 # 32bit compilation on a 64bit system
# for a more picky compilation use gcc-4 and:
-# CFLAGS=-std=c99 -Wstrict-prototypes -pedantic -fno-strength-reduce -fno-builtin -W -Wshadow -Wpointer-arith -Wcast-qual -Winline -Wall -g -DNXT -DPC
+CFLAGS=-std=c99 -Wstrict-prototypes -pedantic -fno-strength-reduce -fno-builtin -W -Wshadow -Wpointer-arith -Wcast-qual -Winline -Wall -g -DNXT -DMAC
# on OS2: spin -Picc -E/Pd+ -E/Q+
# for Visual C++: spin -PCL -E/E
|