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