soc-2008-mxcurioni: merged changes to revision 23516
[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 BF_CXX = '/usr'
24 WITH_BF_STATICCXX = 'false'
25 BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
26
27 BF_LIBSAMPLERATE = LCGDIR+'/samplerate'
28 BF_LIBSAMPLERATE_INC = '${BF_LIBSAMPLERATE}/include'
29 BF_LIBSAMPLERATE_LIB = 'samplerate'
30 BF_LIBSAMPLERATE_LIBPATH = '${BF_LIBSAMPLERATE}/lib'
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_OPENEXR = 'false'
39 WITH_BF_STATICOPENEXR = 'false'
40 BF_OPENEXR = '/usr'
41 # when compiling with your own openexr lib you might need to set...
42 # BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
43
44 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
45 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
46 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'
47 # BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
48
49
50 WITH_BF_DDS = 'false'
51
52 WITH_BF_JPEG = 'false'
53 BF_JPEG = LCGDIR+'/jpeg'
54 BF_JPEG_INC = '${BF_JPEG}/include'
55 BF_JPEG_LIB = 'jpeg'
56 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
57
58 WITH_BF_PNG = 'false'
59 BF_PNG = LCGDIR+"/png"
60 BF_PNG_INC = '${BF_PNG}/include'
61 BF_PNG_LIB = 'png'
62 BF_PNG_LIBPATH = '${BF_PNG}/lib'
63
64 BF_TIFF = '/usr/nekoware'
65 BF_TIFF_INC = '${BF_TIFF}/include'
66
67 WITH_BF_ZLIB = 'true'
68 BF_ZLIB = LCGDIR+"/zlib"
69 BF_ZLIB_INC = '${BF_ZLIB}/include'
70 BF_ZLIB_LIB = 'z'
71 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
72
73 WITH_BF_INTERNATIONAL = 'true'
74
75 BF_GETTEXT = LCGDIR+'/gettext'
76 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
77 BF_GETTEXT_LIB = 'gettextpo intl'
78 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
79
80 WITH_BF_GAMEENGINE='false'
81 WITH_BF_PLAYER = 'false'
82
83 WITH_BF_BULLET = 'true'
84 BF_BULLET = '#extern/bullet2/src'
85 BF_BULLET_INC = '${BF_BULLET}'
86 BF_BULLET_LIB = 'extern_bullet'
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 = LCGDIR+'/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 = 'false' # -DWITH_QUICKTIME
112 BF_QUICKTIME = '/usr/local'
113 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
114
115 WITH_BF_ICONV = 'true'
116 BF_ICONV = LIBDIR + "/iconv"
117 BF_ICONV_INC = '${BF_ICONV}/include'
118 BF_ICONV_LIB = 'iconv charset'
119 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
120
121 WITH_BF_BINRELOC = 'false'
122
123 # enable ffmpeg  support
124 WITH_BF_FFMPEG = 'true'  # -DWITH_FFMPEG
125 # Uncomment the following two lines to use system's ffmpeg
126 BF_FFMPEG = LCGDIR+'/ffmpeg'
127 BF_FFMPEG_LIB = 'avformat avcodec swscale avutil avdevice faad faac vorbis x264 ogg mp3lame z'
128 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
129 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
130
131 # enable ogg, vorbis and theora in ffmpeg
132 WITH_BF_OGG = 'false'  # -DWITH_OGG 
133 BF_OGG = '/usr'
134 BF_OGG_INC = '${BF_OGG}/include'
135 BF_OGG_LIB = 'ogg vorbis theoraenc theoradec'
136
137 WITH_BF_OPENJPEG = 'false' 
138 BF_OPENJPEG = '#extern/libopenjpeg'
139 BF_OPENJPEG_LIB = ''
140 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
141 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
142
143 WITH_BF_REDCODE = 'false'  
144 BF_REDCODE = '#extern/libredcode'
145 BF_REDCODE_LIB = ''
146 BF_REDCODE_INC = '${BF_REDCODE}/include'
147 BF_REDCODE_LIBPATH='${BF_REDCODE}/lib'
148
149 # Mesa Libs should go here if your using them as well....
150 WITH_BF_STATICOPENGL = 'false'
151 BF_OPENGL = '/usr'
152 BF_OPENGL_INC = '${BF_OPENGL}/include'
153 BF_OPENGL_LIB = 'GL GLU X11 Xi Xext'
154 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
155 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'
156
157
158 CC = 'c99'
159 CXX = 'CC'
160
161
162 CCFLAGS = ['-pipe','-fPIC', '-n32']
163
164 CPPFLAGS = ['-DXP_UNIX']
165 CXXFLAGS = ['-pipe','-fPIC', '-n32']
166 REL_CFLAGS = ['-O2']
167 REL_CCFLAGS = ['-O2']
168 ##BF_DEPEND = 'true'
169 ##
170 ##AR = ar
171 ##ARFLAGS = ruv
172 ##ARFLAGSQUIET = ru
173 ##
174 C_WARN = '-no_prelink -ptused'
175
176 CC_WARN = '-no_prelink -ptused'
177
178 ##FIX_STUBS_WARNINGS = -Wno-unused
179
180 LLIBS = 'c m dl pthread dmedia movie'
181 ##LOPTS = --dynamic
182 ##DYNLDFLAGS = -shared $(LDFLAGS)
183
184 BF_PROFILE_FLAGS = ['-pg','-g']
185 BF_PROFILE = 'false'
186
187 BF_DEBUG = 'false'
188 BF_DEBUG_FLAGS = '-g'
189
190 BF_BUILDDIR = '../build/irix6'
191 BF_INSTALLDIR='../install/irix6'
192
193 #Link against pthread
194 LDIRS = []
195 LDIRS.append(BF_FREETYPE_LIBPATH)
196 LDIRS.append(BF_PNG_LIBPATH)
197 LDIRS.append(BF_ZLIB_LIBPATH)
198 LDIRS.append(BF_SDL_LIBPATH)
199 LDIRS.append(BF_OPENAL_LIBPATH)
200 LDIRS.append(BF_ICONV_LIBPATH)
201
202 PLATFORM_LINKFLAGS = []
203 for x in LDIRS:
204     PLATFORM_LINKFLAGS.append("-L"+x)
205     
206 PLATFORM_LINKFLAGS += ['-L${LCGDIR}/jpeg/lib' , '-L/usr/lib32',  '-n32', '-v', '-no_prelink']
207 print PLATFORM_LINKFLAGS
208 LINKFLAGS= PLATFORM_LINKFLAGS