wok-6.x view blender/receipt @ rev 20387
Add tcl2c
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 23 11:56:52 2018 +0200 (2018-06-23) |
parents | 3705d68ed8f3 |
children | 44a17a1f5aaf |
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 glew libboost-filesystem libboost-regex \
18 libboost-thread libboost-date-time libboost-dev"
19 BUILD_DEPENDS="cmake xorg-libXmu ilmbase-dev yasm pkg-config coreutils-file-format \
20 gettext mesa-dev freeglut-dev librsvg-dev openexr-dev tiff-dev openal-dev \
21 libglu-mesa libsdl-dev py3k-dev libsamplerate-dev ffmpeg-dev lcms-dev openjpeg-dev \
22 libboost-dev libboost-math-dev libboost-tr1-dev libboost-filesystem-dev \
23 libboost-regex-dev libboost-thread-dev \
24 libglu-mesa-dev glew-dev"
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's|uname -m|echo i486|' GNUmakefile
30 mkdir -p $WOK/$PACKAGE/source/build
31 cd $WOK/$PACKAGE/source/build
32 cmake $src \
33 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
34 -DCMAKE_BUILD_TYPE:STRING=Release \
35 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
36 -DWITH_PYTHON_INSTALL:BOOL=OFF \
37 -DWITH_OPENCOLLADA:BOOL=OFF \
38 -DWITH_GAMEENGINE:BOOL=ON \
39 -DWITH_CYCLES:BOOL=OFF \
40 -DWITH_PLAYER:BOOL=ON \
41 -DPYTHON_VERSION:STRING=3.4 \
42 -DPYTHON_LIBPATH:STRING=/usr/lib \
43 -DPYTHON_LIBRARY:STRING=python3.4m \
44 -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python3.4m
45 # build
46 make $MAKEFLAGS
47 make DESTDIR=$DESTDIR install
48 python3 -m compileall "$DESTDIR/usr/share/blender"
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 LOCALE="fr de pt_BR es zh_CN"
55 mkdir -p $fs/usr/bin $fs/usr/share/pixmaps
56 cp -a $install/usr/share/blender $fs/usr/share
57 cp -a $install/usr/bin $fs/usr
58 cp -a $install/usr/share/applications $fs/usr/share
59 cp -a $install/usr/share/icons $fs/usr/share
60 mv -f $fs/usr/bin/blender $fs/usr/bin/blender-bin
61 cp -a $stuff/blender $fs/usr/bin
62 }