[arch-commits] Commit in blender/trunk (PKGBUILD blender-ffmpeg.diff blender.install)

Eric Bélanger eric at archlinux.org
Thu Jun 23 22:00:17 UTC 2011


    Date: Thursday, June 23, 2011 @ 18:00:17
  Author: eric
Revision: 128410

upgpkg: blender 2.58-1
Upstream update, Enabled ffmpeg and sndfile codec, Built with system glew, Cleaned up depends, Removed post_install message (seems obsolete)

Added:
  blender/trunk/blender-ffmpeg.diff
Modified:
  blender/trunk/PKGBUILD
  blender/trunk/blender.install

---------------------+
 PKGBUILD            |   22 +++++++++++++---------
 blender-ffmpeg.diff |   13 +++++++++++++
 blender.install     |   10 ----------
 3 files changed, 26 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-06-23 21:45:03 UTC (rev 128409)
+++ PKGBUILD	2011-06-23 22:00:17 UTC (rev 128410)
@@ -8,25 +8,25 @@
 # look for release numbers only we make a messy PKGBUILD that can checkout svn
 # release if necessary.
 
-_svn=true
-#_svn=false
+#_svn=true
+_svn=false
 
 pkgname=blender
-pkgver=2.57b
-pkgrel=2
+pkgver=2.58
+pkgrel=1
 epoch=1
 pkgdesc="A fully integrated 3D graphics creation suite"
 arch=('i686' 'x86_64')
 license=('GPL')
 url="http://www.blender.org"
-depends=('libjpeg' 'libpng' 'openjpeg' 'libtiff' 'openexr' 'sdl' 'python' 'desktop-file-utils' \
-         'shared-mime-info' 'hicolor-icon-theme' 'xdg-utils' 'gettext' 'libxi' 'libxmu' 'mesa' \
-         'freetype2' 'openal' 'libsndfile' 'libsamplerate' 'ffmpeg')
+depends=('libpng' 'libtiff' 'openexr' 'python' 'desktop-file-utils' \
+         'shared-mime-info' 'hicolor-icon-theme' 'xdg-utils' 'glew' \
+         'freetype2' 'openal' 'libsamplerate' 'ffmpeg')
 makedepends=('cmake') # 'subversion'
 install=blender.install
 if [ $_svn = false ]; then
-  source=(http://download.blender.org/source/$pkgname-$pkgver.tar.gz)
-  md5sums=('e6cb5523323a71c070051e6fe6efe497')
+  source=(http://download.blender.org/source/$pkgname-$pkgver.tgz blender-ffmpeg.diff)
+  md5sums=('04a0d43ff27aa0abf14ca559f6a6bf67' 'ed36bab11bfc87864fe0cadf0de5d98f')
 else
   source=(ftp://ftp.archlinux.org/other/${pkgname}/$pkgname-$pkgver.tar.xz)
   md5sums=('59e344d4ec48750a86e4ef079c3acbfc')
@@ -47,6 +47,7 @@
 
 build() {
   cd "$srcdir/$pkgname-$pkgver"
+  patch -p0 -i ../blender-ffmpeg.diff
   mkdir build
   cd build
 
@@ -60,6 +61,9 @@
     -DWITH_OPENCOLLADA:BOOL=OFF \
     -DWITH_GAMEENGINE:BOOL=ON \
     -DWITH_PLAYER:BOOL=ON \
+    -DWITH_BUILTIN_GLEW:BOOL=OFF \
+    -DWITH_CODEC_FFMPEG:BOOL=ON \
+    -DWITH_CODEC_SNDFILE:BOOL=ON \
     -DPYTHON_VERSION:STRING=3.2 \
     -DPYTHON_LIBPATH:STRING=/usr/lib \
     -DPYTHON_LIBRARY:STRING=python3.2mu \

Added: blender-ffmpeg.diff
===================================================================
--- blender-ffmpeg.diff	                        (rev 0)
+++ blender-ffmpeg.diff	2011-06-23 22:00:17 UTC (rev 128410)
@@ -0,0 +1,13 @@
+Index: intern/ffmpeg/ffmpeg_compat.h
+===================================================================
+--- intern/ffmpeg/ffmpeg_compat.h	(revision 37744)
++++ intern/ffmpeg/ffmpeg_compat.h	(revision 37745)
+@@ -40,7 +40,7 @@
+ #define FFMPEG_HAVE_AVIO 1
+ #endif
+ 
+-#if (LIBAVCODEC_VERSION_MAJOR > 53) || ((LIBAVCODEC_VERSION_MAJOR == 53) && (LIBAVCODEC_VERSION_MINOR > 1)) || ((LIBAVCODEC_VERSION_MAJOR == 53) && (LIBAVCODEC_VERSION_MINOR == 1) && (LIBAVCODEC_VERSION_MICRO >= 1))
++#if (LIBAVCODEC_VERSION_MAJOR > 53) || ((LIBAVCODEC_VERSION_MAJOR == 53) && (LIBAVCODEC_VERSION_MINOR > 1)) || ((LIBAVCODEC_VERSION_MAJOR == 53) && (LIBAVCODEC_VERSION_MINOR == 1) && (LIBAVCODEC_VERSION_MICRO >= 1)) || ((LIBAVCODEC_VERSION_MAJOR == 52) && (LIBAVCODEC_VERSION_MINOR >= 122))
+ #define FFMPEG_HAVE_DEFAULT_VAL_UNION 1
+ #endif
+ 

Modified: blender.install
===================================================================
--- blender.install	2011-06-23 21:45:03 UTC (rev 128409)
+++ blender.install	2011-06-23 22:00:17 UTC (rev 128410)
@@ -1,14 +1,4 @@
 post_install() {
-  cat << EOF
-
-NOTE
-----
-
-We also ship the plugins, but most of these features can be accessed only
-from the users home directory. Therefore, you want to copy everything from
-/usr/share/blender/2.57 to ~/.blender (some are hidden files!). 
-
-EOF
   update-desktop-database -q
   update-mime-database usr/share/mime &> /dev/null
   xdg-icon-resource forceupdate --theme hicolor &> /dev/null




More information about the arch-commits mailing list