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