wok view blender/receipt @ rev 20212

Force host arch to i486
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 24 12:51:10 2018 +0100 (2018-02-24)
parents 0a865d294d62
children 77e92b628f39
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 mkdir -p $WOK/$PACKAGE/source/build
30 cd $WOK/$PACKAGE/source/build
31 cmake $src \
32 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
33 -DCMAKE_BUILD_TYPE:STRING=Release \
34 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
35 -DWITH_PYTHON_INSTALL:BOOL=OFF \
36 -DWITH_OPENCOLLADA:BOOL=OFF \
37 -DWITH_GAMEENGINE:BOOL=ON \
38 -DWITH_CYCLES:BOOL=OFF \
39 -DWITH_PLAYER:BOOL=ON \
40 -DPYTHON_VERSION:STRING=3.4 \
41 -DPYTHON_LIBPATH:STRING=/usr/lib \
42 -DPYTHON_LIBRARY:STRING=python3.4m \
43 -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python3.4m
44 # build
45 sed -i 's|uname -m|echo i486|' GNUmakefile
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 }