wok-6.x view blender/receipt @ rev 18296
Up linux (3.2.71)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 17 11:03:13 2015 +0200 (2015-08-17) |
parents | 31a706dd3e01 |
children | b3adb193646d |
line source
1 # SliTaz package receipt.
3 PACKAGE="blender"
4 VERSION="2.75a"
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 libboost-filesystem-dev \
22 libglu-mesa-dev glew-dev"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
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_CYCLES:BOOL=OFF \
37 -DWITH_PLAYER:BOOL=ON \
38 -DPYTHON_VERSION:STRING=3.4 \
39 -DPYTHON_LIBPATH:STRING=/usr/lib \
40 -DPYTHON_LIBRARY:STRING=python3.4m \
41 -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python3.4m
42 # build
43 make $MAKEFLAGS
44 make DESTDIR=$DESTDIR install
45 python3 -m compileall "$DESTDIR/usr/share/blender"
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 LOCALE="fr de pt_BR es zh_CN"
52 mkdir -p $fs/usr/bin $fs/usr/share/pixmaps
53 cp -a $install/usr/share/blender $fs/usr/share
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/share/applications $fs/usr/share
56 cp -a $install/usr/share/icons $fs/usr/share
57 mv -f $fs/usr/bin/blender $fs/usr/bin/blender-bin
58 cp -a $stuff/blender $fs/usr/bin
59 }