* remove the .Append(LIBS = ['libverse']), since it confused the build system.
[blender.git] / config / darwin-config.py
1 LCGDIR = '#../lib/darwin-6.1-powerpc'
2 LIBDIR = '${LCGDIR}'
3
4 WITH_BF_VERSE = 'false'
5 BF_VERSE_INCLUDE = "#extern/verse/dist"
6
7 BF_PYTHON = '/System/Library/Frameworks/Python.framework/Versions/'
8 BF_PYTHON_VERSION = '2.3'
9 BF_PYTHON_INC = '${BF_PYTHON}${BF_PYTHON_VERSION}/include/python${BF_PYTHON_VERSION}'
10 BF_PYTHON_BINARY = '${BF_PYTHON}${BF_PYTHON_VERSION}/bin/python${BF_PYTHON_VERSION}'
11 BF_PYTHON_LIB = ''
12 BF_PYTHON_LIBPATH = '${BF_PYTHON}${BF_PYTHON_VERSION}/lib/python${BF_PYTHON_VERSION}/config'
13 BF_PYTHON_LINKFLAGS = '-u __dummy -u _PyMac_Error -framework System -framework Python'
14
15 WITH_BF_OPENAL = 'true'
16 BF_OPENAL = LIBDIR + '/openal'
17 BF_OPENAL_INC = '${BF_OPENAL}/include'
18 BF_OPENAL_LIB = 'openal'
19 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
20
21 WITH_BF_SDL = 'true'
22 BF_SDL = LIBDIR + '/sdl' #$(shell sdl-config --prefix)
23 BF_SDL_INC = '${BF_SDL}/include' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
24 BF_SDL_LIB = 'SDL' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
25 BF_SDL_LIBPATH = '${BF_SDL}/lib'
26
27 WITH_BF_FMOD = 'false'
28 BF_FMOD = LIBDIR + '/fmod'
29
30 WITH_BF_OPENEXR = 'true'
31 BF_OPENEXR = '/usr/local'
32 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
33 BF_OPENEXR_LIB = ' Iex Half IlmImf Imath '
34
35
36 WITH_BF_JPEG = 'true'
37 BF_JPEG = LIBDIR + '/jpeg'
38 BF_JPEG_INC = '${BF_JPEG}/include'
39 BF_JPEG_LIB = 'jpeg'
40 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
41
42 WITH_BF_PNG = 'true'
43 BF_PNG = LIBDIR + '/png'
44 BF_PNG_INC = '${BF_PNG}/include'
45 BF_PNG_LIB = 'png'
46 BF_PNG_LIBPATH = '${BF_PNG}/lib'
47
48 BF_TIFF = LIBDIR + '/tiff'
49 BF_TIFF_INC = '${BF_TIFF}/include'
50
51 WITH_BF_ZLIB = 'true'
52 BF_ZLIB = '/usr'
53 BF_ZLIB_INC = '${BF_ZLIB}/include'
54 BF_ZLIB_LIB = 'z'
55
56 WITH_BF_INTERNATIONAL = 'true'
57
58 BF_GETTEXT = LIBDIR + '/gettext'
59 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
60 BF_GETTEXT_LIB = 'intl'
61 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
62
63 WITH_BF_FTGL = 'true'
64 BF_FTGL = '#extern/bFTGL'
65 BF_FTGL_INC = '${BF_FTGL}/include'
66 BF_FTGL_LIB = 'extern_ftgl'
67
68 WITH_BF_GAMEENGINE='true'
69 WITH_BF_PLAYER='true'
70
71 WITH_BF_ODE = 'false'
72 BF_ODE = LIBDIR + '/ode'
73 BF_ODE_INC = '${BF_ODE}/include'
74 BF_ODE_LIB = '${BF_ODE}/lib/libode.a'
75
76 WITH_BF_BULLET = 'true'
77 BF_BULLET = '#extern/bullet'
78 BF_BULLET_INC = '${BF_BULLET}/LinearMath ${BF_BULLET}/BulletDynamics ${BF_BULLET}/Bullet'
79 BF_BULLET_LIB = 'extern_bullet'
80
81 BF_SOLID = '#extern/solid'
82 BF_SOLID_INC = '${BF_SOLID}'
83 BF_SOLID_LIB = 'extern_solid'
84
85 #WITH_BF_NSPR = 'true'
86 #BF_NSPR = $(LIBDIR)/nspr
87 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
88 #BF_NSPR_LIB = 
89
90 # Uncomment the following line to use Mozilla inplace of netscape
91 #CPPFLAGS += -DMOZ_NOT_NET
92 # Location of MOZILLA/Netscape header files...
93 #BF_MOZILLA = $(LIBDIR)/mozilla
94 #BF_MOZILLA_INC = -I$(BF_MOZILLA)/include/mozilla/nspr -I$(BF_MOZILLA)/include/mozilla -I$(BF_MOZILLA)/include/mozilla/xpcom -I$(BF_MOZILLA)/include/mozilla/idl
95 #BF_MOZILLA_LIB =
96 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
97 # if this is not set.
98 #
99 # Be paranoid regarding library creation (do not update archives)
100 #BF_PARANOID = 'true'
101
102 # enable freetype2 support for text objects
103 BF_FREETYPE = LIBDIR + '/freetype'
104 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
105 BF_FREETYPE_LIB = 'freetype'
106 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
107
108 WITH_BF_QUICKTIME = 'true' # -DWITH_QUICKTIME
109
110 # Mesa Libs should go here if your using them as well....
111 WITH_BF_STATICOPENGL = 'true'
112 BF_OPENGL_LIB = 'GL GLU'
113 BF_OPENGL_LIBPATH = '/System/Library/Frameworks/OpenGL.framework/Libraries'
114 BF_OPENGL_LINKFLAGS = '-framework OpenGL'
115
116 ##
117 ##CC = gcc
118 ##CCC = g++
119 ##ifeq ($CPU),alpha)
120 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
121
122 CFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
123
124 CPPFLAGS = []
125 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
126 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
127 PLATFORM_LINKFLAGS = '-fexceptions -framework CoreServices -framework Foundation -framework IOKit -framework AppKit -framework Carbon -framework AGL -framework AudioUnit -framework AudioToolbox -framework CoreAudio -framework QuickTime'
128 REL_CFLAGS = ['-O2']
129 REL_CCFLAGS = ['-O2']
130 ##BF_DEPEND = 'true'
131 ##
132 ##AR = ar
133 ##ARFLAGS = ruv
134 ##ARFLAGSQUIET = ru
135 ##
136 CC = 'gcc'
137 CXX = 'g++'
138 C_WARN = ' -Wall  -Wno-long-double'
139
140 CC_WARN = ' -Wall  -Wno-long-double'
141
142 ##FIX_STUBS_WARNINGS = -Wno-unused
143
144 LLIBS = 'stdc++ SystemStubs'
145 ##LOPTS = --dynamic
146 ##DYNLDFLAGS = -shared $(LDFLAGS)
147
148 BF_PROFILE_FLAGS = ' -pg -g '
149 BF_PROFILE = 'false'
150
151 BF_DEBUG = 'false'
152 BF_DEBUG_FLAGS = '-g'
153
154 BF_BUILDDIR='../build/darwin'
155 BF_INSTALLDIR='../install/darwin'