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