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