wok-next view blender/receipt @ rev 12618
Up mtpfs (1.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 29 11:43:08 2012 +0200 (2012-04-29) |
parents | 00411449d006 |
children | 2179403b8f51 |
line source
1 # SliTaz package receipt.
3 PACKAGE="blender"
4 VERSION="2.57b"
5 CATEGORY="graphics"
6 SHORT_DESC="3D content creation suite."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 SUGGESTED="nvidia"
10 WEB_SITE="http://www.blender.org/"
11 WGET_URL="http://download.blender.org/source/$TARBALL"
12 TAGS="3D creator editor"
14 DEPENDS="py3k mesa libsdl libsamplerate libdrm jpeg libglu-mesa openjpeg \
15 ffmpeg lcms openexr desktop-file-utils libgomp tiff libpng freeglut \
16 freetype openal zlib librsvg"
17 BUILD_DEPENDS="cmake xorg-libXmu ilmbase-dev yasm pkg-config coreutils-file-format \
18 gettext mesa-dev freeglut-dev librsvg-dev openexr-dev tiff-dev openal-dev \
19 libglu-mesa libsdl-dev py3k-dev libsamplerate-dev ffmpeg-dev lcms-dev openjpeg-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
26 mkdir -p $WOK/$PACKAGE/build
27 cd $WOK/$PACKAGE/build
28 cmake $src \
29 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
30 -DCMAKE_BUILD_TYPE:STRING=Release \
31 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
32 -DWITH_PYTHON_INSTALL:BOOL=OFF \
33 -DWITH_OPENCOLLADA:BOOL=OFF \
34 -DWITH_GAMEENGINE:BOOL=ON \
35 -DWITH_PLAYER:BOOL=ON \
36 -DPYTHON_VERSION:STRING=3.2 \
37 -DPYTHON_LIBPATH:STRING=/usr/lib \
38 -DPYTHON_LIBRARY:STRING=python3.2m \
39 -DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python3.2m
40 # build
41 make $MAKEFLAGS -j 1
42 make DESTDIR=$DESTDIR install
43 python3 -m compileall "$DESTDIR/usr/share/blender"
44 [ -s $DESTDIR/usr/bin/blender ]
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 LOCALE="fr de pt_BR es zh_CN"
51 mkdir -p $fs/usr/bin $fs/usr/share/pixmaps
52 cp -a $_pkg/usr $fs
53 mv -f $fs/usr/bin/blender $fs/usr/bin/blender-bin
54 cp -a $stuff/blender $fs/usr/bin
55 }