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