wok-current view blender/receipt @ rev 22383
updated blender (2.75a -> 2.81)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Nov 28 09:46:11 2019 +0100 (2019-11-28) |
parents | c750cd3d2112 |
children | 04ff2c76b979 |
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 glew jpeg lcms
17 libboost-date-time libboost-dev libboost-filesystem libboost-regex
18 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 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|')
39 cmake $src \
40 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
41 -DCMAKE_BUILD_TYPE:STRING=Release \
42 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
43 -DWITH_PYTHON_INSTALL:BOOL=OFF \
44 -DWITH_OPENCOLLADA:BOOL=OFF \
45 -DWITH_GAMEENGINE:BOOL=ON \
46 -DWITH_CYCLES:BOOL=OFF \
47 -DWITH_PLAYER:BOOL=ON \
48 -DPYTHON_VERSION:STRING=$PY3K_VER \
49 -DPYTHON_LIBPATH:STRING=/usr/lib \
50 -DPYTHON_LIBRARY:STRING=python${PY3K_VER}m \
51 -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python${PY3K_VER}m
52 # build
53 make $MAKEFLAGS &&
54 make DESTDIR=$DESTDIR install &&
55 python3 -m compileall "$DESTDIR/usr/share/blender"
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 LOCALE="fr de pt_BR es zh_CN"
63 mkdir -p $fs/usr/bin
64 mkdir -p $fs/usr/share/pixmaps
66 cp -a $install/usr/share/blender $fs/usr/share
67 cp -a $install/usr/bin $fs/usr
68 cp -a $install/usr/share/applications $fs/usr/share
69 cp -a $install/usr/share/icons $fs/usr/share
70 mv -f $fs/usr/bin/blender $fs/usr/bin/blender-bin
71 cp -a $stuff/blender $fs/usr/bin
72 }