wok-6.x annotate blender/receipt @ rev 20122

Up get-palemoon (27.5.1)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sun Oct 15 01:12:55 2017 +0200 (2017-10-15)
parents b3adb193646d
children 3705d68ed8f3
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"
pankso@4084 11 WEB_SITE="http://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 {
slaxemulator@12790 29 mkdir -p $WOK/$PACKAGE/source/build
slaxemulator@12790 30 cd $WOK/$PACKAGE/source/build
slaxemulator@10251 31 cmake $src \
slaxemulator@10251 32 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
slaxemulator@10251 33 -DCMAKE_BUILD_TYPE:STRING=Release \
slaxemulator@10251 34 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
slaxemulator@10251 35 -DWITH_PYTHON_INSTALL:BOOL=OFF \
slaxemulator@10251 36 -DWITH_OPENCOLLADA:BOOL=OFF \
slaxemulator@10251 37 -DWITH_GAMEENGINE:BOOL=ON \
pascal@18207 38 -DWITH_CYCLES:BOOL=OFF \
slaxemulator@10251 39 -DWITH_PLAYER:BOOL=ON \
pascal@18207 40 -DPYTHON_VERSION:STRING=3.4 \
slaxemulator@10251 41 -DPYTHON_LIBPATH:STRING=/usr/lib \
pascal@18207 42 -DPYTHON_LIBRARY:STRING=python3.4m \
pascal@18207 43 -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python3.4m
slaxemulator@6619 44 # build
pascal@18207 45 make $MAKEFLAGS
slaxemulator@10251 46 make DESTDIR=$DESTDIR install
slaxemulator@10251 47 python3 -m compileall "$DESTDIR/usr/share/blender"
pankso@4084 48 }
pankso@4084 49
pankso@4084 50 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4084 51 genpkg_rules()
pankso@4084 52 {
pankso@4084 53 LOCALE="fr de pt_BR es zh_CN"
pankso@4084 54 mkdir -p $fs/usr/bin $fs/usr/share/pixmaps
slaxemulator@12790 55 cp -a $install/usr/share/blender $fs/usr/share
slaxemulator@12790 56 cp -a $install/usr/bin $fs/usr
slaxemulator@12790 57 cp -a $install/usr/share/applications $fs/usr/share
slaxemulator@12790 58 cp -a $install/usr/share/icons $fs/usr/share
slaxemulator@10251 59 mv -f $fs/usr/bin/blender $fs/usr/bin/blender-bin
slaxemulator@10251 60 cp -a $stuff/blender $fs/usr/bin
pankso@4084 61 }