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
52
53
54
55
56
57
58
59
60
|
--- setup.py Wed Jun 14 14:28:09 2006
+++ setup.py Wed Jun 14 14:30:13 2006
@@ -27,19 +27,19 @@
INCDIR = [
"ode-0.5/include",
"/usr/include",
- "/usr/local/include",
- "/usr/X11R6/include",
+ "%%LOCALBASE%%/include",
+ "%%X11BASE%%/include",
"/usr/include/freetype2",
- "/usr/local/include/freetype2",
- "/usr/include/cal3d",
+ "%%LOCALBASE%%/include/freetype2",
+ "%%LOCALBASE%%/cal3d",
"/usr/local/include/cal3d",
"/sw/include", # For Mac OS X
]
LIBDIR = [
"ode-0.5/lib",
"/usr/lib",
- "/usr/local/lib",
- "/usr/X11R6/lib",
+ "%%LOCALBASE%%/lib",
+ "%%X11BASE%%/lib",
"/sw/lib/", # For Mac OS X
]
@@ -65,10 +65,10 @@
from config import *
if sys.platform[:3] == "win":
- LIBS = ["m", "glew32", "SDL", "SDL_mixer", "freetype", "cal3d", "stdc++"]
+ LIBS = ["m", "glew32", "SDL-1.1", "SDL_mixer", "freetype", "cal3d", "stdc++"]
else:
#LIBS = ["m", "GLEW", "GL", "GLU", "SDL", "SDL_mixer", "freetype", "cal3d", "stdc++"]
- LIBS = ["m", "GLEW", "SDL", "freetype", "cal3d", "stdc++"]
+ LIBS = ["m", "GLEW", "SDL-1.1", "freetype", "cal3d", "stdc++"]
SOYA_PYREX_SOURCES = ["_soya.pyx", "matrix.c", "chunk.c" ]
SOYA_C_SOURCES = ["_soya.c" , "matrix.c", "chunk.c" ]
@@ -99,14 +99,14 @@
print "ODE and OPCODE have already been compiled; if you want to recompile them do: cd %s ; make clean" % ODE_DIR
else:
print "Building ODE and OPCODE from %s" % ODE_DIR
- do("cd %s ; make clean" % ODE_DIR)
- do("cd %s ; make configure" % ODE_DIR)
- do("cd %s ; make" % ODE_DIR)
+ do("cd %s ; gmake clean" % ODE_DIR)
+ do("cd %s ; gmake configure" % ODE_DIR)
+ do("cd %s ; gmake" % ODE_DIR)
print "ODE and OPCODE built successfully !"
elif "sdist" in sys.argv:
# Clean ODE, to remove configuration files and binaries
- do("cd %s ; make clean" % ODE_DIR)
+ do("cd %s ; gmake clean" % ODE_DIR)
if HAVE_PYREX:
|