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