wok-current annotate 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
rev   line source
pankso@4084 1 # SliTaz package receipt.
pankso@4084 2
pankso@4084 3 PACKAGE="blender"
pascal@18207 4 VERSION="2.75a"
pankso@4084 5 CATEGORY="graphics"
Hans-G?nter@22382 6 TAGS="3D creator editor"
pankso@4084 7 SHORT_DESC="3D content creation suite."
pankso@4084 8 MAINTAINER="pankso@slitaz.org"
pascal@15022 9 LICENSE="GPL"
Hans-G?nter@22382 10 WEB_SITE="https://www.blender.org/"
Hans-G?nter@22382 11
slaxemulator@6619 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22382 13 WGET_URL="http://download.blender.org/source/$TARBALL"
Hans-G?nter@22382 14
jozee@5018 15 SUGGESTED="nvidia"
slaxemulator@10251 16 DEPENDS="py3k mesa libsdl libsamplerate libdrm jpeg libglu-mesa openjpeg \
Hans-G?nter@22382 17 ffmpeg lcms openexr desktop-file-utils libgomp tiff libpng freeglut \
Hans-G?nter@22382 18 freetype openal zlib librsvg glew libboost-filesystem libboost-regex \
Hans-G?nter@22382 19 libboost-thread libboost-date-time libboost-dev"
slaxemulator@10251 20 BUILD_DEPENDS="cmake xorg-libXmu ilmbase-dev yasm pkg-config coreutils-file-format \
Hans-G?nter@22382 21 gettext mesa-dev freeglut-dev librsvg-dev openexr-dev tiff-dev openal-dev \
Hans-G?nter@22382 22 libglu-mesa libsdl-dev py3k-dev libsamplerate-dev ffmpeg-dev lcms-dev openjpeg-dev \
Hans-G?nter@22382 23 libboost-dev libboost-math-dev libboost-tr1-dev libboost-filesystem-dev \
Hans-G?nter@22382 24 libboost-regex-dev libboost-thread-dev \
Hans-G?nter@22382 25 libglu-mesa-dev glew-dev"
pankso@9807 26
pankso@4084 27 # Rules to configure and make the package.
pankso@4084 28 compile_rules()
pankso@4084 29 {
pascal@20213 30 sed -i 's|uname -m|echo i486|' GNUmakefile
pascal@20531 31 sed -i -e 's|\(PyModule_GetFilename\)(mod|_PyUnicode_AsString(\1Object(mod)|' \
pascal@20531 32 -e 's|(.*_Py_atomic_load_relaxed(.*t)|(PyThreadState_GetDict(|' \
pascal@20531 33 $src/source/blender/python/generic/py_capi_utils.c
pascal@20531 34 sed -i 's|char. chars = _PyUnicode_AsString|const &|' \
pascal@20531 35 $src/source/gameengine/Ketsji/KX_FontObject.cpp
slaxemulator@12790 36 mkdir -p $WOK/$PACKAGE/source/build
slaxemulator@12790 37 cd $WOK/$PACKAGE/source/build
pascal@20531 38 PY3K_VER=$(ls -d /usr/include/python3.?m | sed 's|.*python\(.*\)m|\1|')
Hans-G?nter@22382 39 cmake $src \
Hans-G?nter@22382 40 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
Hans-G?nter@22382 41 -DCMAKE_BUILD_TYPE:STRING=Release \
Hans-G?nter@22382 42 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
Hans-G?nter@22382 43 -DWITH_PYTHON_INSTALL:BOOL=OFF \
Hans-G?nter@22382 44 -DWITH_OPENCOLLADA:BOOL=OFF \
Hans-G?nter@22382 45 -DWITH_GAMEENGINE:BOOL=ON \
Hans-G?nter@22382 46 -DWITH_CYCLES:BOOL=OFF \
Hans-G?nter@22382 47 -DWITH_PLAYER:BOOL=ON \
Hans-G?nter@22382 48 -DPYTHON_VERSION:STRING=$PY3K_VER \
Hans-G?nter@22382 49 -DPYTHON_LIBPATH:STRING=/usr/lib \
Hans-G?nter@22382 50 -DPYTHON_LIBRARY:STRING=python${PY3K_VER}m \
pascal@20531 51 -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python${PY3K_VER}m
slaxemulator@6619 52 # build
pascal@20531 53 make $MAKEFLAGS &&
pascal@20531 54 make DESTDIR=$DESTDIR install &&
slaxemulator@10251 55 python3 -m compileall "$DESTDIR/usr/share/blender"
pankso@4084 56 }
pankso@4084 57
pankso@4084 58 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4084 59 genpkg_rules()
pankso@4084 60 {
pankso@4084 61 LOCALE="fr de pt_BR es zh_CN"
Hans-G?nter@22382 62
Hans-G?nter@22382 63 mkdir -p $fs/usr/bin
Hans-G?nter@22382 64 mkdir -p $fs/usr/share/pixmaps
Hans-G?nter@22382 65
Hans-G?nter@22382 66 cp -a $install/usr/share/blender $fs/usr/share
Hans-G?nter@22382 67 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22382 68 cp -a $install/usr/share/applications $fs/usr/share
Hans-G?nter@22382 69 cp -a $install/usr/share/icons $fs/usr/share
Hans-G?nter@22382 70 mv -f $fs/usr/bin/blender $fs/usr/bin/blender-bin
Hans-G?nter@22382 71 cp -a $stuff/blender $fs/usr/bin
pankso@4084 72 }