wok-current view blender/receipt @ rev 22481

updated ansible (1.5.3 -> 2.9.2)
author Hans-G?nter Theisgen
date Mon Dec 30 14:41:15 2019 +0100 (2019-12-30)
parents f6b6541be859
children 3106f28dae98
line source
1 # SliTaz package receipt.
3 PACKAGE="blender"
4 VERSION="2.81"
5 CATEGORY="graphics"
6 TAGS="3D creator editor"
7 SHORT_DESC="3D content creation suite."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL"
10 WEB_SITE="https://www.blender.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="http://download.blender.org/source/$TARBALL"
15 SUGGESTED="nvidia"
16 DEPENDS="desktop-file-utils ffmpeg freeglut freetype gcc83-lib-base glew
17 jpeg lcms libboost-date-time libboost-dev libboost-filesystem
18 libboost-regex libboost-thread libdrm libglu-mesa libgomp libpng librsvg
19 libsamplerate libsdl mesa openal openexr openjpeg py3k tiff zlib"
20 BUILD_DEPENDS="cmake coreutils-file-format ffmpeg-dev freeglut-dev gcc83 gettext
21 glew-dev ilmbase-dev lcms-dev libboost-dev libboost-filesystem-dev
22 libboost-math-dev libboost-regex-dev libboost-thread-dev
23 libboost-tr1-dev libglu-mesa-dev librsvg-dev libsamplerate-dev
24 libsdl-dev mesa-dev openal-dev openexr-dev openjpeg-dev pkg-config
25 py3k-dev tiff-dev xorg-libXmu yasm"
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i 's|uname -m|echo i486|' GNUmakefile
31 sed -i -e 's|\(PyModule_GetFilename\)(mod|_PyUnicode_AsString(\1Object(mod)|' \
32 -e 's|(.*_Py_atomic_load_relaxed(.*t)|(PyThreadState_GetDict(|' \
33 $src/source/blender/python/generic/py_capi_utils.c
34 sed -i 's|char. chars = _PyUnicode_AsString|const &|' \
35 $src/source/gameengine/Ketsji/KX_FontObject.cpp
36 mkdir -p $WOK/$PACKAGE/source/build
37 cd $WOK/$PACKAGE/source/build
38 PY3K_VER=$(ls -d /usr/include/python3.?m | sed 's|.*python\(.*\)m|\1|')
40 export CC=gcc-83
41 export CXX=g++-83
43 cmake $src \
44 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
45 -DCMAKE_BUILD_TYPE:STRING=Release \
46 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
47 -DWITH_PYTHON_INSTALL:BOOL=OFF \
48 -DWITH_OPENCOLLADA:BOOL=OFF \
49 -DWITH_GAMEENGINE:BOOL=ON \
50 -DWITH_CYCLES:BOOL=OFF \
51 -DWITH_PLAYER:BOOL=ON \
52 -DPYTHON_VERSION:STRING=$PY3K_VER \
53 -DPYTHON_LIBPATH:STRING=/usr/lib \
54 -DPYTHON_LIBRARY:STRING=python${PY3K_VER}m \
55 -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python${PY3K_VER}m
56 # build
57 make $MAKEFLAGS &&
58 make DESTDIR=$DESTDIR install &&
59 python3 -m compileall "$DESTDIR/usr/share/blender"
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 LOCALE="fr de pt_BR es zh_CN"
67 mkdir -p $fs/usr/bin
68 mkdir -p $fs/usr/share/pixmaps
70 cp -a $install/usr/share/blender $fs/usr/share
71 cp -a $install/usr/bin $fs/usr
72 cp -a $install/usr/share/applications $fs/usr/share
73 cp -a $install/usr/share/icons $fs/usr/share
74 mv -f $fs/usr/bin/blender $fs/usr/bin/blender-bin
75 cp -a $stuff/blender $fs/usr/bin
76 }