wok view blender/receipt @ rev 24190

updated perl-crypt-cbc (2.33 -> 3.04)
author Hans-G?nter Theisgen
date Fri Dec 31 14:34:21 2021 +0100 (2021-12-31)
parents b0748d2b0d89
children ada218ff1012
line source
1 # SliTaz package receipt.
3 PACKAGE="blender"
4 VERSION="2.81a"
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-graph-dev 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 py3k-numpy tiff-dev xorg-libXmu yasm"
27 current_version()
28 {
29 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
30 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 sed -i 's|uname -m|echo i486|' GNUmakefile
37 sed -i -e 's|\(PyModule_GetFilename\)(mod|_PyUnicode_AsString(\1Object(mod)|' \
38 -e 's|(.*_Py_atomic_load_relaxed(.*t)|(PyThreadState_GetDict(|' \
39 $src/source/blender/python/generic/py_capi_utils.c
40 # sed -i 's|char. chars = _PyUnicode_AsString|const &|' \
41 # $src/source/gameengine/Ketsji/KX_FontObject.cpp
42 mkdir -p $WOK/$PACKAGE/source/build
43 cd $WOK/$PACKAGE/source/build
44 PY3K_VER=$(ls -d /usr/include/python3.?m | sed 's|.*python\(.*\)m|\1|')
46 export CC=gcc-83
47 export CXX=g++-83
49 cmake $src \
50 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
51 -DCMAKE_BUILD_TYPE:STRING=Release \
52 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
53 -DWITH_PYTHON_INSTALL:BOOL=OFF \
54 -DWITH_OPENCOLLADA:BOOL=OFF \
55 -DWITH_GAMEENGINE:BOOL=ON \
56 -DWITH_CYCLES:BOOL=OFF \
57 -DWITH_PLAYER:BOOL=ON \
58 -DPYTHON_VERSION:STRING=$PY3K_VER \
59 -DPYTHON_LIBPATH:STRING=/usr/lib \
60 -DPYTHON_LIBRARY:STRING=python${PY3K_VER}m \
61 -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python${PY3K_VER}m
62 # build
63 make $MAKEFLAGS &&
64 make DESTDIR=$DESTDIR install &&
65 python3 -m compileall "$DESTDIR/usr/share/blender"
66 }
68 # Rules to gen a SliTaz package suitable for Tazpkg.
69 genpkg_rules()
70 {
71 LOCALE="fr de pt_BR es zh_CN"
73 mkdir -p $fs/usr/bin
74 mkdir -p $fs/usr/share/pixmaps
76 cp -a $install/usr/share/blender $fs/usr/share
77 cp -a $install/usr/bin $fs/usr
78 cp -a $install/usr/share/applications $fs/usr/share
79 cp -a $install/usr/share/icons $fs/usr/share
80 mv -f $fs/usr/bin/blender $fs/usr/bin/blender-bin
81 cp -a $stuff/blender $fs/usr/bin
82 }