wok annotate blender/receipt @ rev 13222

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