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