wok-current view blender/receipt @ rev 22382

blender: try again with updated openexr
author Hans-G?nter Theisgen
date Thu Nov 28 09:14:24 2019 +0100 (2019-11-28)
parents a78610b2eb47
children f6b6541be859
line source
1 # SliTaz package receipt.
3 PACKAGE="blender"
4 VERSION="2.75a"
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.gz"
13 WGET_URL="http://download.blender.org/source/$TARBALL"
15 SUGGESTED="nvidia"
16 DEPENDS="py3k mesa libsdl libsamplerate libdrm jpeg libglu-mesa openjpeg \
17 ffmpeg lcms openexr desktop-file-utils libgomp tiff libpng freeglut \
18 freetype openal zlib librsvg glew libboost-filesystem libboost-regex \
19 libboost-thread libboost-date-time libboost-dev"
20 BUILD_DEPENDS="cmake xorg-libXmu ilmbase-dev yasm pkg-config coreutils-file-format \
21 gettext mesa-dev freeglut-dev librsvg-dev openexr-dev tiff-dev openal-dev \
22 libglu-mesa libsdl-dev py3k-dev libsamplerate-dev ffmpeg-dev lcms-dev openjpeg-dev \
23 libboost-dev libboost-math-dev libboost-tr1-dev libboost-filesystem-dev \
24 libboost-regex-dev libboost-thread-dev \
25 libglu-mesa-dev glew-dev"
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 }