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