wok view blender/receipt @ rev 9916

blender: fix bdeps (again)
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 17 20:51:16 2011 +0200 (2011-05-17)
parents 1d4a4ba47ea1
children b653620e2d77
line source
1 # SliTaz package receipt.
3 PACKAGE="blender"
4 VERSION="2.49b"
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="python mesa libsdl libdrm jpeg libglu-mesa openexr desktop-file-utils \
15 libgomp tiff libpng freeglut freetype openal zlib librsvg"
16 BUILD_DEPENDS="xorg-libXmu ilmbase-dev yasm pkg-config coreutils-file-format \
17 gettext mesa-dev freeglut-dev librsvg-dev openexr-dev tiff-dev openal-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 rm -f user-def.mk
24 # disable static binaries and enable blenderplayer binary
25 sed -i "s|^.*\(BINTARGETS += blenderstatic\)| #\1|g" source/Makefile
26 sed -i "s|^#\(.*BINTARGETS += blenderplayer\)|\1|g" source/Makefile
27 # link freetype and openal dynamically
28 sed -i 's|LOPTS)|LOPTS) -lfreetype -lopenal|g' source/Makefile
29 sed -i 's|COMLIB.*libfreetype\.a|#\0|g' source/Makefile
30 sed -i 's|NAN_SND_LIBS.*libopenal\.a|#\0|g' source/Makefile
31 export NAN_PYTHON_VERSION=2.7
32 export INTERNATIONAL=true
33 export WITH_FREETYPE2=true
34 export NAN_FREETYPE=/usr
35 export WITH_ICONV=true
37 export NAN_NO_PLUGIN=true
39 export NAN_OPENAL=/usr
40 export NAN_FMOD=/usr
41 export NAN_JPEG=/usr
42 export NAN_PNG=/usr
43 export WITH_OPENEXR=true
44 export NAN_OPENEXR=/usr
45 export NAN_ODE=/usr
46 export NAN_OPENEXR_LIBS=$(pkg-config --libs-only-l OpenEXR)
48 export NAN_SDL=/usr
49 export NAN_ZLIB=/usr
50 export NAN_MESA=/usr
52 export NAN_USE_BULLET=true
53 export NAN_USE_FFMPEG_CONFIG=true
54 export WITH_BF_VERSE=true
55 export WITH_VERSE=true
56 export WITH_BF_OPENMP=true
57 # there is an issue with a file
58 export NAN_DEBUG=-O
60 # build
61 make -j 1
63 }
65 # Rules to gen a SliTaz package suitable for Tazpkg.
66 genpkg_rules()
67 {
68 LOCALE="fr de pt_BR es zh_CN"
69 mkdir -p $fs/usr/bin $fs/usr/share/pixmaps
70 cp -a $src/obj/linux-glibc2*/bin/blender $fs/usr/bin/blender-bin
71 cp -a $src/obj/linux-glibc2*/bin/blenderplayer $fs/usr/bin
72 cp $stuff/blender $fs/usr/bin
73 cp -a $src/bin/.blender $fs/usr/share/blender
74 }