e94f61f7819a572eace77bbbf100559bedcdf16f
[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 ### XXX Find what this actually wants; it doesn't want libquicktime.
94 WITH_BF_QUICKTIME = False
95 BF_QUICKTIME = '/usr/local'
96 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
97
98 WITH_BF_ICONV = True
99 BF_ICONV = LIBDIR + "/iconv"
100 BF_ICONV_INC = '${BF_ICONV}/include'
101 BF_ICONV_LIB = 'iconv'
102 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
103
104 WITH_BF_BINRELOC = True
105
106 # enable ffmpeg  support
107 WITH_BF_FFMPEG = True
108 BF_FFMPEG = '/usr/local'
109 BF_FFMPEG_LIB = 'avformat avcodec swscale avutil avdevice'
110 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
111 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
112
113 # enable ogg, vorbis and theora in ffmpeg
114 WITH_BF_OGG = True
115 BF_OGG = '/usr/local'
116 BF_OGG_INC = '${BF_OGG}/include'
117 BF_OGG_LIB = 'ogg vorbis vorbisenc theoraenc theoradec'
118
119 WITH_BF_OPENJPEG = True
120 BF_OPENJPEG = '#extern/libopenjpeg'
121 BF_OPENJPEG_LIB = ''
122 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
123 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
124
125 WITH_BF_FFTW3 = True
126 BF_FFTW3 = LIBDIR + '/usr/local'
127 BF_FFTW3_INC = '${BF_FFTW3}/include'
128 BF_FFTW3_LIB = 'fftw3'
129 BF_FFTW3_LIBPATH = '${BF_FFTW3}/lib'
130
131 WITH_BF_REDCODE = False
132 BF_REDCODE = '#extern/libredcode'
133 BF_REDCODE_LIB = ''
134 # BF_REDCODE_INC = '${BF_REDCODE}/include'
135 BF_REDCODE_INC = '${BF_REDCODE}/../' #C files request "libredcode/format.h" which is in "#extern/libredcode/format.h", stupid but compiles for now.
136 BF_REDCODE_LIBPATH='${BF_REDCODE}/lib'
137
138 # Mesa Libs should go here if your using them as well....
139 WITH_BF_STATICOPENGL = False
140 BF_OPENGL = '/usr/local'
141 BF_OPENGL_INC = '${BF_OPENGL}/include'
142 BF_OPENGL_LIB = 'GL GLU X11 Xi Xxf86vm'
143 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
144 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'
145
146 WITH_BF_COLLADA = False
147 BF_COLLADA = '#source/blender/collada'
148 BF_COLLADA_INC = '${BF_COLLADA}'
149 BF_COLLADA_LIB = 'bf_collada'
150 BF_OPENCOLLADA = '/usr'
151 BF_OPENCOLLADA_INC = '${BF_OPENCOLLADA}'
152 BF_OPENCOLLADA_LIB = 'OpenCOLLADAStreamWriter OpenCOLLADASaxFrameworkLoader OpenCOLLADAFramework OpenCOLLADABaseUtils GeneratedSaxParser UTF MathMLSolver pcre buffer ftoa'
153 BF_OPENCOLLADA_LIBPATH = '${BF_OPENCOLLADA}/lib'
154 BF_PCRE = '/usr/local'
155 BF_PCRE_LIB = 'pcre'
156 BF_PCRE_LIBPATH = '${BF_PCRE}/lib'
157 BF_EXPAT = '/usr/local'
158 BF_EXPAT_LIB = 'expat'
159 BF_EXPAT_LIBPATH = '${BF_EXPAT}/lib'
160
161 WITH_BF_OPENMP = True
162
163 WITH_GHOST_XDND = False
164
165 #Freestyle
166 WITH_BF_FREESTYLE = True
167
168 #Ray trace optimization
169 WITH_BF_RAYOPTIMIZATION = True
170 BF_RAYOPTIMIZATION_SSE_FLAGS = ['-msse','-pthread']
171
172 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-D_LARGEFILE_SOURCE','-D_FILE_OFFSET_BITS=64','-D_LARGEFILE64_SOURCE']
173
174 CPPFLAGS = []
175 CXXFLAGS = []
176 if WITH_BF_FFMPEG:
177     # libavutil needs UINT64_C()
178     CXXFLAGS += ['-D__STDC_CONSTANT_MACROS', ]
179 REL_CFLAGS = []
180 REL_CXXFLAGS = []
181 REL_CCFLAGS = ['-DNDEBUG', '-O2']
182 ##BF_DEPEND = True
183 ##
184 ##AR = ar
185 ##ARFLAGS = ruv
186 ##ARFLAGSQUIET = ru
187 ##
188 C_WARN = ['-Wno-char-subscripts', '-Wdeclaration-after-statement', '-Wstrict-prototypes']
189 CC_WARN = ['-Wall']
190 CXX_WARN = ['-Wno-invalid-offsetof', '-Wno-sign-compare']
191
192
193 ##FIX_STUBS_WARNINGS = -Wno-unused
194
195 LLIBS = ['util', 'c', 'm', 'pthread', 'stdc++']
196 ##LOPTS = --dynamic
197 ##DYNLDFLAGS = -shared $(LDFLAGS)
198
199 BF_PROFILE = False
200 BF_PROFILE_CCFLAGS = ['-pg','-g']
201 BF_PROFILE_LINKFLAGS = ['-pg']
202
203 BF_DEBUG = False
204 BF_DEBUG_CCFLAGS = ['-g', '-D_DEBUG']
205
206 BF_BUILDDIR = '../build/freebsd8'
207 BF_INSTALLDIR='../install/freebsd8'
208
209 #Link against pthread
210 PLATFORM_LINKFLAGS = ['-pthread']