wok-6.x annotate blender/receipt @ rev 15257

samba: remove some error triggers
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 24 09:45:53 2013 +0000 (2013-09-24)
parents f1e1b044c452
children 0df6a2200dae
rev   line source
pankso@4084 1 # SliTaz package receipt.
pankso@4084 2
pankso@4084 3 PACKAGE="blender"
slaxemulator@12790 4 VERSION="2.63a"
pankso@4084 5 CATEGORY="graphics"
pankso@4084 6 SHORT_DESC="3D content creation suite."
pankso@4084 7 MAINTAINER="pankso@slitaz.org"
pascal@15022 8 LICENSE="GPL"
slaxemulator@6619 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@5018 10 SUGGESTED="nvidia"
pankso@4084 11 WEB_SITE="http://www.blender.org/"
slaxemulator@6619 12 WGET_URL="http://download.blender.org/source/$TARBALL"
jozee@4932 13 TAGS="3D creator editor"
pankso@4084 14
slaxemulator@10251 15 DEPENDS="py3k mesa libsdl libsamplerate libdrm jpeg libglu-mesa openjpeg \
slaxemulator@10251 16 ffmpeg lcms openexr desktop-file-utils libgomp tiff libpng freeglut \
slaxemulator@10251 17 freetype openal zlib librsvg"
slaxemulator@10251 18 BUILD_DEPENDS="cmake xorg-libXmu ilmbase-dev yasm pkg-config coreutils-file-format \
pankso@9917 19 gettext mesa-dev freeglut-dev librsvg-dev openexr-dev tiff-dev openal-dev \
slaxemulator@12790 20 libglu-mesa libsdl-dev py3k-dev libsamplerate-dev ffmpeg-dev lcms-dev openjpeg-dev \
pascal@13795 21 libboost-dev libboost-math-dev libboost-tr1-dev libglu-mesa-dev"
pankso@9807 22
pankso@4084 23 # Rules to configure and make the package.
pankso@4084 24 compile_rules()
pankso@4084 25 {
pankso@4084 26 cd $src
slaxemulator@6619 27
slaxemulator@12790 28 mkdir -p $WOK/$PACKAGE/source/build
slaxemulator@12790 29 cd $WOK/$PACKAGE/source/build
slaxemulator@10251 30 cmake $src \
slaxemulator@10251 31 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
slaxemulator@10251 32 -DCMAKE_BUILD_TYPE:STRING=Release \
slaxemulator@10251 33 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
slaxemulator@10251 34 -DWITH_PYTHON_INSTALL:BOOL=OFF \
slaxemulator@10251 35 -DWITH_OPENCOLLADA:BOOL=OFF \
slaxemulator@10251 36 -DWITH_GAMEENGINE:BOOL=ON \
slaxemulator@10251 37 -DWITH_PLAYER:BOOL=ON \
slaxemulator@10251 38 -DPYTHON_VERSION:STRING=3.2 \
slaxemulator@10251 39 -DPYTHON_LIBPATH:STRING=/usr/lib \
slaxemulator@10251 40 -DPYTHON_LIBRARY:STRING=python3.2m \
slaxemulator@10251 41 -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python3.2m
slaxemulator@6619 42 # build
slaxemulator@10251 43 make $MAKEFLAGS -j 1
slaxemulator@10251 44 make DESTDIR=$DESTDIR install
slaxemulator@10251 45 python3 -m compileall "$DESTDIR/usr/share/blender"
slaxemulator@12790 46 cp -rf $src/release/plugins/* $src/source/blender/blenpluginapi
slaxemulator@12790 47 cd $src/source/blender/blenpluginapi
slaxemulator@12790 48 chmod 755 bmake
slaxemulator@12790 49 make
slaxemulator@12790 50 for i in sequence texture; do
slaxemulator@12790 51 mkdir -p $DESTDIR/usr/share/blender/${VERSION%[a-z]}/plugins/$i
slaxemulator@12790 52 cp -a $src/source/blender/blenpluginapi/$i/*.so \
slaxemulator@12790 53 $DESTDIR/usr/share/blender/${VERSION%[a-z]}/plugins/$i/
slaxemulator@12790 54 done
pankso@4084 55 }
pankso@4084 56
pankso@4084 57 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4084 58 genpkg_rules()
pankso@4084 59 {
pankso@4084 60 LOCALE="fr de pt_BR es zh_CN"
pankso@4084 61 mkdir -p $fs/usr/bin $fs/usr/share/pixmaps
slaxemulator@12790 62 cp -a $install/usr/share/blender $fs/usr/share
slaxemulator@12790 63 cp -a $install/usr/bin $fs/usr
slaxemulator@12790 64 cp -a $install/usr/share/applications $fs/usr/share
slaxemulator@12790 65 cp -a $install/usr/share/icons $fs/usr/share
slaxemulator@10251 66 mv -f $fs/usr/bin/blender $fs/usr/bin/blender-bin
slaxemulator@10251 67 cp -a $stuff/blender $fs/usr/bin
pankso@4084 68 }