With the port of OpenImageIO I just sent and this diff, you can enable
support for the new 'Cycles' rendering engine in Blender.  Looking for
some tests ...


Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/blender/Makefile,v
retrieving revision 1.42
diff -u -p -r1.42 Makefile
--- Makefile    7 May 2012 15:45:42 -0000       1.42
+++ Makefile    7 May 2012 16:02:42 -0000
@@ -1,8 +1,9 @@
-# $OpenBSD: Makefile,v 1.42 2012/05/07 15:45:42 pascal Exp $
+# $OpenBSD: Makefile,v 1.41 2012/04/16 12:03:25 naddy Exp $
 
 COMMENT =      3D creation software
 
 DISTNAME =     blender-2.63
+REVISION =     0
 
 CATEGORIES =   graphics
 
@@ -44,19 +45,20 @@ LIB_DEPENDS =       graphics/png \
                audio/openal \
                graphics/openjpeg \
                graphics/ffmpeg>=20111126 \
+               graphics/openimageio \
                ${MODPY_LIB_DEPENDS}
 RUN_DEPENDS =  devel/desktop-file-utils \
                x11/gnome/librsvg
 
-WANTLIB += GL GLEW GLU Half Iex IlmImf IlmThread Imath SDL X11
-WANTLIB += Xi Xxf86vm boost_filesystem-mt boost_regex-mt boost_system-mt
+WANTLIB += GL GLEW GLU Half Iex IlmImf IlmThread Imath OpenImageIO
+WANTLIB += SDL X11 Xi Xxf86vm avcodec avdevice avformat avutil
+WANTLIB += boost_filesystem-mt boost_regex-mt boost_system-mt
 WANTLIB += boost_thread-mt c freetype jpeg m openal openjpeg png
-WANTLIB += pthread ${MODPY_WANTLIB} stdc++ tiff util z
-WANTLIB += avcodec avdevice avformat avutil swscale
+WANTLIB += pthread ${MODPY_WANTLIB} stdc++ swscale tiff util z
 
 NO_REGRESS =   Yes
 
-CFLAGS +=      -I${LOCALBASE}/include -I${X11BASE}/include
+CFLAGS +=      -I${LOCALBASE}/include -I${X11BASE}/include -pthread
 
 MODPY_ADJ_FILES =      release/bin/blender-thumbnailer.py \
                        release/scripts/modules/blend_render_info.py
Index: patches/patch-CMakeLists_txt
===================================================================
RCS file: patches/patch-CMakeLists_txt
diff -N patches/patch-CMakeLists_txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-CMakeLists_txt        7 May 2012 16:02:42 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- CMakeLists.txt.orig        Mon May  7 17:41:38 2012
++++ CMakeLists.txt     Mon May  7 17:42:02 2012
+@@ -658,7 +658,7 @@ if(UNIX AND NOT APPLE)
+       endif()
+ 
+       # OpenSuse needs lutil, ArchLinux not, for now keep, can avoid by using 
--as-needed
+-      set(PLATFORM_LINKLIBS "-lutil -lc -lm -lpthread -lstdc++")
++      set(PLATFORM_LINKLIBS "-lutil -lc -lm -pthread -lstdc++")
+ 
+       if((NOT WITH_HEADLESS) AND (NOT WITH_GHOST_SDL))
+               find_package(X11 REQUIRED)
Index: patches/patch-intern_cycles_blender_CMakeLists_txt
===================================================================
RCS file: patches/patch-intern_cycles_blender_CMakeLists_txt
diff -N patches/patch-intern_cycles_blender_CMakeLists_txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-intern_cycles_blender_CMakeLists_txt  7 May 2012 16:02:42 
-0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+--- intern/cycles/blender/CMakeLists.txt.orig  Mon May  7 17:23:36 2012
++++ intern/cycles/blender/CMakeLists.txt       Mon May  7 17:23:45 2012
+@@ -11,11 +11,11 @@ set(INC
+       ../../../source/blender/makesrna
+       ../../../source/blender/blenloader
+       ${CMAKE_BINARY_DIR}/source/blender/makesrna/intern
++      ${GLEW_INCLUDE_PATH}
+ )
+ 
+ set(INC_SYS
+       ${PYTHON_INCLUDE_DIRS}
+-      ${GLEW_INCLUDE_PATH}
+ )
+ 
+ set(SRC

Reply via email to