This small update also enables the game engine.

I have not been able to hear any sound from it yet. The following page
contains some info about sound usage in blender:

http://mediawiki.blender.org/index.php/BSod/Introduction_to_Character_Animation/Sound_and_lip_sync

If anyone feels like debugging it, go for it. You can also compile
openal with CFLAGS="-DDEBUG_MAXIMUS" to get more verbose output.
The freealut examples work fine, so I suspect the problem is really in
blender.


Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/blender/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- Makefile    18 Sep 2006 11:50:40 -0000      1.15
+++ Makefile    4 Nov 2006 11:01:01 -0000
@@ -2,7 +2,7 @@
 
 COMMENT=       "3D creation software"
 
-DISTNAME=      blender-2.42
+DISTNAME=      blender-2.42a
 CATEGORIES=    graphics
 
 HOMEPAGE=      http://www.blender.org/
@@ -28,23 +28,22 @@
 LIB_DEPENDS=   png::graphics/png \
                jpeg::graphics/jpeg \
                SDL::devel/sdl \
+               alut.>=1::audio/freealut \
                
python${PYTHON_VER}:python-${PYTHON_VER}.*:lang/python/${PYTHON_VER}
 
-WANTLIB=       GL GLU X11 Xi c m pthread stdc++ util z
+WANTLIB=       GL GLU X11 Xi c m pthread stdc++ util z openal
 
 SEPARATE_BUILD=        simple
 USE_X11=       Yes
 NO_REGRESS=    Yes
 
-WRKDIST=       ${WRKDIR}/${DISTNAME:S/-//}
-
 CFLAGS+=       -fPIC -funsigned-char -fno-strict-aliasing
 
 post-extract:
        @cd ${WRKSRC}/config && cp openbsd3-config.py openbsd4-config.py
 
 do-build:
-       @${SETENV} ${MAKE_ENV} scons -C ${WRKSRC} blendernogame \
+       @${SETENV} ${MAKE_ENV} scons -C ${WRKSRC} \
                CC=${CC} CXX=${CXX} \
                CFLAGS="${CFLAGS}" CCFLAGS="${CXXFLAGS}" \
                REL_CFLAGS= REL_CCFLAGS= \
@@ -55,12 +54,16 @@
                BF_JPEG=${LOCALBASE} \
                BF_PNG=${LOCALBASE} \
                BF_TIFF=${LOCALBASE} \
+               BF_OPENAL=${LOCALBASE} \
+               BF_OPENAL_INC=${LOCALBASE}/include \
+               BF_OPENAL_LIBPATH=${LOCALBASE}/lib \
                BF_OPENGL=${X11BASE} \
                BF_ZLIB=/usr \
+               WITH_BF_BULLET=true \
+               WITH_BF_OPENAL=true \
                WITH_BF_INTERNATIONAL=false \
                WITH_BF_STATICOPENGL=false \
-               WITH_BF_FTGL=false \
-               WITH_BF_BULLET=false
+               WITH_BF_FTGL=false
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKBUILD}/bin/blender ${PREFIX}/bin
Index: distinfo
===================================================================
RCS file: /cvs/ports/graphics/blender/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo    26 Jul 2006 06:45:27 -0000      1.5
+++ distinfo    4 Nov 2006 11:01:01 -0000
@@ -1,4 +1,4 @@
-MD5 (blender-2.42.tar.gz) = 232d714a64c3a2208f0ea999fe4a2440
-RMD160 (blender-2.42.tar.gz) = c3a1aa1080d122867f116dd05564c77d41d55194
-SHA1 (blender-2.42.tar.gz) = a8fa45b0f032d992b20762bada931da18b716368
-SIZE (blender-2.42.tar.gz) = 12195054
+MD5 (blender-2.42a.tar.gz) = 3d60b7ebe0dea47da12744fe2462d96c
+RMD160 (blender-2.42a.tar.gz) = 3178191ec9565c92f0b381fef2ad69c88873aadb
+SHA1 (blender-2.42a.tar.gz) = 242dd751a0cc851c7436eafa73475a11be1aa453
+SIZE (blender-2.42a.tar.gz) = 12295244
Index: patches/patch-SConstruct
===================================================================
RCS file: /cvs/ports/graphics/blender/patches/patch-SConstruct,v
retrieving revision 1.3
diff -u -r1.3 patch-SConstruct
--- patches/patch-SConstruct    26 Jul 2006 06:45:27 -0000      1.3
+++ patches/patch-SConstruct    4 Nov 2006 11:01:01 -0000
@@ -1,12 +1,46 @@
 $OpenBSD: patch-SConstruct,v 1.3 2006/07/26 06:45:27 steven Exp $
