# HG changeset patch # User Christopher Rogers # Date 1305949900 0 # Node ID 00411449d006203798dd84b8d0b5cea0226d700a # Parent 672ea5080679002eea5ad857a1891a0d5a3aa489 Up: blender to 2.57b. diff -r 672ea5080679 -r 00411449d006 blender/receipt --- a/blender/receipt Sat May 21 02:40:09 2011 +0000 +++ b/blender/receipt Sat May 21 03:51:40 2011 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="blender" -VERSION="2.49b" +VERSION="2.57b" CATEGORY="graphics" SHORT_DESC="3D content creation suite." MAINTAINER="pankso@slitaz.org" @@ -11,56 +11,36 @@ WGET_URL="http://download.blender.org/source/$TARBALL" TAGS="3D creator editor" -DEPENDS="python mesa libsdl libdrm jpeg libglu-mesa openexr desktop-file-utils \ -libgomp tiff libpng freeglut freetype openal zlib librsvg" -BUILD_DEPENDS="xorg-libXmu ilmbase-dev yasm pkg-config coreutils-file-format \ +DEPENDS="py3k mesa libsdl libsamplerate libdrm jpeg libglu-mesa openjpeg \ +ffmpeg lcms openexr desktop-file-utils libgomp tiff libpng freeglut \ +freetype openal zlib librsvg" +BUILD_DEPENDS="cmake xorg-libXmu ilmbase-dev yasm pkg-config coreutils-file-format \ gettext mesa-dev freeglut-dev librsvg-dev openexr-dev tiff-dev openal-dev \ -libglu-mesa libsdl-dev python-dev" +libglu-mesa libsdl-dev py3k-dev libsamplerate-dev ffmpeg-dev lcms-dev openjpeg-dev" # Rules to configure and make the package. compile_rules() { cd $src - rm -f user-def.mk - # disable static binaries and enable blenderplayer binary - sed -i "s|^.*\(BINTARGETS += blenderstatic\)| #\1|g" source/Makefile - sed -i "s|^#\(.*BINTARGETS += blenderplayer\)|\1|g" source/Makefile - # link freetype and openal dynamically - sed -i 's|LOPTS)|LOPTS) -lfreetype -lopenal|g' source/Makefile - sed -i 's|COMLIB.*libfreetype\.a|#\0|g' source/Makefile - sed -i 's|NAN_SND_LIBS.*libopenal\.a|#\0|g' source/Makefile - export NAN_PYTHON_VERSION=2.7 - export INTERNATIONAL=true - export WITH_FREETYPE2=true - export NAN_FREETYPE=/usr - export WITH_ICONV=true - export NAN_NO_PLUGIN=true - - export NAN_OPENAL=/usr - export NAN_FMOD=/usr - export NAN_JPEG=/usr - export NAN_PNG=/usr - export WITH_OPENEXR=true - export NAN_OPENEXR=/usr - export NAN_ODE=/usr - export NAN_OPENEXR_LIBS=$(pkg-config --libs-only-l OpenEXR) - - export NAN_SDL=/usr - export NAN_ZLIB=/usr - export NAN_MESA=/usr - - export NAN_USE_BULLET=true - export NAN_USE_FFMPEG_CONFIG=true - export WITH_BF_VERSE=true - export WITH_VERSE=true - export WITH_BF_OPENMP=true - # there is an issue with a file - export NAN_DEBUG=-O - + mkdir -p $WOK/$PACKAGE/build + cd $WOK/$PACKAGE/build + cmake $src \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DCMAKE_BUILD_TYPE:STRING=Release \ + -DWITH_INSTALL_PORTABLE:BOOL=OFF \ + -DWITH_PYTHON_INSTALL:BOOL=OFF \ + -DWITH_OPENCOLLADA:BOOL=OFF \ + -DWITH_GAMEENGINE:BOOL=ON \ + -DWITH_PLAYER:BOOL=ON \ + -DPYTHON_VERSION:STRING=3.2 \ + -DPYTHON_LIBPATH:STRING=/usr/lib \ + -DPYTHON_LIBRARY:STRING=python3.2m \ + -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python3.2m # build - make -j 1 - + make $MAKEFLAGS -j 1 + make DESTDIR=$DESTDIR install + python3 -m compileall "$DESTDIR/usr/share/blender" } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -68,8 +48,7 @@ { LOCALE="fr de pt_BR es zh_CN" mkdir -p $fs/usr/bin $fs/usr/share/pixmaps - cp -a $src/obj/linux-glibc2*/bin/blender $fs/usr/bin/blender-bin - cp -a $src/obj/linux-glibc2*/bin/blenderplayer $fs/usr/bin - cp $stuff/blender $fs/usr/bin - cp -a $src/bin/.blender $fs/usr/share/blender + cp -a $_pkg/usr $fs + mv -f $fs/usr/bin/blender $fs/usr/bin/blender-bin + cp -a $stuff/blender $fs/usr/bin }