wok annotate blender/receipt @ rev 24987
grub: add gpt support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 12 07:08:39 2022 +0000 (2022-05-12) |
parents | 365126f272a6 |
children | 73f36875e5a7 |
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@24727 | 9 LICENSE="GPL2 GPL3" |
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@24378 | 18 libboost-locale libboost-regex libboost-thread libdrm libglu-mesa |
Hans-G?nter@24378 | 19 libgomp libpng librsvg libsamplerate libsdl mesa openal openexr |
Hans-G?nter@24378 | 20 openjpeg py3k tiff zlib" |
Hans-G?nter@22384 | 21 BUILD_DEPENDS="cmake coreutils-file-format ffmpeg-dev freeglut-dev gcc83 gettext |
Hans-G?nter@22383 | 22 glew-dev ilmbase-dev lcms-dev libboost-dev libboost-filesystem-dev |
Hans-G?nter@24378 | 23 libboost-graph-dev libboost-locale-dev libboost-math-dev libboost-regex-dev |
Hans-G?nter@24378 | 24 libboost-thread-dev libboost-tr1-dev libglu-mesa-dev librsvg-dev |
Hans-G?nter@24378 | 25 libsamplerate-dev libsdl-dev mesa-dev openal-dev openexr-dev openjpeg-dev |
Hans-G?nter@24378 | 26 pkg-config py3k-dev py3k-numpy tiff-dev xorg-libXmu yasm" |
pankso@9807 | 27 |
pascal@24083 | 28 current_version() |
pascal@24083 | 29 { |
pascal@24083 | 30 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24083 | 31 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24083 | 32 } |
pascal@24083 | 33 |
pankso@4084 | 34 # Rules to configure and make the package. |
pankso@4084 | 35 compile_rules() |
pankso@4084 | 36 { |
pascal@20213 | 37 sed -i 's|uname -m|echo i486|' GNUmakefile |
pascal@20531 | 38 sed -i -e 's|\(PyModule_GetFilename\)(mod|_PyUnicode_AsString(\1Object(mod)|' \ |
pascal@20531 | 39 -e 's|(.*_Py_atomic_load_relaxed(.*t)|(PyThreadState_GetDict(|' \ |
pascal@20531 | 40 $src/source/blender/python/generic/py_capi_utils.c |
Hans-G?nter@22548 | 41 # sed -i 's|char. chars = _PyUnicode_AsString|const &|' \ |
Hans-G?nter@22548 | 42 # $src/source/gameengine/Ketsji/KX_FontObject.cpp |
Hans-G?nter@24380 | 43 |
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@24380 | 49 mkdir _build |
Hans-G?nter@24380 | 50 cd _build |
Hans-G?nter@24380 | 51 cmake $src \ |
Hans-G?nter@24380 | 52 -D CMAKE_INSTALL_PREFIX:PATH=/usr \ |
Hans-G?nter@24380 | 53 -D CMAKE_BUILD_TYPE:STRING=Release \ |
Hans-G?nter@24380 | 54 -D WITH_INSTALL_PORTABLE:BOOL=OFF \ |
Hans-G?nter@24380 | 55 -D WITH_PYTHON_INSTALL:BOOL=OFF \ |
Hans-G?nter@24380 | 56 -D WITH_OPENCOLLADA:BOOL=OFF \ |
Hans-G?nter@24380 | 57 -D WITH_GAMEENGINE:BOOL=ON \ |
Hans-G?nter@24380 | 58 -D WITH_CYCLES:BOOL=OFF \ |
Hans-G?nter@24380 | 59 -D WITH_PLAYER:BOOL=ON \ |
Hans-G?nter@24375 | 60 -D WITH_TBB:BOOL=OFF \ |
Hans-G?nter@24380 | 61 -D PYTHON_VERSION:STRING=$PY3K_VER \ |
Hans-G?nter@24380 | 62 -D PYTHON_LIBPATH:STRING=/usr/lib \ |
Hans-G?nter@24380 | 63 -D PYTHON_LIBRARY:STRING=python${PY3K_VER}m \ |
Hans-G?nter@24380 | 64 -D PYTHON_INCLUDE_DIRS:STRING=/usr/include/python${PY3K_VER}m && |
Hans-G?nter@24380 | 65 |
slaxemulator@6619 | 66 # build |
pascal@20531 | 67 make $MAKEFLAGS && |
Hans-G?nter@24380 | 68 make install DESTDIR=$DESTDIR && |
slaxemulator@10251 | 69 python3 -m compileall "$DESTDIR/usr/share/blender" |
pankso@4084 | 70 } |
pankso@4084 | 71 |
pankso@4084 | 72 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4084 | 73 genpkg_rules() |
pankso@4084 | 74 { |
Hans-G?nter@24380 | 75 # LOCALE="fr de pt_BR es zh_CN" |
Hans-G?nter@22382 | 76 |
Hans-G?nter@22382 | 77 mkdir -p $fs/usr/bin |
Hans-G?nter@22382 | 78 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@22382 | 79 |
Hans-G?nter@22382 | 80 cp -a $install/usr/share/blender $fs/usr/share |
Hans-G?nter@22382 | 81 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22382 | 82 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@22382 | 83 cp -a $install/usr/share/icons $fs/usr/share |
Hans-G?nter@22382 | 84 mv -f $fs/usr/bin/blender $fs/usr/bin/blender-bin |
Hans-G?nter@22382 | 85 cp -a $stuff/blender $fs/usr/bin |
pankso@4084 | 86 } |