wok-next view blender/receipt @ rev 21103
emacs: depends on emacs-common
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jan 03 11:21:15 2019 +0200 (2019-01-03) |
parents | 75632eca5b07 |
children | 29128929e4f9 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="blender"
4 VERSION="2.75a"
5 CATEGORY="graphics"
6 SHORT_DESC="3D content creation suite"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://www.blender.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://download.blender.org/source/$TARBALL"
14 BUILD_DEPENDS="cmake libxmu ilmbase-dev yasm coreutils-file-format \
15 gettext-dev mesa-dev freeglut-dev librsvg-dev openexr-dev tiff-dev openal-dev \
16 glu sdl-dev python3-dev libsamplerate-dev ffmpeg-dev lcms-dev openjpeg-dev \
17 boost-dev boost-math boost-math-tr1 boost-filesystem \
18 glu-dev glew-dev libxi-dev"
20 compile_rules() {
21 p3v=$(. $WOK/python3/receipt; echo ${VERSION%.*})
22 mkdir -p $WOK/$PACKAGE/source/build
23 cd $WOK/$PACKAGE/source/build
25 cmake $src \
26 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
27 -DCMAKE_BUILD_TYPE:STRING=Release \
28 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
29 -DWITH_PYTHON_INSTALL:BOOL=OFF \
30 -DWITH_OPENCOLLADA:BOOL=OFF \
31 -DWITH_GAMEENGINE:BOOL=ON \
32 -DWITH_CYCLES:BOOL=OFF \
33 -DWITH_PLAYER:BOOL=ON \
34 -DPYTHON_VERSION:STRING=$p3v \
35 -DPYTHON_LIBPATH:STRING=/usr/lib \
36 -DPYTHON_LIBRARY:STRING=python${p3v}m \
37 -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python${p3v}m &&
38 # build
39 make $MAKEFLAGS &&
40 make DESTDIR=$install install &&
41 python3 -m compileall "$install/usr/share/blender" || return 1
43 mv -f $install/usr/bin/blender $install/usr/bin/blender-bin
44 cp -a $stuff/blender $install/usr/bin/
45 }
47 genpkg_rules() {
48 LOCALE="fr de pt_BR es ru zh_CN"
49 copy @std
50 DEPENDS="python3 mesa sdl libsamplerate libdrm jpeg glu openjpeg \
51 ffmpeg lcms openexr desktop-file-utils libgomp libtiff libpng freeglut \
52 freetype openal zlib librsvg glew boost-filesystem boost-regex \
53 boost-thread boost-date-time boost-dev" #boost-dev?
54 SUGGESTED="nvidia"
55 TAGS="3D creator editor"
56 }