wok-stable diff blender/receipt @ rev 10837
Add libmatchbox (Match may be used for kids or small device desktop)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Jun 08 23:20:29 2011 +0200 (2011-06-08) |
parents | 3e0baeb2702c |
children | fb10f9e7f73c |
line diff
1.1 --- a/blender/receipt Wed May 18 01:36:45 2011 +0200 1.2 +++ b/blender/receipt Wed Jun 08 23:20:29 2011 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="blender" 1.7 -VERSION="2.49b" 1.8 +VERSION="2.57b" 1.9 CATEGORY="graphics" 1.10 SHORT_DESC="3D content creation suite." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 @@ -11,56 +11,36 @@ 1.13 WGET_URL="http://download.blender.org/source/$TARBALL" 1.14 TAGS="3D creator editor" 1.15 1.16 -DEPENDS="python mesa libsdl libdrm jpeg libglu-mesa openexr desktop-file-utils \ 1.17 -libgomp tiff libpng freeglut freetype openal zlib librsvg" 1.18 -BUILD_DEPENDS="xorg-libXmu ilmbase-dev yasm pkg-config coreutils-file-format \ 1.19 +DEPENDS="py3k mesa libsdl libsamplerate libdrm jpeg libglu-mesa openjpeg \ 1.20 +ffmpeg lcms openexr desktop-file-utils libgomp tiff libpng freeglut \ 1.21 +freetype openal zlib librsvg" 1.22 +BUILD_DEPENDS="cmake xorg-libXmu ilmbase-dev yasm pkg-config coreutils-file-format \ 1.23 gettext mesa-dev freeglut-dev librsvg-dev openexr-dev tiff-dev openal-dev \ 1.24 -libglu-mesa libsdl-dev python-dev" 1.25 +libglu-mesa libsdl-dev py3k-dev libsamplerate-dev ffmpeg-dev lcms-dev openjpeg-dev" 1.26 1.27 # Rules to configure and make the package. 1.28 compile_rules() 1.29 { 1.30 cd $src 1.31 - rm -f user-def.mk 1.32 - # disable static binaries and enable blenderplayer binary 1.33 - sed -i "s|^.*\(BINTARGETS += blenderstatic\)| #\1|g" source/Makefile 1.34 - sed -i "s|^#\(.*BINTARGETS += blenderplayer\)|\1|g" source/Makefile 1.35 - # link freetype and openal dynamically 1.36 - sed -i 's|LOPTS)|LOPTS) -lfreetype -lopenal|g' source/Makefile 1.37 - sed -i 's|COMLIB.*libfreetype\.a|#\0|g' source/Makefile 1.38 - sed -i 's|NAN_SND_LIBS.*libopenal\.a|#\0|g' source/Makefile 1.39 - export NAN_PYTHON_VERSION=2.7 1.40 - export INTERNATIONAL=true 1.41 - export WITH_FREETYPE2=true 1.42 - export NAN_FREETYPE=/usr 1.43 - export WITH_ICONV=true 1.44 1.45 - export NAN_NO_PLUGIN=true 1.46 - 1.47 - export NAN_OPENAL=/usr 1.48 - export NAN_FMOD=/usr 1.49 - export NAN_JPEG=/usr 1.50 - export NAN_PNG=/usr 1.51 - export WITH_OPENEXR=true 1.52 - export NAN_OPENEXR=/usr 1.53 - export NAN_ODE=/usr 1.54 - export NAN_OPENEXR_LIBS=$(pkg-config --libs-only-l OpenEXR) 1.55 - 1.56 - export NAN_SDL=/usr 1.57 - export NAN_ZLIB=/usr 1.58 - export NAN_MESA=/usr 1.59 - 1.60 - export NAN_USE_BULLET=true 1.61 - export NAN_USE_FFMPEG_CONFIG=true 1.62 - export WITH_BF_VERSE=true 1.63 - export WITH_VERSE=true 1.64 - export WITH_BF_OPENMP=true 1.65 - # there is an issue with a file 1.66 - export NAN_DEBUG=-O 1.67 - 1.68 + mkdir -p $WOK/$PACKAGE/build 1.69 + cd $WOK/$PACKAGE/build 1.70 + cmake $src \ 1.71 + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ 1.72 + -DCMAKE_BUILD_TYPE:STRING=Release \ 1.73 + -DWITH_INSTALL_PORTABLE:BOOL=OFF \ 1.74 + -DWITH_PYTHON_INSTALL:BOOL=OFF \ 1.75 + -DWITH_OPENCOLLADA:BOOL=OFF \ 1.76 + -DWITH_GAMEENGINE:BOOL=ON \ 1.77 + -DWITH_PLAYER:BOOL=ON \ 1.78 + -DPYTHON_VERSION:STRING=3.2 \ 1.79 + -DPYTHON_LIBPATH:STRING=/usr/lib \ 1.80 + -DPYTHON_LIBRARY:STRING=python3.2m \ 1.81 + -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python3.2m 1.82 # build 1.83 - make -j 1 1.84 - 1.85 + make $MAKEFLAGS -j 1 1.86 + make DESTDIR=$DESTDIR install 1.87 + python3 -m compileall "$DESTDIR/usr/share/blender" 1.88 } 1.89 1.90 # Rules to gen a SliTaz package suitable for Tazpkg. 1.91 @@ -68,8 +48,7 @@ 1.92 { 1.93 LOCALE="fr de pt_BR es zh_CN" 1.94 mkdir -p $fs/usr/bin $fs/usr/share/pixmaps 1.95 - cp -a $src/obj/linux-glibc2*/bin/blender $fs/usr/bin/blender-bin 1.96 - cp -a $src/obj/linux-glibc2*/bin/blenderplayer $fs/usr/bin 1.97 - cp $stuff/blender $fs/usr/bin 1.98 - cp -a $src/bin/.blender $fs/usr/share/blender 1.99 + cp -a $_pkg/usr $fs 1.100 + mv -f $fs/usr/bin/blender $fs/usr/bin/blender-bin 1.101 + cp -a $stuff/blender $fs/usr/bin 1.102 }