File Scons.patch of Package blender
--- SConstruct
+++ SConstruct
@@ -64,7 +64,7 @@
if sys.platform == 'linux2' or sys.platform == 'linux-i386':
use_international = 'true'
use_gameengine = 'true'
- use_openal = 'false'
+ use_openal = 'true'
use_fmod = 'false'
use_quicktime = 'false'
use_sumo = 'true'
@@ -76,8 +76,8 @@
build_blender_static = 'false'
build_blender_player = 'true'
build_blender_plugin = 'false'
- release_flags = ['-O2']
- debug_flags = ['-O2', '-g']
+ release_flags = ['-O2'$CSCFLAGS]
+ debug_flags = ['-O2'$CSCFLAGS, '-g']
extra_flags = ['-pipe', '-funsigned-char']
cxxflags = []
defines = []
@@ -89,24 +89,24 @@
extra_includes = []
# z library information
z_lib = ['z']
- z_libpath = ['/usr/lib']
+ z_libpath = ['/usr/VAR_LIB']
z_include = ['/usr/include']
# png library information
png_lib = ['png']
- png_libpath = ['/usr/lib']
+ png_libpath = ['/usr/VAR_LIB']
png_include = ['/usr/include']
# jpeg library information
jpeg_lib = ['jpeg']
- jpeg_libpath = ['/usr/lib']
+ jpeg_libpath = ['/usr/VAR_LIB']
jpeg_include = ['/usr/include']
#tiff library information
tiff_lib = ['tiff']
- tiff_libpath = ['/usr/lib']
+ tiff_libpath = ['/usr/VAR_LIB']
tiff_include = ['/usr/include']
# OpenGL library information
opengl_lib = ['GL', 'GLU']
- opengl_static = ['/usr/lib/libGL.a', '/usr/lib/libGLU.a']
- opengl_libpath = ['/usr/lib', '/usr/X11R6/lib']
+ opengl_static = ['/usr/VAR_LIB/libGL.a', '/usr/VAR_LIB/libGLU.a']
+ opengl_libpath = ['/usr/VAR_LIB', '/usr/X11R6/lib']
opengl_include = ['/usr/include', '/usr/X11R6/include']
# SDL library information
sdl_env.ParseConfig ('sdl-config --cflags --libs')
@@ -127,17 +127,17 @@
bullet_include = ['#extern/bullet','#extern/bullet/LinearMath','#extern/bullet/Bullet','#extern/bullet/BulletDynamics']
# ODE library information
ode_lib = ['ode']
- ode_libpath = ['#../lib/linux-glibc2.2.5-i386/ode/lib']
- ode_include = ['#../lib/linux-glibc2.2.5-i386/ode/include']
+ ode_libpath = ['#../VAR_LIB/linux-glibc2.2.5-i386/ode/lib']
+ ode_include = ['#../VAR_LIB/linux-glibc2.2.5-i386/ode/include']
# Python library information
python_lib = ['python%d.%d' % sys.version_info[0:2]]
python_libpath = [sysconfig.get_python_lib (0, 1) + '/config']
python_include = [sysconfig.get_python_inc ()]
python_linkflags = Split (sysconfig.get_config_var('LINKFORSHARED'))
# International support information
- ftgl_lib = []
- ftgl_libpath = []
- ftgl_include = ['#extern/bFTGL/include']
+ ftgl_lib = ['ftgl']
+ ftgl_libpath = ['/usr/VAR_LIB']
+ ftgl_include = ['/usr/include/FTGL']
freetype_env.ParseConfig ('pkg-config --cflags --libs freetype2 2>/dev/null || freetype-config --cflags --libs 2>/dev/null')
freetype_lib = freetype_env.Dictionary()['LIBS']
freetype_libpath = freetype_env.Dictionary()['LIBPATH']
@@ -147,7 +147,7 @@
gettext_include = []
# OpenAL library information
openal_lib = ['openal']
- openal_libpath = ['/usr/lib']
+ openal_libpath = ['/usr/VAR_LIB']
openal_include = ['/usr/include']
elif sys.platform == 'darwin':