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