diff --git a/blender-2.48-python64.patch b/blender-2.48-python64.patch new file mode 100644 index 0000000..599e49a --- /dev/null +++ b/blender-2.48-python64.patch @@ -0,0 +1,15 @@ +Index: source/gameengine/Expressions/Value.cpp +=================================================================== +--- source/gameengine/Expressions/Value.cpp.orig 2010-04-18 12:28:37.000000000 +0200 ++++ source/gameengine/Expressions/Value.cpp 2010-10-28 14:56:24.000000000 +0200 +@@ -543,8 +543,8 @@ CValue* CValue::ConvertPythonToValue(PyO + CListValue* listval = new CListValue(); + bool error = false; + +- int i; +- int numitems = PyList_Size(pyobj); ++ Py_ssize_t i; ++ Py_ssize_t numitems = PyList_Size(pyobj); + for (i=0;i= svn825 + Requires(post): desktop-file-utils Requires(post): shared-mime-info Requires(postun): desktop-file-utils @@ -109,6 +123,14 @@ addon packages to extend blender. %setup -q %patch1 -p1 -b .bid %patch2 -p1 -b .syspath +%patch3 -p0 +%patch4 -p0 +%patch5 -p0 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +# %patch9 -p1 +%patch10 -p1 find -name '.svn' -print | xargs rm -rf @@ -123,6 +145,17 @@ cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} \ %endif -DCMAKE_SKIP_RPATH=ON \ -DBUILD_SHARED_LIBS=OFF \ + -DWITH_FFTW3:BOOL=ON \ + -DWITH_JACK:BOOL=ON \ + -DWITH_CODEC_SNDFILE:BOOL=ON \ + -DWITH_IMAGE_OPENJPEG:BOOL=ON \ + -DWITH_OPENCOLLADA:BOOL=ON \ + -DOPENCOLLADA=%{_includedir} \ + -DWITH_PYTHON:BOOL=ON \ + -DWITH_PYTHON_INSTALL:BOOL=OFF \ + -DWITH_CODEC_FFMPEG:BOOL=OFF \ + -DWITH_GAMEENGINE:BOOL=ON \ + -DWITH_CXX_GUARDEDALLOC:BOOL=OFF \ -DWITH_BUILTIN_GLEW=OFF \ -DWITH_INSTALL_PORTABLE=OFF \ -DWITH_PYTHON_SAFETY=ON \ @@ -197,6 +230,7 @@ rm -rf ${RPM_BUILD_ROOT}%{blenderarch}/plugins/* mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man1 install -p -D -m 644 doc/manpage/blender.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/ +install -p -D -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_mandir}/man1/ # # rpm macros @@ -242,6 +276,7 @@ fi || : %files -n blenderplayer %defattr(-,root,root,-) %{_bindir}/blenderplayer +%{_mandir}/man1/blenderplayer.* %doc COPYING doc/license/*-license.txt %files rpm-macros @@ -249,6 +284,11 @@ fi || : %{_sysconfdir}/rpm/macros.blender %changelog +* Sun Aug 7 2011 Jochen Schmitt - 1:2.58a-4 +- Add man page for blenderplayer +- Add support for openCOLLADA +- Remove debugging statement from syspath patch + * Mon Aug 1 2011 Jochen Schmitt 1:2.58a-3 - Cleanup diff --git a/blenderplayer.1 b/blenderplayer.1 new file mode 100644 index 0000000..d027c55 --- /dev/null +++ b/blenderplayer.1 @@ -0,0 +1,117 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.38.2. +.TH BLENDERPLAYER "1" "November 2010" "Stichting Blender Foundation" "User Commands" +.SH NAME +blenderplayer \- a utility for previewing .blend files +.SH DESCRIPTION +usage: blenderplayer [\-w [w h l t]] [\-f [fw fh fb ff]] [\-g gamengineoptions] [\-s stereomode] filename.blend +.HP +\fB\-h\fR: Prints this command summary +.HP +\fB\-w\fR: display in a window +.HP +\fB\-\-Optional\fR parameters\-\- +.IP +w = window width +h = window height +.IP +l = window left coordinate +t = window top coordinate +Note: If w or h is defined, both must be defined. +.IP +Also, if l or t is defined, all options must be used. +.HP +\fB\-f\fR: start game in full screen mode +.HP +\fB\-\-Optional\fR parameters\-\- +.IP +fw = full screen mode pixel width +fh = full screen mode pixel height +.IP +fb = full screen mode bits per pixel +ff = full screen mode frequency +Note: If fw or fh is defined, both must be defined. +.IP +Also, if fb is used, fw and fh must be used. ff requires all options. +.HP +\fB\-s\fR: start player in stereo +.TP +stereomode: hwpageflip +(Quad buffered shutter glasses) +.TP +syncdoubling +(Above Below) +.TP +sidebyside +(Left Right) +.TP +anaglyph +(Red\-Blue glasses) +.TP +vinterlace +(Vertical interlace for autostereo display) +.IP +depending on the type of stereo you want +.HP +\fB\-D\fR: start player in dome mode +.HP +\fB\-\-Optional\fR parameters\-\- +.TP +angle += field of view in degrees +.TP +tilt += tilt angle in degrees +.IP +warpdata = a file to use for warping the image (absolute path) +mode: fisheye (Fisheye) +.TP +truncatedfront +(Front\-Truncated) +.TP +truncatedrear +(Rear\-Truncated) +.TP +cubemap +(Cube Map) +.TP +sphericalpanoramic +(Spherical Panoramic) +.IP +depending on the type of dome you are using +.HP +\fB\-i\fR: parent windows ID +.HP +\fB\-d\fR: turn debugging on +.HP +\fB\-g\fR: game engine options: +.TP +Name +Default Description +.HP +\fB\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\fR +.TP +fixedtime +0 "Enable all frames" +.TP +nomipmap +0 Disable mipmaps +.TP +show_framerate +0 Show the frame rate +.TP +show_properties +0 Show debug properties +.TP +show_profile +0 Show profiling information +.TP +blender_material +0 Enable material settings +.TP +ignore_deprecation_warnings +1 Ignore deprecation warnings +.IP +\- : all arguments after this are ignored, allowing python to access them from sys.argv +.PP +example: blenderplayer \fB\-w\fR 320 200 10 10 \fB\-g\fR noaudio//home//user//filename.blend +example: blenderplayer \fB\-g\fR show_framerate = 0 //home//user//filename.blend