Merge with 2.5 -r 21619:21756.
[blender.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 = '3.1'
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 BF_CXX = '/usr'
22 WITH_BF_STATICCXX = False
23 BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
24
25 WITH_BF_SDL = True
26 BF_SDL = '/usr' #$(shell sdl-config --prefix)
27 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
28 BF_SDL_LIB = 'SDL' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
29
30 WITH_BF_OPENEXR = True
31 WITH_BF_STATICOPENEXR = False
32 BF_OPENEXR = '/usr'
33 # when compiling with your own openexr lib you might need to set...
34 # BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
35
36 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
37 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
38 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'
39 # BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
40
41
42 WITH_BF_DDS = True
43
44 WITH_BF_JPEG = True
45 BF_JPEG = '/usr'
46 BF_JPEG_INC = '${BF_JPEG}/include'
47 BF_JPEG_LIB = 'jpeg'
48
49 WITH_BF_PNG = True
50 BF_PNG = '/usr'
51 BF_PNG_INC = '${BF_PNG}/include'
52 BF_PNG_LIB = 'png'
53
54 BF_TIFF = '/usr'
55 BF_TIFF_INC = '${BF_TIFF}/include'
56
57 WITH_BF_ZLIB = True
58 BF_ZLIB = '/usr'
59 BF_ZLIB_INC = '${BF_ZLIB}/include'
60 BF_ZLIB_LIB = 'z'
61
62 WITH_BF_INTERNATIONAL = True
63
64 BF_GETTEXT = '/usr'
65 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
66 BF_GETTEXT_LIB = 'gettextlib'
67 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
68
69 WITH_BF_GAMEENGINE = True
70 WITH_BF_PLAYER = True
71
72 WITH_BF_BULLET = True
73 BF_BULLET = '#extern/bullet2/src'
74 BF_BULLET_INC = '${BF_BULLET}'
75 BF_BULLET_LIB = 'extern_bullet'
76
77 #WITH_BF_NSPR = True
78 #BF_NSPR = $(LIBDIR)/nspr
79 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
80 #BF_NSPR_LIB = 
81
82 # Uncomment the following line to use Mozilla inplace of netscape
83 #CPPFLAGS += -DMOZ_NOT_NET
84 # Location of MOZILLA/Netscape header files...
85 #BF_MOZILLA = $(LIBDIR)/mozilla
86 #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
87 #BF_MOZILLA_LIB =
88 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
89 # if this is not set.
90 #
91 # Be paranoid regarding library creation (do not update archives)
92 #BF_PARANOID = True
93
94 # enable freetype2 support for text objects
95 BF_FREETYPE = '/usr'
96 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
97 BF_FREETYPE_LIB = 'freetype'
98
99 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
100 BF_QUICKTIME = '/usr/local'
101 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
102
103 WITH_BF_ICONV = False
104 BF_ICONV = LIBDIR + "/iconv"
105 BF_ICONV_INC = '${BF_ICONV}/include'
106 BF_ICONV_LIB = 'iconv'
107 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
108
109 WITH_BF_BINRELOC = True
110
111 # enable ffmpeg  support
112 WITH_BF_FFMPEG = True  # -DWITH_FFMPEG
113 BF_FFMPEG = '#extern/ffmpeg'
114 BF_FFMPEG_LIB = ''
115 # Uncomment the following two lines to use system's ffmpeg
116 # BF_FFMPEG = '/usr'
117 # BF_FFMPEG_LIB = 'avformat avcodec swscale avutil avdevice'
118 BF_FFMPEG_INC = '${BF_FFMPEG}'
119 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
120
121 # enable ogg, vorbis and theora in ffmpeg
122 WITH_BF_OGG = False  # -DWITH_OGG 
123 BF_OGG = '/usr'
124 BF_OGG_INC = '${BF_OGG}/include'
125 BF_OGG_LIB = 'ogg vorbis vorbisenc theoraenc theoradec'
126
127 WITH_BF_OPENJPEG = True 
128 BF_OPENJPEG = '#extern/libopenjpeg'
129 BF_OPENJPEG_LIB = ''
130 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
131 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
132
133 WITH_BF_REDCODE = False  
134 BF_REDCODE = '#extern/libredcode'
135 BF_REDCODE_LIB = ''
136 # BF_REDCODE_INC = '${BF_REDCODE}/include'
137 BF_REDCODE_INC = '${BF_REDCODE}/../' #C files request "libredcode/format.h" which is in "#extern/libredcode/format.h", stupid but compiles for now.
138 BF_REDCODE_LIBPATH='${BF_REDCODE}/lib'
139
140 # Mesa Libs should go here if your using them as well....
141 WITH_BF_STATICOPENGL = False
142 BF_OPENGL = '/usr'
143 BF_OPENGL_INC = '${BF_OPENGL}/include'
144 BF_OPENGL_LIB = 'GL GLU X11 Xi'
145 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
146 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'
147
148 ##
149 CC = 'gcc'
150 CXX = 'g++'
151 ##ifeq ($CPU),alpha)
152 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
153
154 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
155
156 CPPFLAGS = ['-DXP_UNIX']
157 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
158 REL_CFLAGS = ['-O2']
159 REL_CCFLAGS = ['-O2']
160 ##BF_DEPEND = True
161 ##
162 ##AR = ar
163 ##ARFLAGS = ruv
164 ##ARFLAGSQUIET = ru
165 ##
166 C_WARN = ['-Wno-char-subscripts', '-Wdeclaration-after-statement']
167
168 CC_WARN = ['-Wall']
169
170 ##FIX_STUBS_WARNINGS = -Wno-unused
171
172 LLIBS = ['util', 'c', 'm', 'dl', 'pthread', 'stdc++']
173 ##LOPTS = --dynamic
174 ##DYNLDFLAGS = -shared $(LDFLAGS)
175
176 BF_PROFILE = False
177 BF_PROFILE_CCFLAGS = ['-pg','-g']
178 BF_PROFILE_LINKFLAGS = ['-pg']
179
180 BF_DEBUG = False
181 BF_DEBUG_CCFLAGS = ['-g']
182
183 BF_BUILDDIR = '../build/linux2'
184 BF_INSTALLDIR='../install/linux2'
185 BF_DOCDIR='../install/doc'
186
187
188 #Link against pthread
189 PLATFORM_LINKFLAGS = ['-pthread']
190