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