disable redcode support for cmake & scons-freebsd
[blender.git] / build_files / scons / config / freebsd9-config.py
1 CC = 'gcc44'
2 CXX = 'g++44'
3
4 LCGDIR = '../lib/freebsd9'
5 LIBDIR = "${LCGDIR}"
6
7 BF_PYTHON = '/usr/local'
8 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
9 BF_PYTHON_VERSION = '3.1'
10 WITH_BF_STATICPYTHON = False
11 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
12 BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
13 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}'
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/local'
19 BF_OPENAL_INC = '${BF_OPENAL}/include'
20 BF_OPENAL_LIB = 'openal'
21 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
22
23 BF_CXX = '/usr/local'
24 WITH_BF_STATICCXX = False
25 BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
26
27 BF_LIBSAMPLERATE = '/usr/local'
28 BF_LIBSAMPLERATE_INC = '${BF_LIBSAMPLERATE}/include'
29 BF_LIBSAMPLERATE_LIB = 'samplerate'
30 BF_LIBSAMPLERATE_LIBPATH = '${BF_LIBSAMPLERATE}/lib'
31
32 WITH_BF_JACK = True
33 BF_JACK = '/usr/local'
34 BF_JACK_INC = '${BF_JACK}/include/jack'
35 BF_JACK_LIB = 'jack'
36 BF_JACK_LIBPATH = '${BF_JACK}/lib'
37
38 WITH_BF_SNDFILE = True
39 BF_SNDFILE = '/usr/local'
40 BF_SNDFILE_INC = '${BF_SNDFILE}/include/sndfile'
41 BF_SNDFILE_LIB = 'sndfile'
42 BF_SNDFILE_LIBPATH = '${BF_SNDFILE}/lib'
43
44 WITH_BF_SDL = True
45 BF_SDL = '/usr/local' #$(shell sdl-config --prefix)
46 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
47 BF_SDL_LIB = 'SDL' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
48
49 WITH_BF_OPENEXR = True
50 WITH_BF_STATICOPENEXR = False
51 BF_OPENEXR = '/usr/local'
52 # when compiling with your own openexr lib you might need to set...
53 # BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
54
55 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
56 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
57 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'
58 # BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
59
60 WITH_BF_DDS = True
61
62 WITH_BF_JPEG = True
63 BF_JPEG = '/usr/local'
64 BF_JPEG_INC = '${BF_JPEG}/include'
65 BF_JPEG_LIB = 'jpeg'
66
67 WITH_BF_PNG = True
68 BF_PNG = '/usr/local'
69 BF_PNG_INC = '${BF_PNG}/include'
70 BF_PNG_LIB = 'png'
71
72 WITH_BF_TIFF = True
73 BF_TIFF = '/usr/local'
74 BF_TIFF_INC = '${BF_TIFF}/include'
75 BF_TIFF_LIB = 'tiff'
76
77 WITH_BF_ZLIB = True
78 BF_ZLIB = '/usr'
79 BF_ZLIB_INC = '${BF_ZLIB}/include'
80 BF_ZLIB_LIB = 'z'
81
82 WITH_BF_INTERNATIONAL = True
83
84 BF_GETTEXT = '/usr/local'
85 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
86 BF_GETTEXT_LIB = 'gettextlib'
87 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
88
89 WITH_BF_GAMEENGINE = False
90 WITH_BF_PLAYER = True
91
92 WITH_BF_BULLET = True
93 BF_BULLET = '#extern/bullet2/src'
94 BF_BULLET_INC = '${BF_BULLET}'
95 BF_BULLET_LIB = 'extern_bullet'
96
97 # enable freetype2 support for text objects
98 BF_FREETYPE = '/usr/local'
99 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
100 BF_FREETYPE_LIB = 'freetype'
101
102 ### XXX Find what this actually wants; it doesn't want libquicktime.
103 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
104 BF_QUICKTIME = '/usr/local'
105 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
106
107 WITH_BF_ICONV = True
108 BF_ICONV = LIBDIR + "/iconv"
109 BF_ICONV_INC = '${BF_ICONV}/include'
110 BF_ICONV_LIB = 'iconv'
111 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
112
113 WITH_BF_BINRELOC = True
114
115 # enable ffmpeg  support
116 WITH_BF_FFMPEG = True  # -DWITH_FFMPEG
117 BF_FFMPEG = '/usr/local'
118 BF_FFMPEG_LIB = 'avformat avcodec swscale avutil avdevice'
119 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
120 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
121
122 # enable ogg, vorbis and theora in ffmpeg
123 WITH_BF_OGG = True  # -DWITH_OGG 
124 BF_OGG = '/usr/local'
125 BF_OGG_INC = '${BF_OGG}/include'
126 BF_OGG_LIB = 'ogg vorbis vorbisenc theoraenc theoradec'
127
128 WITH_BF_OPENJPEG = True
129 BF_OPENJPEG = '#extern/libopenjpeg'
130 BF_OPENJPEG_LIB = ''
131 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
132 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
133
134 WITH_BF_FFTW3 = True
135 BF_FFTW3 = LIBDIR + '/usr/local'
136 BF_FFTW3_INC = '${BF_FFTW3}/include'
137 BF_FFTW3_LIB = 'fftw3'
138 BF_FFTW3_LIBPATH = '${BF_FFTW3}/lib'
139
140 WITH_BF_REDCODE = False
141 BF_REDCODE = '#extern/libredcode'
142 BF_REDCODE_LIB = ''
143 # BF_REDCODE_INC = '${BF_REDCODE}/include'
144 BF_REDCODE_INC = '${BF_REDCODE}/../' #C files request "libredcode/format.h" which is in "#extern/libredcode/format.h", stupid but compiles for now.
145 BF_REDCODE_LIBPATH='${BF_REDCODE}/lib'
146
147 # Mesa Libs should go here if your using them as well....
148 WITH_BF_STATICOPENGL = False
149 BF_OPENGL = '/usr/local'
150 BF_OPENGL_INC = '${BF_OPENGL}/include'
151 BF_OPENGL_LIB = 'GL GLU X11 Xi'
152 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
153 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'
154
155 WITH_BF_COLLADA = False
156 BF_COLLADA = '#source/blender/collada'
157 BF_COLLADA_INC = '${BF_COLLADA}'
158 BF_COLLADA_LIB = 'bf_collada'
159 BF_OPENCOLLADA = '/usr'
160 BF_OPENCOLLADA_INC = '${BF_OPENCOLLADA}'
161 BF_OPENCOLLADA_LIB = 'OpenCOLLADAStreamWriter OpenCOLLADASaxFrameworkLoader OpenCOLLADAFramework OpenCOLLADABaseUtils GeneratedSaxParser UTF MathMLSolver pcre buffer ftoa'
162 BF_OPENCOLLADA_LIBPATH = '${BF_OPENCOLLADA}/lib'
163 BF_PCRE = '/usr/local'
164 BF_PCRE_LIB = 'pcre'
165 BF_PCRE_LIBPATH = '${BF_PCRE}/lib'
166 BF_EXPAT = '/usr/local'
167 BF_EXPAT_LIB = 'expat'
168 BF_EXPAT_LIBPATH = '${BF_EXPAT}/lib'
169
170 WITH_BF_OPENMP = True
171
172 #Ray trace optimization
173 WITH_BF_RAYOPTIMIZATION = True
174 BF_RAYOPTIMIZATION_SSE_FLAGS = ['-msse','-pthread']
175
176 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-D_LARGEFILE_SOURCE','-D_FILE_OFFSET_BITS=64','-D_LARGEFILE64_SOURCE']
177
178 CPPFLAGS = []
179 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-D_LARGEFILE_SOURCE','-D_FILE_OFFSET_BITS=64','-D_LARGEFILE64_SOURCE']
180 if WITH_BF_FFMPEG:
181   # libavutil needs UINT64_C()
182   CXXFLAGS += ['-D__STDC_CONSTANT_MACROS', ]
183 REL_CFLAGS = ['-O2']
184 REL_CCFLAGS = ['-O2']
185 ##BF_DEPEND = True
186 ##
187 ##AR = ar
188 ##ARFLAGS = ruv
189 ##ARFLAGSQUIET = ru
190 ##
191 C_WARN = ['-Wno-char-subscripts', '-Wdeclaration-after-statement']
192 CC_WARN = ['-Wall']
193 CXX_WARN = ['-Wno-invalid-offsetof', '-Wno-sign-compare']
194
195
196 ##FIX_STUBS_WARNINGS = -Wno-unused
197
198 LLIBS = ['util', 'c', 'm', 'pthread', 'stdc++']
199 ##LOPTS = --dynamic
200 ##DYNLDFLAGS = -shared $(LDFLAGS)
201
202 BF_PROFILE = False
203 BF_PROFILE_CCFLAGS = ['-pg','-g']
204 BF_PROFILE_LINKFLAGS = ['-pg']
205
206 BF_DEBUG = False
207 BF_DEBUG_CCFLAGS = ['-g', '-DDEBUG']
208
209 BF_BUILDDIR = '../build/freebsd9'
210 BF_INSTALLDIR='../install/freebsd9'
211
212 #Link against pthread
213 PLATFORM_LINKFLAGS = ['-pthread']