Enable ffmpeg support, requested and tested by peters at schwertfisch dot de. Also, add a commented entry for blender.beforesubst to appease update-plist.
ok? Index: Makefile =================================================================== RCS file: /cvs/ports/graphics/blender/Makefile,v retrieving revision 1.39 diff -u -p -r1.39 Makefile --- Makefile 30 Mar 2012 14:51:55 -0000 1.39 +++ Makefile 1 Apr 2012 21:31:42 -0000 @@ -3,7 +3,7 @@ COMMENT = 3D creation software DISTNAME = blender-2.62 -REVISION = 0 +REVISION = 1 CATEGORIES = graphics @@ -31,7 +31,8 @@ MODPY_VERSION = ${MODPY_DEFAULT_VERSION_ CONFIGURE_ARGS = -DPYTHON_LIBRARY="${LOCALBASE}/lib/libpython${MODPY_VERSION}m.so" \ -DPYTHON_INCLUDE_DIR="${MODPY_INCDIR}" \ -DPYTHON_VERSION=${MODPY_VERSION} \ - -DWITH_BUILTIN_GLEW=OFF + -DWITH_BUILTIN_GLEW=OFF \ + -DWITH_CODEC_FFMPEG=ON BUILD_DEPENDS = devel/gflags LIB_DEPENDS = graphics/png \ @@ -43,14 +44,16 @@ LIB_DEPENDS = graphics/png \ devel/sdl \ audio/openal \ graphics/openjpeg \ + graphics/ffmpeg>=20111126 \ ${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 += boost_thread-mt c freetype jpeg m openal openjpeg png -WANTLIB += pthread ${MODPY_WANTLIB} stdc++ tiff util z +WANTLIB += Xi Xxf86vm avcodec avdevice avformat avutil boost_filesystem-mt +WANTLIB += boost_regex-mt boost_system-mt boost_thread-mt c freetype +WANTLIB += jpeg m openal openjpeg png pthread ${MODPY_WANTLIB} stdc++ +WANTLIB += swscale tiff util z NO_REGRESS = Yes Index: patches/patch-source_gameengine_VideoTexture_VideoFFmpeg_h =================================================================== RCS file: patches/patch-source_gameengine_VideoTexture_VideoFFmpeg_h diff -N patches/patch-source_gameengine_VideoTexture_VideoFFmpeg_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-source_gameengine_VideoTexture_VideoFFmpeg_h 1 Apr 2012 21:31:42 -0000 @@ -0,0 +1,11 @@ +$OpenBSD$ +--- source/gameengine/VideoTexture/VideoFFmpeg.h.orig Sat Mar 31 16:36:14 2012 ++++ source/gameengine/VideoTexture/VideoFFmpeg.h Sat Mar 31 16:36:19 2012 +@@ -29,7 +29,6 @@ http://www.gnu.org/copyleft/lesser.txt. + + #ifdef WITH_FFMPEG + extern "C" { +-#undef __cplusplus + #include <pthread.h> + + #include "ffmpeg_compat.h" Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/graphics/blender/pkg/PLIST,v retrieving revision 1.10 diff -u -p -r1.10 PLIST --- pkg/PLIST 26 Feb 2012 20:37:26 -0000 1.10 +++ pkg/PLIST 1 Apr 2012 21:31:42 -0000 @@ -2,6 +2,7 @@ bin/blender @bin bin/blender-bin bin/blender-thumbnailer +@comment bin/blender.beforesubst @man man/man1/blender.1 share/applications/blender.desktop share/blender/