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