Added OpenBSD3.x to the SCons build system.
authorNathan Letwory <nathan@letworyinteractive.com>
Tue, 2 Mar 2004 08:40:19 +0000 (08:40 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Tue, 2 Mar 2004 08:40:19 +0000 (08:40 +0000)
SConstruct
intern/bmfont/SConscript
intern/ghost/SConscript
source/blender/python/SConscript
source/blender/radiosity/SConscript
source/blender/src/SConscript
source/creator/SConscript

index e29f6423f065036620edaacc7c1a95c8f1e58afe..305c8524235344fcd2e67da9605ca6d30b0c7daa 100644 (file)
@@ -503,8 +503,87 @@ elif string.find (sys.platform, 'hp-ux') != -1:
     window_system = 'X11'
     defines = []
 
+elif sys.platform=='openbsd3':
+    print "Building for OpenBSD 3.x"
+    use_international = 'false'
+    use_gameengine = 'false'
+    use_openal = 'false'
+    use_fmod = 'false'
+    use_quicktime = 'false'
+    use_sumo = 'false'
+    use_ode = 'false'
+    use_buildinfo = 'true'
+    build_blender_dynamic = 'true'
+    build_blender_static = 'false'
+    build_blender_player = 'false'
+    build_blender_plugin = 'false'
+    release_flags = ['-O2']
+    debug_flags = ['-O2', '-g']
+    extra_flags = ['-pipe', '-fPIC', '-funsigned-char']
+    cxxflags = []
+    defines = []
+    warn_flags = ['-Wall','-W']
+    window_system = 'X11'
+    platform_libs = ['m', 'stdc++', 'pthread', 'util']
+    platform_libpath = []
+    platform_linkflags = []
+    extra_includes = []
+    z_lib = ['z']
+    z_libpath = ['/usr/lib']
+    z_include = ['/usr/include']
+    # png library information
+    png_lib = ['png']
+    png_libpath = ['/usr/local/lib']
+    png_include = ['/usr/local/include']
+    # jpeg library information
+    jpeg_lib = ['jpeg']
+    jpeg_libpath = ['/usr/local/lib']
+    jpeg_include = ['/usr/local/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_include = ['/usr/X11R6/include/']
+    # SDL library information
+    sdl_env.ParseConfig ('sdl-config --cflags --libs')
+    sdl_cflags = sdl_env.Dictionary()['CCFLAGS']
+    sdl_include = sdl_env.Dictionary()['CPPPATH']
+    sdl_libpath = sdl_env.Dictionary()['LIBPATH']
+    sdl_lib = sdl_env.Dictionary()['LIBS']
+    # SOLID library information
+    solid_lib = []                     # TODO
+    solid_libpath = []        # TODO
+    solid_include = ['#extern/solid/include']
+    qhull_lib = []       # TODO
+    qhull_libpath = []  # TODO
+    qhull_include = ['#extern/qhull/include']
+    # 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']
+    # 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 ()]
+    # International support information
+    ftgl_lib = ['ftgl']
+    ftgl_libpath = ['#../lib/linux-glibc2.2.5-i386/ftgl/lib']
+    ftgl_include = ['#../lib/linux-glibc2.2.5-i386/ftgl/include']
+    freetype_env.ParseConfig('pkg-config --cflags --libs freetype2')
+    freetype_lib = freetype_env.Dictionary()['LIBS']
+    freetype_libpath = freetype_env.Dictionary()['LIBPATH']
+    freetype_include = freetype_env.Dictionary()['CPPPATH']
+    gettext_lib = []
+    gettext_libpath = []
+    gettext_include = []
+    # OpenAL library information
+    openal_lib = ['openal']
+    openal_libpath = ['/usr/lib']
+    openal_include = ['/usr/include']
+
 else:
-    print "Unknown platform"
+    print "Unknown platform %s"%sys.platform
+    exit
 
 #-----------------------------------------------------------------------------
 # End of platform specific section
@@ -862,6 +941,7 @@ if user_options_dict['BUILD_BLENDER_DYNAMIC'] == 1:
     dy_blender = link_env.Copy ()
     dy_blender.Append (LIBS=user_options_dict['OPENGL_LIBRARY'])
     dy_blender.Append (LIBPATH=user_options_dict['OPENGL_LIBPATH'])
+    dy_blender.Append (CPPPATH=user_options_dict['OPENGL_INCLUDE'])
     if user_options_dict['USE_BUILDINFO'] == 1:
         dy_blender.Append (CPPDEFINES = ['BUILD_TIME=\'"%s"\''%(build_time),
                                          'BUILD_DATE=\'"%s"\''%(build_date),
@@ -888,6 +968,7 @@ if user_options_dict['BUILD_BLENDER_STATIC'] == 1:
                                          'NAN_BUILDINFO',
                                          'BUILD_PLATFORM=\'"%s"\''%(sys.platform)])
     st_blender.Append (LINKFLAGS=user_options_dict['OPENGL_STATIC'])
+    st_blender.Append (CPPPATH=user_options_dict['OPENGL_INCLUDE'])
     s_obj = [st_blender.Object (root_build_dir+'source/creator/s_buildinfo',
                                 [root_build_dir+'source/creator/buildinfo.c'])]
     st_blender.Prepend (LIBPATH=['/usr/lib/opengl/xfree/lib'])
index c5207760c5a3e710b70d1d4a01646d7eaa340c63..b0f596c57c9c4cc012e721b5a5a9a958e86d1d76 100644 (file)
@@ -18,4 +18,5 @@ source_files = ['intern/BMF_Api.cpp',
 bmfont_env.Append (CPPPATH = ['.',
                               'intern'])
 
+bmfont_env.Append (CPPPATH = user_options_dict['OPENGL_INCLUDE'])
 bmfont_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_BMF', source=source_files)
index 6b58f056d9cb0036c9e40fe2cac302148f5a85d3..b8d47f49f336e9f0f47724d14f3fa7ecb7f1b854 100644 (file)
@@ -36,4 +36,5 @@ else:
 ghost_env.Append (CPPPATH = ['.',
                              '../string'])
 
+ghost_env.Append (CPPPATH = user_options_dict['OPENGL_INCLUDE'])
 ghost_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_GHOST', source=source_files)
index 21cc9d558e998f37d018a5ee58007d655fde46a9..0c55dd6ae97652d359281fdf735de6735548f890 100644 (file)
@@ -56,5 +56,6 @@ python_env.Append (CPPPATH = ['api2_2x',
                               '../include'])
 
 python_env.Append (CPPPATH = user_options_dict['PYTHON_INCLUDE'])
+python_env.Append (CPPPATH = user_options_dict['OPENGL_INCLUDE'])
 python_env.Append (CPPPATH = extra_includes)
 python_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_python', source=source_files)
index 2e7be6ae3315e9936d7d0c59c482a0bc8fd95dc3..477c9521a458a6f4832428359da25f38f874197c 100644 (file)
@@ -19,4 +19,6 @@ rad_env.Append (CPPPATH = ['extern/include',
                            '#/intern/guardedalloc',
                            '../render/extern/include'])
 
+rad_env.Append (CPPPATH = user_options_dict['OPENGL_INCLUDE'])
+
 rad_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_radiosity', source=source_files)
index c5586204b77733cf5bdec9df7807f9623adbe9fc..06f89015df762551868ab0545359d3a2c8b3d840 100644 (file)
@@ -131,6 +131,7 @@ src_env.Append (CPPPATH = ['#/intern/guardedalloc',
 
 src_env.Append (CPPPATH = user_options_dict['PYTHON_INCLUDE'])
 src_env.Append (CPPPATH = user_options_dict['SDL_INCLUDE'])
+src_env.Append (CPPPATH = user_options_dict['OPENGL_INCLUDE'])
 
 if user_options_dict['USE_INTERNATIONAL'] == 1:
     src_env.Append (CPPPATH=['../ftfont'])
index 749fb6b75e29a03d971e937200d3c2e5aaaef3eb..274f3a226182dacb2e8513781e3e0fe039ecf9ec 100644 (file)
@@ -17,6 +17,7 @@ creator_env.Append (CPPPATH = ['#/intern/guardedalloc',
                                '../blender/makesdna',
                                '../kernel/gen_messaging',
                                '../kernel/gen_system'])
+creator_env.Append (CPPPATH = user_options_dict['OPENGL_INCLUDE'])
 
 if user_options_dict['USE_QUICKTIME'] == 1:
     creator_env.Append (CPPDEFINES = ['WITH_QUICKTIME'])