OSX: change omp default True gor gcc-4.6.1 only atm
[blender.git] / build_files / scons / config / sunos5-config.py
1 LCGDIR = '../lib/sunos5'
2 LIBDIR = '${LCGDIR}'
3
4 BF_PYTHON = '/usr/local'
5 BF_PYTHON_VERSION = '3.2'
6 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
7 BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
8 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}' #BF_PYTHON+'/lib/python'+BF_PYTHON_VERSION+'/config/libpython'+BF_PYTHON_VERSION+'.a'
9 BF_PYTHON_LINKFLAGS = ['-Xlinker', '-export-dynamic']
10
11 WITH_BF_OPENAL = True
12 WITH_BF_STATICOPENAL = False
13 BF_OPENAL = '/usr/local'
14 BF_OPENAL_INC = '${BF_OPENAL}/include'
15 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
16 BF_OPENAL_LIB = 'openal'
17 # Warning, this static lib configuration is untested! users of this OS please confirm.
18 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
19
20 # Warning, this static lib configuration is untested! users of this OS please confirm.
21 BF_CXX = '/usr'
22 WITH_BF_STATICCXX = False
23 BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
24
25 BF_LIBSAMPLERATE = '/usr/local'
26 BF_LIBSAMPLERATE_INC = '${BF_LIBSAMPLERATE}/include'
27 BF_LIBSAMPLERATE_LIB = 'samplerate'
28 BF_LIBSAMPLERATE_LIBPATH = '${BF_LIBSAMPLERATE}/lib'
29
30 WITH_BF_SDL = True
31 BF_SDL = '/usr/local' #$(shell sdl-config --prefix)
32 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
33 BF_SDL_LIBPATH = '${BF_SDL}/lib'
34 BF_SDL_LIB = 'SDL' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
35
36 WITH_BF_OPENEXR = True
37 WITH_BF_STATICOPENEXR = False
38 BF_OPENEXR = '/usr/local'
39 BF_OPENEXR_INC = ['${BF_OPENEXR}/include', '${BF_OPENEXR}/include/OpenEXR' ]
40 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
41 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
42 # Warning, this static lib configuration is untested! users of this OS please confirm.
43 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'
44
45 WITH_BF_DDS = True
46
47 WITH_BF_JPEG = True
48 BF_JPEG = '/usr/local'
49 BF_JPEG_INC = '${BF_JPEG}/include'
50 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
51 BF_JPEG_LIB = 'jpeg'
52
53 WITH_BF_PNG = True
54 BF_PNG = '/usr/local'
55 BF_PNG_INC = '${BF_PNG}/include'
56 BF_PNG_LIBPATH = '${BF_PNG}/lib'
57 BF_PNG_LIB = 'png'
58
59 BF_TIFF = '/usr/local'
60 BF_TIFF_INC = '${BF_TIFF}/include'
61
62 WITH_BF_ZLIB = True
63 BF_ZLIB = '/usr'
64 BF_ZLIB_INC = '${BF_ZLIB}/include'
65 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
66 BF_ZLIB_LIB = 'z'
67
68 WITH_BF_INTERNATIONAL = True
69
70 BF_GETTEXT = '/usr/local'
71 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
72 BF_GETTEXT_LIB = 'gettextlib'
73 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
74
75 WITH_BF_GAMEENGINE=False
76 WITH_BF_PLAYER = False
77
78 WITH_BF_BULLET = True
79 BF_BULLET = '#extern/bullet2/src'
80 BF_BULLET_INC = '${BF_BULLET}'
81 BF_BULLET_LIB = 'extern_bullet'
82
83 #WITH_BF_NSPR = True
84 #BF_NSPR = $(LIBDIR)/nspr
85 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
86 #BF_NSPR_LIB = 
87
88 # Uncomment the following line to use Mozilla inplace of netscape
89 #CPPFLAGS += -DMOZ_NOT_NET
90 # Location of MOZILLA/Netscape header files...
91 #BF_MOZILLA = $(LIBDIR)/mozilla
92 #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
93 #BF_MOZILLA_LIB =
94 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
95 # if this is not set.
96 #
97 # Be paranoid regarding library creation (do not update archives)
98 #BF_PARANOID = True
99
100 # enable freetype2 support for text objects
101 BF_FREETYPE = '/usr/local'
102 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
103 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
104 BF_FREETYPE_LIB = 'freetype'
105
106 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
107 BF_QUICKTIME = '/usr/local'
108 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
109
110 WITH_BF_ICONV = True
111 BF_ICONV = "/usr"
112 BF_ICONV_INC = '${BF_ICONV}/include'
113 BF_ICONV_LIB = 'iconv'
114 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
115
116 # enable ffmpeg  support
117 WITH_BF_FFMPEG = True # -DWITH_FFMPEG
118 BF_FFMPEG = '/usr/local'
119 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
120 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
121 BF_FFMPEG_LIB = 'avformat avcodec avutil avdevice'
122
123 # Mesa Libs should go here if your using them as well....
124 WITH_BF_STATICOPENGL = False
125 BF_OPENGL = '/usr/openwin'
126 BF_OPENGL_INC = '${BF_OPENGL}/include'
127 BF_OPENGL_LIB = 'GL GLU X11 Xi'
128 BF_OPENGL_LIBPATH = '${BF_OPENGL}/lib'
129 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'
130
131 ##
132 CC = 'gcc'
133 CXX = 'g++'
134 ##ifeq ($CPU),alpha)
135 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
136
137 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
138
139 CPPFLAGS = ['-DSUN_OGL_NO_VERTEX_MACROS']
140 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
141 REL_CFLAGS = ['-DNDEBUG', '-O2']
142 REL_CCFLAGS = ['-DNDEBUG', '-O2']
143 ##BF_DEPEND = True
144 ##
145 ##AR = ar
146 ##ARFLAGS = ruv
147 ##ARFLAGSQUIET = ru
148 ##
149 C_WARN = ['-Wno-char-subscripts', '-Wdeclaration-after-statement']
150
151 CC_WARN = ['-Wall']
152
153 ##FIX_STUBS_WARNINGS = -Wno-unused
154
155 LLIBS = ['c', 'm', 'dl', 'pthread', 'stdc++']
156 ##LOPTS = --dynamic
157 ##DYNLDFLAGS = -shared $(LDFLAGS)
158
159 BF_PROFILE_CCFLAGS = ['-pg', '-g ']
160 BF_PROFILE_LINKFLAGS = ['-pg']
161 BF_PROFILE = False
162
163 BF_DEBUG = False
164 BF_DEBUG_CCFLAGS = ['-D_DEBUG']
165
166 BF_BUILDDIR = '../build/sunos5'
167 BF_INSTALLDIR='../install/sunos5'
168
169
170 PLATFORM_LINKFLAGS = []