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