FFmpeg upgrade to revision 12758 (avformat version 52.13): support libavdevice for...
[blender.git] / config / irix6-config.py
1 import os
2
3 LCGDIR = os.getcwd()+"/../lib/irix-6.5-mips"
4 LIBDIR = LCGDIR
5 print LCGDIR
6
7 WITH_BF_VERSE = 'false'
8 BF_VERSE_INCLUDE = "#extern/verse/dist"
9
10 BF_PYTHON = LCGDIR+'/python'
11 BF_PYTHON_VERSION = '2.5'
12 WITH_BF_STATICPYTHON = 'true'
13 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
14 BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
15 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}' #BF_PYTHON+'/lib/python'+BF_PYTHON_VERSION+'/config/libpython'+BF_PYTHON_VERSION+'.a'
16 BF_PYTHON_LINKFLAGS = ['-Xlinker', '-export-dynamic']
17 BF_PYTHON_LIB_STATIC = '${BF_PYTHON}/lib/python2.5/config/libpython${BF_PYTHON_VERSION}.a'
18
19 WITH_BF_OPENAL = 'true'
20 WITH_BF_STATICOPENAL = 'true'
21 BF_OPENAL = LCGDIR+'/openal'
22 BF_OPENAL_INC = '${BF_OPENAL}/include'
23 BF_OPENAL_LIB = 'openal'
24 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
25 BF_OPENAL_LIBPATH = LIBDIR + '/lib'
26
27 # some distros have a separate libalut
28 # if you get linker complaints, you need to uncomment the line below
29 # BF_OPENAL_LIB = 'openal alut'  
30 # BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a ${BF_OPENAL}/lib/libalut.a'
31
32 BF_CXX = '/usr'
33 WITH_BF_STATICCXX = 'false'
34 BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
35
36 WITH_BF_SDL = 'true'
37 BF_SDL = LCGDIR+'/SDL' #$(shell sdl-config --prefix)
38 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
39 BF_SDL_LIB = 'SDL audio iconv charset' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
40 BF_SDL_LIBPATH = '${BF_SDL}/lib'
41
42 WITH_BF_FMOD = 'false'
43 BF_FMOD = LIBDIR + '/fmod'
44
45 WITH_BF_OPENEXR = 'false'
46 WITH_BF_STATICOPENEXR = 'false'
47 BF_OPENEXR = '/usr'
48 # when compiling with your own openexr lib you might need to set...
49 # BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
50
51 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
52 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
53 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'
54 # BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
55
56
57 WITH_BF_DDS = 'false'
58
59 WITH_BF_JPEG = 'false'
60 BF_JPEG = LCGDIR+'/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 = 'false'
66 BF_PNG = LCGDIR+"/png"
67 BF_PNG_INC = '${BF_PNG}/include'
68 BF_PNG_LIB = 'png'
69 BF_PNG_LIBPATH = '${BF_PNG}/lib'
70
71 BF_TIFF = '/usr/nekoware'
72 BF_TIFF_INC = '${BF_TIFF}/include'
73
74 WITH_BF_ZLIB = 'true'
75 BF_ZLIB = LCGDIR+"/zlib"
76 BF_ZLIB_INC = '${BF_ZLIB}/include'
77 BF_ZLIB_LIB = 'z'
78 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
79
80 WITH_BF_INTERNATIONAL = 'true'
81
82 BF_GETTEXT = LCGDIR+'/gettext'
83 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
84 BF_GETTEXT_LIB = 'gettextpo intl'
85 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
86
87 WITH_BF_FTGL = 'true'
88 BF_FTGL = '#extern/bFTGL'
89 BF_FTGL_INC = '${BF_FTGL}/include'
90 BF_FTGL_LIB = 'extern_ftgl'
91
92 WITH_BF_GAMEENGINE='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 = LCGDIR+'/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 = 'false' # -DWITH_QUICKTIME
134 BF_QUICKTIME = '/usr/local'
135 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
136
137 WITH_BF_ICONV = 'true'
138 BF_ICONV = LIBDIR + "/iconv"
139 BF_ICONV_INC = '${BF_ICONV}/include'
140 BF_ICONV_LIB = 'iconv charset'
141 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
142
143 WITH_BF_BINRELOC = 'false'
144
145 # enable ffmpeg  support
146 WITH_BF_FFMPEG = 'true'  # -DWITH_FFMPEG
147 # Uncomment the following two lines to use system's ffmpeg
148 BF_FFMPEG = LCGDIR+'/ffmpeg'
149 BF_FFMPEG_LIB = 'avformat avcodec swscale avutil avdevice faad faac vorbis x264 ogg mp3lame z'
150 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
151 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
152
153 # enable ogg, vorbis and theora in ffmpeg
154 WITH_BF_OGG = 'false'  # -DWITH_OGG 
155 BF_OGG = '/usr'
156 BF_OGG_INC = '${BF_OGG}/include'
157 BF_OGG_LIB = 'ogg vorbis theoraenc theoradec'
158
159 WITH_BF_OPENJPEG = 'false' 
160 BF_OPENJPEG = '#extern/libopenjpeg'
161 BF_OPENJPEG_LIB = ''
162 BF_OPENJPEG_INC = '${BF_OPENJPEG}/include'
163 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
164
165 WITH_BF_REDCODE = 'false'  
166 BF_REDCODE = '#extern/libredcode'
167 BF_REDCODE_LIB = ''
168 BF_REDCODE_INC = '${BF_REDCODE}/include'
169 BF_REDCODE_LIBPATH='${BF_REDCODE}/lib'
170
171 # Mesa Libs should go here if your using them as well....
172 WITH_BF_STATICOPENGL = 'false'
173 BF_OPENGL = '/usr'
174 BF_OPENGL_INC = '${BF_OPENGL}/include'
175 BF_OPENGL_LIB = 'GL GLU X11 Xi Xext'
176 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
177 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'
178
179
180 CC = 'c99'
181 CXX = 'CC'
182
183
184 CCFLAGS = ['-pipe','-fPIC', '-n32']
185
186 CPPFLAGS = ['-DXP_UNIX']
187 CXXFLAGS = ['-pipe','-fPIC', '-n32']
188 REL_CFLAGS = ['-O2']
189 REL_CCFLAGS = ['-O2']
190 ##BF_DEPEND = 'true'
191 ##
192 ##AR = ar
193 ##ARFLAGS = ruv
194 ##ARFLAGSQUIET = ru
195 ##
196 C_WARN = '-no_prelink -ptused'
197
198 CC_WARN = '-no_prelink -ptused'
199
200 ##FIX_STUBS_WARNINGS = -Wno-unused
201
202 LLIBS = 'c m dl pthread dmedia movie'
203 ##LOPTS = --dynamic
204 ##DYNLDFLAGS = -shared $(LDFLAGS)
205
206 BF_PROFILE_FLAGS = ['-pg','-g']
207 BF_PROFILE = 'false'
208
209 BF_DEBUG = 'false'
210 BF_DEBUG_FLAGS = '-g'
211
212 BF_BUILDDIR = '../build/irix6'
213 BF_INSTALLDIR='../install/irix6'
214 BF_DOCDIR='../install/doc'
215
216 #Link against pthread
217 LDIRS = []
218 LDIRS.append(BF_FREETYPE_LIBPATH)
219 LDIRS.append(BF_PNG_LIBPATH)
220 LDIRS.append(BF_ZLIB_LIBPATH)
221 LDIRS.append(BF_SDL_LIBPATH)
222 LDIRS.append(BF_OPENAL_LIBPATH)
223 LDIRS.append(BF_ICONV_LIBPATH)
224
225 PLATFORM_LINKFLAGS = []
226 for x in LDIRS:
227     PLATFORM_LINKFLAGS.append("-L"+x)
228     
229 PLATFORM_LINKFLAGS += ['-L${LCGDIR}/jpeg/lib' , '-L/usr/lib32',  '-n32', '-v', '-no_prelink']
230 print PLATFORM_LINKFLAGS
231 LINKFLAGS= PLATFORM_LINKFLAGS