wok-6.x view blender/receipt @ rev 24378
blender: added build dependency libboost-locale-dev
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 06 09:51:43 2022 +0100 (2022-02-06) |
parents | ada218ff1012 |
children | 365126f272a6 |
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-locale libboost-regex libboost-thread libdrm libglu-mesa
19 libgomp libpng librsvg libsamplerate libsdl mesa openal openexr
20 openjpeg py3k tiff zlib"
21 BUILD_DEPENDS="cmake coreutils-file-format ffmpeg-dev freeglut-dev gcc83 gettext
22 glew-dev ilmbase-dev lcms-dev libboost-dev libboost-filesystem-dev
23 libboost-graph-dev libboost-locale-dev libboost-math-dev libboost-regex-dev
24 libboost-thread-dev libboost-tr1-dev libglu-mesa-dev librsvg-dev
25 libsamplerate-dev libsdl-dev mesa-dev openal-dev openexr-dev openjpeg-dev
26 pkg-config py3k-dev py3k-numpy tiff-dev xorg-libXmu yasm"
28 current_version()
29 {
30 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
31 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 sed -i 's|uname -m|echo i486|' GNUmakefile
38 sed -i -e 's|\(PyModule_GetFilename\)(mod|_PyUnicode_AsString(\1Object(mod)|' \
39 -e 's|(.*_Py_atomic_load_relaxed(.*t)|(PyThreadState_GetDict(|' \
40 $src/source/blender/python/generic/py_capi_utils.c
41 # sed -i 's|char. chars = _PyUnicode_AsString|const &|' \
42 # $src/source/gameengine/Ketsji/KX_FontObject.cpp
43 mkdir -p $WOK/$PACKAGE/source/build
44 cd $WOK/$PACKAGE/source/build
45 PY3K_VER=$(ls -d /usr/include/python3.?m | sed 's|.*python\(.*\)m|\1|')
47 export CC=gcc-83
48 export CXX=g++-83
50 cmake $src \
51 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
52 -DCMAKE_BUILD_TYPE:STRING=Release \
53 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
54 -DWITH_PYTHON_INSTALL:BOOL=OFF \
55 -DWITH_OPENCOLLADA:BOOL=OFF \
56 -DWITH_GAMEENGINE:BOOL=ON \
57 -DWITH_CYCLES:BOOL=OFF \
58 -DWITH_PLAYER:BOOL=ON \
59 -D WITH_TBB:BOOL=OFF \
60 -DPYTHON_VERSION:STRING=$PY3K_VER \
61 -DPYTHON_LIBPATH:STRING=/usr/lib \
62 -DPYTHON_LIBRARY:STRING=python${PY3K_VER}m \
63 -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python${PY3K_VER}m
64 # build
65 make $MAKEFLAGS &&
66 make DESTDIR=$DESTDIR install &&
67 python3 -m compileall "$DESTDIR/usr/share/blender"
68 }
70 # Rules to gen a SliTaz package suitable for Tazpkg.
71 genpkg_rules()
72 {
73 LOCALE="fr de pt_BR es zh_CN"
75 mkdir -p $fs/usr/bin
76 mkdir -p $fs/usr/share/pixmaps
78 cp -a $install/usr/share/blender $fs/usr/share
79 cp -a $install/usr/bin $fs/usr
80 cp -a $install/usr/share/applications $fs/usr/share
81 cp -a $install/usr/share/icons $fs/usr/share
82 mv -f $fs/usr/bin/blender $fs/usr/bin/blender-bin
83 cp -a $stuff/blender $fs/usr/bin
84 }