merge with 2.5 at r18679
[blender.git] / config / irix6-config.py
1 import os
2
3 LCGDIR = os.getcwd()+"/../lib/irix-6.5-mips"
4 LIBDIR = LCGDIR
5
6 BF_PYTHON = LCGDIR+'/python'
7 BF_PYTHON_VERSION = '2.5'
8 WITH_BF_STATICPYTHON = 'true'
9 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
10 BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
11 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}' #BF_PYTHON+'/lib/python'+BF_PYTHON_VERSION+'/config/libpython'+BF_PYTHON_VERSION+'.a'
12 BF_PYTHON_LINKFLAGS = ['-Xlinker', '-export-dynamic']
13 BF_PYTHON_LIB_STATIC = '${BF_PYTHON}/lib/python2.5/config/libpython${BF_PYTHON_VERSION}.a'
14
15 WITH_BF_OPENAL = 'true'
16 WITH_BF_STATICOPENAL = 'true'
17 BF_OPENAL = LCGDIR+'/openal'
18 BF_OPENAL_INC = '${BF_OPENAL}/include'
19 BF_OPENAL_LIB = 'openal'
20 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
21 BF_OPENAL_LIBPATH = LIBDIR + '/lib'
22
23 # some distros have a separate libalut
24 # if you get linker complaints, you need to uncomment the line below
25 # BF_OPENAL_LIB = 'openal alut'  
26 # BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a ${BF_OPENAL}/lib/libalut.a'
27
28 BF_CXX = '/usr'
29 WITH_BF_STATICCXX = 'false'
30 BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
31
32 WITH_BF_SDL = 'true'
33 BF_SDL = LCGDIR+'/SDL' #$(shell sdl-config --prefix)
34 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
35 BF_SDL_LIB = 'SDL audio iconv charset' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
36 BF_SDL_LIBPATH = '${BF_SDL}/lib'
37
38 WITH_BF_FMOD = 'false'
39 BF_FMOD = LIBDIR + '/fmod'
40
41 WITH_BF_OPENEXR = 'false'
42 WITH_BF_STATICOPENEXR = 'false'
43 BF_OPENEXR = '/usr'
44 # when compiling with your own openexr lib you might need to set...
45 # BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
46
47 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
48 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
49 BF_OPENEXR_LIB_STATIC = '${BF_OPENEXR}/lib/libHalf.a ${BF_OPENEXR}/lib/libIlmImf.a ${BF_OPENEXR}/lib/libIex.a ${BF_OPENEXR}/lib/libImath.a ${BF_OPENEXR}/lib/libIlmThread.a'
50 # BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
51
52
53 WITH_BF_DDS = 'false'
54
55 WITH_BF_JPEG = 'false'
56 BF_JPEG = LCGDIR+'/jpeg'
57 BF_JPEG_INC = '${BF_JPEG}/include'
58 BF_JPEG_LIB = 'jpeg'
59 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
60
61 WITH_BF_PNG = 'false'
62 BF_PNG = LCGDIR+"/png"
63 BF_PNG_INC = '${BF_PNG}/include'
64 BF_PNG_LIB = 'png'
65 BF_PNG_LIBPATH = '${BF_PNG}/lib'
66
67 BF_TIFF = '/usr/nekoware'
68 BF_TIFF_INC = '${BF_TIFF}/include'
69
70 WITH_BF_ZLIB = 'true'
71 BF_ZLIB = LCGDIR+"/zlib"
72 BF_ZLIB_INC = '${BF_ZLIB}/include'
73 BF_ZLIB_LIB = 'z'
74 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
75
76 WITH_BF_INTERNATIONAL = 'true'
77
78 BF_GETTEXT = LCGDIR+'/gettext'
79 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
80 BF_GETTEXT_LIB = 'gettextpo intl'
81 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
82
83 WITH_BF_FTGL = 'true'
84 BF_FTGL = '#extern/bFTGL'
85 BF_FTGL_INC = '${BF_FTGL}/include'
86 BF_FTGL_LIB = 'extern_ftgl'
87
88 WITH_BF_GAMEENGINE='false'
89
90 WITH_BF_ODE = 'false'
91 BF_ODE = LIBDIR + '/ode'
92 BF_ODE_INC = BF_ODE + '/include'
93 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
94
95 WITH_BF_BULLET = 'true'
96 BF_BULLET = '#extern/bullet2/src'
97 BF_BULLET_INC = '${BF_BULLET}'
98 BF_BULLET_LIB = 'extern_bullet'
99
100 BF_SOLID = '#extern/solid'
101 BF_SOLID_INC = '${BF_SOLID}'
102 BF_SOLID_LIB = 'extern_solid'
103
104 WITH_BF_YAFRAY = 'true'
105
106 #WITH_BF_NSPR = 'true'
107 #BF_NSPR = $(LIBDIR)/nspr
108 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
109 #BF_NSPR_LIB = 
110
111 # Uncomment the following line to use Mozilla inplace of netscape
112 #CPPFLAGS += -DMOZ_NOT_NET
113 # Location of MOZILLA/Netscape header files...
114 #BF_MOZILLA = $(LIBDIR)/mozilla
115 #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
116 #BF_MOZILLA_LIB =
117 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
118 # if this is not set.
119 #
120 # Be paranoid regarding library creation (do not update archives)
121 #BF_PARANOID = 'true'
122
123 # enable freetype2 support for text objects
124 BF_FREETYPE = LCGDIR+'/freetype'
125 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
126 BF_FREETYPE_LIB = 'freetype'
127 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
128
129 WITH_BF_QUICKTIME = 'false' # -DWITH_QUICKTIME
130 BF_QUICKTIME = '/usr/local'
131 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
132
133 WITH_BF_ICONV = 'true'
134 BF_ICONV = LIBDIR + "/iconv"
135 BF_ICONV_INC = '${BF_ICONV}/include'
136 BF_ICONV_LIB = 'iconv charset'
137 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
138
139 WITH_BF_BINRELOC = 'false'
140
141 # enable ffmpeg  support
142 WITH_BF_FFMPEG = 'true'  # -DWITH_FFMPEG
143 # Uncomment the following two lines to use system's ffmpeg
144 BF_FFMPEG = LCGDIR+'/ffmpeg'
145 BF_FFMPEG_LIB = 'avformat avcodec swscale avutil avdevice faad faac vorbis x264 ogg mp3lame z'
146 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
147 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
148
149 # enable ogg, vorbis and theora in ffmpeg
150 WITH_BF_OGG = 'false'  # -DWITH_OGG 
151 BF_OGG = '/usr'
152 BF_OGG_INC = '${BF_OGG}/include'
153 BF_OGG_LIB = 'ogg vorbis theoraenc theoradec'
154
155 WITH_BF_OPENJPEG = 'false' 
156 BF_OPENJPEG = '#extern/libopenjpeg'
157 BF_OPENJPEG_LIB = ''
158 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
159 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
160
161 WITH_BF_REDCODE = 'false'  
162 BF_REDCODE = '#extern/libredcode'
163 BF_REDCODE_LIB = ''
164 BF_REDCODE_INC = '${BF_REDCODE}/include'
165 BF_REDCODE_LIBPATH='${BF_REDCODE}/lib'
166
167 # Mesa Libs should go here if your using them as well....
168 WITH_BF_STATICOPENGL = 'false'
169 BF_OPENGL = '/usr'
170 BF_OPENGL_INC = '${BF_OPENGL}/include'
171 BF_OPENGL_LIB = 'GL GLU X11 Xi Xext'
172 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
173 BF_OPENGL_LIB_STATIC = '${BF_OPENGL}/libGL.a ${BF_OPENGL}/libGLU.a ${BF_OPENGL}/libXxf86vm.a ${BF_OPENGL}/libX11.a ${BF_OPENGL}/libXi.a ${BF_OPENGL}/libXext.a ${BF_OPENGL}/libXxf86vm.a'
174
175
176 CC = 'c99'
177 CXX = 'CC'
178
179
180 CCFLAGS = ['-pipe','-fPIC', '-n32']
181
182 CPPFLAGS = ['-DXP_UNIX']
183 CXXFLAGS = ['-pipe','-fPIC', '-n32']
184 REL_CFLAGS = ['-O2']
185 REL_CCFLAGS = ['-O2']
186 ##BF_DEPEND = 'true'
187 ##
188 ##AR = ar
189 ##ARFLAGS = ruv
190 ##ARFLAGSQUIET = ru
191 ##
192 C_WARN = '-no_prelink -ptused'
193
194 CC_WARN = '-no_prelink -ptused'
195
196 ##FIX_STUBS_WARNINGS = -Wno-unused
197
198 LLIBS = 'c m dl pthread dmedia movie'
199 ##LOPTS = --dynamic
200 ##DYNLDFLAGS = -shared $(LDFLAGS)
201
202 BF_PROFILE_FLAGS = ['-pg','-g']
203 BF_PROFILE = 'false'
204
205 BF_DEBUG = 'false'
206 BF_DEBUG_FLAGS = '-g'
207
208 BF_BUILDDIR = '../build/irix6'
209 BF_INSTALLDIR='../install/irix6'
210 BF_DOCDIR='../install/doc'
211
212 #Link against pthread
213 LDIRS = []
214 LDIRS.append(BF_FREETYPE_LIBPATH)
215 LDIRS.append(BF_PNG_LIBPATH)
216 LDIRS.append(BF_ZLIB_LIBPATH)
217 LDIRS.append(BF_SDL_LIBPATH)
218 LDIRS.append(BF_OPENAL_LIBPATH)
219 LDIRS.append(BF_ICONV_LIBPATH)
220
221 PLATFORM_LINKFLAGS = []
222 for x in LDIRS:
223     PLATFORM_LINKFLAGS.append("-L"+x)
224     
225 PLATFORM_LINKFLAGS += ['-L${LCGDIR}/jpeg/lib' , '-L/usr/lib32',  '-n32', '-v', '-no_prelink']
226 print PLATFORM_LINKFLAGS
227 LINKFLAGS= PLATFORM_LINKFLAGS