Fields UI: Several attempts to follow UI guide and other things leaded to a really...
[blender-staging.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 WITH_BF_SDL = 'true'
28 BF_SDL = LCGDIR+'/sdl' #$(shell sdl-config --prefix)
29 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
30 BF_SDL_LIB = 'SDL audio iconv charset' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
31 BF_SDL_LIBPATH = '${BF_SDL}/lib'
32
33 WITH_BF_OPENEXR = 'false'
34 WITH_BF_STATICOPENEXR = 'false'
35 BF_OPENEXR = '/usr'
36 # when compiling with your own openexr lib you might need to set...
37 # BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
38
39 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
40 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
41 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'
42 # BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
43
44
45 WITH_BF_DDS = 'false'
46
47 WITH_BF_JPEG = 'false'
48 BF_JPEG = LCGDIR+'/jpeg'
49 BF_JPEG_INC = '${BF_JPEG}/include'
50 BF_JPEG_LIB = 'jpeg'
51 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
52
53 WITH_BF_PNG = 'false'
54 BF_PNG = LCGDIR+"/png"
55 BF_PNG_INC = '${BF_PNG}/include'
56 BF_PNG_LIB = 'png'
57 BF_PNG_LIBPATH = '${BF_PNG}/lib'
58
59 BF_TIFF = '/usr/nekoware'
60 BF_TIFF_INC = '${BF_TIFF}/include'
61
62 WITH_BF_ZLIB = 'true'
63 BF_ZLIB = LCGDIR+"/zlib"
64 BF_ZLIB_INC = '${BF_ZLIB}/include'
65 BF_ZLIB_LIB = 'z'
66 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
67
68 WITH_BF_INTERNATIONAL = 'true'
69
70 BF_GETTEXT = LCGDIR+'/gettext'
71 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
72 BF_GETTEXT_LIB = 'gettextpo intl'
73 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
74
75 WITH_BF_GAMEENGINE='false'
76 WITH_BF_PLAYER = 'false'
77
78 WITH_BF_BULLET = 'true'
79 BF_BULLET = '#extern/bullet2/src'
80 BF_BULLET_INC = '${BF_BULLET}'
81 BF_BULLET_LIB = 'extern_bullet'
82
83 #WITH_BF_NSPR = 'true'
84 #BF_NSPR = $(LIBDIR)/nspr
85 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
86 #BF_NSPR_LIB = 
87
88 # Uncomment the following line to use Mozilla inplace of netscape
89 #CPPFLAGS += -DMOZ_NOT_NET
90 # Location of MOZILLA/Netscape header files...
91 #BF_MOZILLA = $(LIBDIR)/mozilla
92 #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
93 #BF_MOZILLA_LIB =
94 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
95 # if this is not set.
96 #
97 # Be paranoid regarding library creation (do not update archives)
98 #BF_PARANOID = 'true'
99
100 # enable freetype2 support for text objects
101 BF_FREETYPE = LCGDIR+'/freetype'
102 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
103 BF_FREETYPE_LIB = 'freetype'
104 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
105
106 WITH_BF_QUICKTIME = 'false' # -DWITH_QUICKTIME
107 BF_QUICKTIME = '/usr/local'
108 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
109
110 WITH_BF_ICONV = 'true'
111 BF_ICONV = LIBDIR + "/iconv"
112 BF_ICONV_INC = '${BF_ICONV}/include'
113 BF_ICONV_LIB = 'iconv charset'
114 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
115
116 WITH_BF_BINRELOC = 'false'
117
118 # enable ffmpeg  support
119 WITH_BF_FFMPEG = 'true'  # -DWITH_FFMPEG
120 # Uncomment the following two lines to use system's ffmpeg
121 BF_FFMPEG = LCGDIR+'/ffmpeg'
122 BF_FFMPEG_LIB = 'avformat avcodec swscale avutil avdevice faad faac vorbis x264 ogg mp3lame z'
123 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
124 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
125
126 # enable ogg, vorbis and theora in ffmpeg
127 WITH_BF_OGG = 'false'  # -DWITH_OGG 
128 BF_OGG = '/usr'
129 BF_OGG_INC = '${BF_OGG}/include'
130 BF_OGG_LIB = 'ogg vorbis theoraenc theoradec'
131
132 WITH_BF_OPENJPEG = 'false' 
133 BF_OPENJPEG = '#extern/libopenjpeg'
134 BF_OPENJPEG_LIB = ''
135 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
136 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
137
138 WITH_BF_REDCODE = 'false'  
139 BF_REDCODE = '#extern/libredcode'
140 BF_REDCODE_LIB = ''
141 BF_REDCODE_INC = '${BF_REDCODE}/include'
142 BF_REDCODE_LIBPATH='${BF_REDCODE}/lib'
143
144 # Mesa Libs should go here if your using them as well....
145 WITH_BF_STATICOPENGL = 'false'
146 BF_OPENGL = '/usr'
147 BF_OPENGL_INC = '${BF_OPENGL}/include'
148 BF_OPENGL_LIB = 'GL GLU X11 Xi Xext'
149 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
150 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'
151
152
153 CC = 'c99'
154 CXX = 'CC'
155
156
157 CCFLAGS = ['-pipe','-fPIC', '-n32']
158
159 CPPFLAGS = ['-DXP_UNIX']
160 CXXFLAGS = ['-pipe','-fPIC', '-n32']
161 REL_CFLAGS = ['-O2']
162 REL_CCFLAGS = ['-O2']
163 ##BF_DEPEND = 'true'
164 ##
165 ##AR = ar
166 ##ARFLAGS = ruv
167 ##ARFLAGSQUIET = ru
168 ##
169 C_WARN = '-no_prelink -ptused'
170
171 CC_WARN = '-no_prelink -ptused'
172
173 ##FIX_STUBS_WARNINGS = -Wno-unused
174
175 LLIBS = 'c m dl pthread dmedia movie'
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/irix6'
186 BF_INSTALLDIR='../install/irix6'
187 BF_DOCDIR='../install/doc'
188
189 #Link against pthread
190 LDIRS = []
191 LDIRS.append(BF_FREETYPE_LIBPATH)
192 LDIRS.append(BF_PNG_LIBPATH)
193 LDIRS.append(BF_ZLIB_LIBPATH)
194 LDIRS.append(BF_SDL_LIBPATH)
195 LDIRS.append(BF_OPENAL_LIBPATH)
196 LDIRS.append(BF_ICONV_LIBPATH)
197
198 PLATFORM_LINKFLAGS = []
199 for x in LDIRS:
200     PLATFORM_LINKFLAGS.append("-L"+x)
201     
202 PLATFORM_LINKFLAGS += ['-L${LCGDIR}/jpeg/lib' , '-L/usr/lib32',  '-n32', '-v', '-no_prelink']
203 print PLATFORM_LINKFLAGS
204 LINKFLAGS= PLATFORM_LINKFLAGS