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