wok-next view blender/receipt @ rev 17363

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