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