wok-current annotate blender/receipt @ rev 24353
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 03 12:55:23 2022 +0000 (2022-02-03) |
parents | b0748d2b0d89 |
children | ada218ff1012 |
rev | line source |
---|---|
pankso@4084 | 1 # SliTaz package receipt. |
pankso@4084 | 2 |
pankso@4084 | 3 PACKAGE="blender" |
Hans-G?nter@22548 | 4 VERSION="2.81a" |
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 |
Hans-G?nter@22383 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@22382 | 13 WGET_URL="http://download.blender.org/source/$TARBALL" |
Hans-G?nter@22382 | 14 |
jozee@5018 | 15 SUGGESTED="nvidia" |
Hans-G?nter@22384 | 16 DEPENDS="desktop-file-utils ffmpeg freeglut freetype gcc83-lib-base glew |
Hans-G?nter@22384 | 17 jpeg lcms libboost-date-time libboost-dev libboost-filesystem |
Hans-G?nter@22384 | 18 libboost-regex libboost-thread libdrm libglu-mesa libgomp libpng librsvg |
Hans-G?nter@22383 | 19 libsamplerate libsdl mesa openal openexr openjpeg py3k tiff zlib" |
Hans-G?nter@22384 | 20 BUILD_DEPENDS="cmake coreutils-file-format ffmpeg-dev freeglut-dev gcc83 gettext |
Hans-G?nter@22383 | 21 glew-dev ilmbase-dev lcms-dev libboost-dev libboost-filesystem-dev |
Hans-G?nter@22550 | 22 libboost-graph-dev libboost-math-dev libboost-regex-dev libboost-thread-dev |
Hans-G?nter@22383 | 23 libboost-tr1-dev libglu-mesa-dev librsvg-dev libsamplerate-dev |
Hans-G?nter@22383 | 24 libsdl-dev mesa-dev openal-dev openexr-dev openjpeg-dev pkg-config |
Hans-G?nter@22553 | 25 py3k-dev py3k-numpy tiff-dev xorg-libXmu yasm" |
pankso@9807 | 26 |
pascal@24083 | 27 current_version() |
pascal@24083 | 28 { |
pascal@24083 | 29 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24083 | 30 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24083 | 31 } |
pascal@24083 | 32 |
pankso@4084 | 33 # Rules to configure and make the package. |
pankso@4084 | 34 compile_rules() |
pankso@4084 | 35 { |
pascal@20213 | 36 sed -i 's|uname -m|echo i486|' GNUmakefile |
pascal@20531 | 37 sed -i -e 's|\(PyModule_GetFilename\)(mod|_PyUnicode_AsString(\1Object(mod)|' \ |
pascal@20531 | 38 -e 's|(.*_Py_atomic_load_relaxed(.*t)|(PyThreadState_GetDict(|' \ |
pascal@20531 | 39 $src/source/blender/python/generic/py_capi_utils.c |
Hans-G?nter@22548 | 40 # sed -i 's|char. chars = _PyUnicode_AsString|const &|' \ |
Hans-G?nter@22548 | 41 # $src/source/gameengine/Ketsji/KX_FontObject.cpp |
slaxemulator@12790 | 42 mkdir -p $WOK/$PACKAGE/source/build |
slaxemulator@12790 | 43 cd $WOK/$PACKAGE/source/build |
pascal@20531 | 44 PY3K_VER=$(ls -d /usr/include/python3.?m | sed 's|.*python\(.*\)m|\1|') |
Hans-G?nter@22384 | 45 |
Hans-G?nter@22384 | 46 export CC=gcc-83 |
Hans-G?nter@22384 | 47 export CXX=g++-83 |
Hans-G?nter@22384 | 48 |
Hans-G?nter@22382 | 49 cmake $src \ |
Hans-G?nter@22382 | 50 -DCMAKE_INSTALL_PREFIX:PATH=/usr \ |
Hans-G?nter@22382 | 51 -DCMAKE_BUILD_TYPE:STRING=Release \ |
Hans-G?nter@22382 | 52 -DWITH_INSTALL_PORTABLE:BOOL=OFF \ |
Hans-G?nter@22382 | 53 -DWITH_PYTHON_INSTALL:BOOL=OFF \ |
Hans-G?nter@22382 | 54 -DWITH_OPENCOLLADA:BOOL=OFF \ |
Hans-G?nter@22382 | 55 -DWITH_GAMEENGINE:BOOL=ON \ |
Hans-G?nter@22382 | 56 -DWITH_CYCLES:BOOL=OFF \ |
Hans-G?nter@22382 | 57 -DWITH_PLAYER:BOOL=ON \ |
Hans-G?nter@22382 | 58 -DPYTHON_VERSION:STRING=$PY3K_VER \ |
Hans-G?nter@22382 | 59 -DPYTHON_LIBPATH:STRING=/usr/lib \ |
Hans-G?nter@22382 | 60 -DPYTHON_LIBRARY:STRING=python${PY3K_VER}m \ |
pascal@20531 | 61 -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python${PY3K_VER}m |
slaxemulator@6619 | 62 # build |
pascal@20531 | 63 make $MAKEFLAGS && |
pascal@20531 | 64 make DESTDIR=$DESTDIR install && |
slaxemulator@10251 | 65 python3 -m compileall "$DESTDIR/usr/share/blender" |
pankso@4084 | 66 } |
pankso@4084 | 67 |
pankso@4084 | 68 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4084 | 69 genpkg_rules() |
pankso@4084 | 70 { |
pankso@4084 | 71 LOCALE="fr de pt_BR es zh_CN" |
Hans-G?nter@22382 | 72 |
Hans-G?nter@22382 | 73 mkdir -p $fs/usr/bin |
Hans-G?nter@22382 | 74 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@22382 | 75 |
Hans-G?nter@22382 | 76 cp -a $install/usr/share/blender $fs/usr/share |
Hans-G?nter@22382 | 77 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22382 | 78 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@22382 | 79 cp -a $install/usr/share/icons $fs/usr/share |
Hans-G?nter@22382 | 80 mv -f $fs/usr/bin/blender $fs/usr/bin/blender-bin |
Hans-G?nter@22382 | 81 cp -a $stuff/blender $fs/usr/bin |
pankso@4084 | 82 } |