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