Update to the translation code. Patch provided by dripstone.
[blender-staging.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 = '/usr/local'
52 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
53 BF_OPENEXR_LIB = ' Iex Half IlmImf Imath IlmThread'
54
55 WITH_BF_DDS = 'true'
56
57 WITH_BF_JPEG = 'true'
58 BF_JPEG = LIBDIR + '/jpeg'
59 BF_JPEG_INC = '${BF_JPEG}/include'
60 BF_JPEG_LIB = 'jpeg'
61 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
62
63 WITH_BF_PNG = 'true'
64 BF_PNG = LIBDIR + '/png'
65 BF_PNG_INC = '${BF_PNG}/include'
66 BF_PNG_LIB = 'png'
67 BF_PNG_LIBPATH = '${BF_PNG}/lib'
68
69 BF_TIFF = LIBDIR + '/tiff'
70 BF_TIFF_INC = '${BF_TIFF}/include'
71
72 WITH_BF_ZLIB = 'true'
73 BF_ZLIB = '/usr'
74 BF_ZLIB_INC = '${BF_ZLIB}/include'
75 BF_ZLIB_LIB = 'z'
76
77 WITH_BF_INTERNATIONAL = 'true'
78
79 BF_GETTEXT = LIBDIR + '/gettext'
80 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
81 BF_GETTEXT_LIB = 'intl'
82 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
83
84 WITH_BF_FTGL = 'true'
85 BF_FTGL = '#extern/bFTGL'
86 BF_FTGL_INC = '${BF_FTGL}/include'
87 BF_FTGL_LIB = 'extern_ftgl'
88
89 WITH_BF_GAMEENGINE='true'
90 WITH_BF_PLAYER='true'
91
92 WITH_BF_ODE = 'false'
93 BF_ODE = LIBDIR + '/ode'
94 BF_ODE_INC = '${BF_ODE}/include'
95 BF_ODE_LIB = '${BF_ODE}/lib/libode.a'
96
97 WITH_BF_BULLET = 'true'
98 BF_BULLET = '#extern/bullet2/src'
99 BF_BULLET_INC = '${BF_BULLET}'
100 BF_BULLET_LIB = 'extern_bullet'
101
102 BF_SOLID = '#extern/solid'
103 BF_SOLID_INC = '${BF_SOLID}'
104 BF_SOLID_LIB = 'extern_solid'
105
106 WITH_BF_YAFRAY = 'true'
107
108 #WITH_BF_NSPR = 'true'
109 #BF_NSPR = $(LIBDIR)/nspr
110 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
111 #BF_NSPR_LIB = 
112
113 # Uncomment the following line to use Mozilla inplace of netscape
114 #CPPFLAGS += -DMOZ_NOT_NET
115 # Location of MOZILLA/Netscape header files...
116 #BF_MOZILLA = $(LIBDIR)/mozilla
117 #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
118 #BF_MOZILLA_LIB =
119 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
120 # if this is not set.
121 #
122 # Be paranoid regarding library creation (do not update archives)
123 #BF_PARANOID = 'true'
124
125 # enable freetype2 support for text objects
126 BF_FREETYPE = LIBDIR + '/freetype'
127 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
128 BF_FREETYPE_LIB = 'freetype'
129 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
130
131 WITH_BF_QUICKTIME = 'true' # -DWITH_QUICKTIME
132
133 WITH_BF_ICONV = 'false'
134 BF_ICONV = LIBDIR + "/iconv"
135 BF_ICONV_INC = '${BF_ICONV}/include'
136 BF_ICONV_LIB = 'iconv'
137 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
138
139 # Mesa Libs should go here if your using them as well....
140 WITH_BF_STATICOPENGL = 'true'
141 BF_OPENGL_LIB = 'GL GLU'
142 BF_OPENGL_LIBPATH = '/System/Library/Frameworks/OpenGL.framework/Libraries'
143 BF_OPENGL_LINKFLAGS = '-framework OpenGL'
144
145 ##
146 ##CC = gcc
147 ##CCC = g++
148 ##ifeq ($CPU),alpha)
149 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
150
151 CFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
152
153 CPPFLAGS = ['-fpascal-strings']
154 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing', '-fpascal-strings']
155 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing', '-fpascal-strings']
156 PLATFORM_LINKFLAGS = '-fexceptions -framework CoreServices -framework Foundation -framework IOKit -framework AppKit -framework Carbon -framework AGL -framework AudioUnit -framework AudioToolbox -framework CoreAudio -framework QuickTime'
157 REL_CFLAGS = ['-O2']
158 REL_CCFLAGS = ['-O2']
159 ##BF_DEPEND = 'true'
160 ##
161 ##AR = ar
162 ##ARFLAGS = ruv
163 ##ARFLAGSQUIET = ru
164 ##
165 CC = 'gcc'
166 CXX = 'g++'
167 C_WARN = ' -Wall  -Wno-long-double -Wdeclaration-after-statement '
168
169 CC_WARN = ' -Wall  -Wno-long-double'
170
171 ##FIX_STUBS_WARNINGS = -Wno-unused
172
173 LLIBS = 'stdc++ SystemStubs'
174 ##LOPTS = --dynamic
175 ##DYNLDFLAGS = -shared $(LDFLAGS)
176
177 BF_PROFILE_FLAGS = ' -pg -g '
178 BF_PROFILE = 'false'
179
180 BF_DEBUG = 'false'
181 BF_DEBUG_FLAGS = '-g'
182
183 BF_BUILDDIR='../build/darwin'
184 BF_INSTALLDIR='../install/darwin'