wok view blender/receipt @ rev 23970
Up tazlito (528)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 04 13:29:03 2020 +0000 (2020-10-04) |
parents | 60c686000453 |
children | a3c45ab9082e |
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 # 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 }