---- SConstruct.orig    Sat Jul 22 09:29:10 2006
-+++ SConstruct Sat Jul 22 09:29:15 2006
-@@ -373,7 +373,7 @@ if env['WITH_BF_PLAYER']:
+--- SConstruct.orig    Fri Jun 23 20:52:31 2006
++++ SConstruct Sat Nov  4 11:01:03 2006
+@@ -168,7 +168,7 @@ printdebug = B.arguments.get('BF_LISTDEB
+ 
+ # see if this linux distro has libalut
+ 
+-if env['OURPLATFORM'] == 'linux2' :
++if env['OURPLATFORM'] == 'linux2' or env['OURPLATFORM'] == 'openbsd4' :
+     if env['WITH_BF_OPENAL']:
+         mylib_test_source_file = """
+         #include "AL/alut.h"
+@@ -180,13 +180,13 @@ if env['OURPLATFORM'] == 'linux2' :
+         """
+ 
+         def CheckFreeAlut(context,env):
+-            context.Message( B.bc.OKGREEN + "Linux platform detected:\n  
checking for FreeAlut... " + B.bc.ENDC )
++            context.Message( B.bc.OKGREEN + "checking for FreeAlut... " + 
B.bc.ENDC )
+             env['LIBS'] = 'alut'
+             result = context.TryLink(mylib_test_source_file, '.c')
+             context.Result(result)
+             return result
+ 
+-        env2 = env.Copy( LIBPATH = env['BF_OPENAL'] ) 
++        env2 = env.Copy( LIBPATH = env['BF_OPENAL_LIBPATH'], CPPPATH = 
env['BF_OPENAL_INC'] ) 
+         conf = Configure( env2, {'CheckFreeAlut' : CheckFreeAlut}, 
'.sconf_temp', '/dev/null' )
+         if conf.CheckFreeAlut( env2 ):
+             env['BF_OPENAL_LIB'] += ' alut'
+@@ -369,7 +369,7 @@ bininstalltarget = env.Alias('install-bi
+ 
+ if env['WITH_BF_PLAYER']:
+     blenderplayer = env.Alias('blenderplayer', B.program_list)
+-    Depends(blenderplayer,installtarget)
++#    Depends(blenderplayer,installtarget)
  
  if not env['WITH_BF_GAMEENGINE']:
      blendernogame = env.Alias('blendernogame', B.program_list)
--    Depends(blendernogame,installtarget)
-+#    Depends(blendernogame,installtarget)
+@@ -377,7 +377,7 @@ if not env['WITH_BF_GAMEENGINE']:
  
  
  Default(B.program_list)
+-Default(installtarget)
++#Default(installtarget)
+ 
+ #------------ RELEASE
+ # TODO: zipup the installation
Index: patches/patch-intern_SoundSystem_SND_DependKludge_h
===================================================================
RCS file: patches/patch-intern_SoundSystem_SND_DependKludge_h
diff -N patches/patch-intern_SoundSystem_SND_DependKludge_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-intern_SoundSystem_SND_DependKludge_h 4 Nov 2006 11:01:01 
-0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- intern/SoundSystem/SND_DependKludge.h.orig Thu Oct 26 21:03:58 2006
++++ intern/SoundSystem/SND_DependKludge.h      Thu Oct 26 21:04:40 2006
+@@ -40,7 +40,7 @@
+ 
+ #if defined (_WIN32) && !defined(FREE_WINDOWS)
+ #   define USE_OPENAL
+-#elif defined (__linux__) || (__FreeBSD__) || defined(__APPLE__) || 
defined(__sun)
++#elif defined (__linux__) || defined(__OpenBSD__) || defined(__FreeBSD__) || 
defined(__APPLE__) || defined(__sun)
+ #     define USE_OPENAL
+ #else
+ #     ifdef USE_OPENAL

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Reply via email to