wok annotate blender/receipt @ rev 23611
updated re2c (1.2.1 -> 1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 14 06:45:07 2020 +0100 (2020-04-14) |
parents | 60c686000453 |
children | a3c45ab9082e |
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 |
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 |
Hans-G?nter@22548 | 34 # sed -i 's|char. chars = _PyUnicode_AsString|const &|' \ |
Hans-G?nter@22548 | 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@22384 | 39 |
Hans-G?nter@22384 | 40 export CC=gcc-83 |
Hans-G?nter@22384 | 41 export CXX=g++-83 |
Hans-G?nter@22384 | 42 |
Hans-G?nter@22382 | 43 cmake $src \ |
Hans-G?nter@22382 | 44 -DCMAKE_INSTALL_PREFIX:PATH=/usr \ |
Hans-G?nter@22382 | 45 -DCMAKE_BUILD_TYPE:STRING=Release \ |
Hans-G?nter@22382 | 46 -DWITH_INSTALL_PORTABLE:BOOL=OFF \ |
Hans-G?nter@22382 | 47 -DWITH_PYTHON_INSTALL:BOOL=OFF \ |
Hans-G?nter@22382 | 48 -DWITH_OPENCOLLADA:BOOL=OFF \ |
Hans-G?nter@22382 | 49 -DWITH_GAMEENGINE:BOOL=ON \ |
Hans-G?nter@22382 | 50 -DWITH_CYCLES:BOOL=OFF \ |
Hans-G?nter@22382 | 51 -DWITH_PLAYER:BOOL=ON \ |
Hans-G?nter@22382 | 52 -DPYTHON_VERSION:STRING=$PY3K_VER \ |
Hans-G?nter@22382 | 53 -DPYTHON_LIBPATH:STRING=/usr/lib \ |
Hans-G?nter@22382 | 54 -DPYTHON_LIBRARY:STRING=python${PY3K_VER}m \ |
pascal@20531 | 55 -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python${PY3K_VER}m |
slaxemulator@6619 | 56 # build |
pascal@20531 | 57 make $MAKEFLAGS && |
pascal@20531 | 58 make DESTDIR=$DESTDIR install && |
slaxemulator@10251 | 59 python3 -m compileall "$DESTDIR/usr/share/blender" |
pankso@4084 | 60 } |
pankso@4084 | 61 |
pankso@4084 | 62 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4084 | 63 genpkg_rules() |
pankso@4084 | 64 { |
pankso@4084 | 65 LOCALE="fr de pt_BR es zh_CN" |
Hans-G?nter@22382 | 66 |
Hans-G?nter@22382 | 67 mkdir -p $fs/usr/bin |
Hans-G?nter@22382 | 68 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@22382 | 69 |
Hans-G?nter@22382 | 70 cp -a $install/usr/share/blender $fs/usr/share |
Hans-G?nter@22382 | 71 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22382 | 72 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@22382 | 73 cp -a $install/usr/share/icons $fs/usr/share |
Hans-G?nter@22382 | 74 mv -f $fs/usr/bin/blender $fs/usr/bin/blender-bin |
Hans-G?nter@22382 | 75 cp -a $stuff/blender $fs/usr/bin |
pankso@4084 | 76 } |