wok-4.x view blender/receipt @ rev 10123

dbus: Add $CONFIGURE_ARGS.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 20 16:14:39 2011 +0000 (2011-05-20)
parents b653620e2d77
children 00411449d006
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 \
18 libglu-mesa libsdl-dev python-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 rm -f user-def.mk
25 # disable static binaries and enable blenderplayer binary
26 sed -i "s|^.*\(BINTARGETS += blenderstatic\)| #\1|g" source/Makefile
27 sed -i "s|^#\(.*BINTARGETS += blenderplayer\)|\1|g" source/Makefile
28 # link freetype and openal dynamically
29 sed -i 's|LOPTS)|LOPTS) -lfreetype -lopenal|g' source/Makefile
30 sed -i 's|COMLIB.*libfreetype\.a|#\0|g' source/Makefile
31 sed -i 's|NAN_SND_LIBS.*libopenal\.a|#\0|g' source/Makefile
32 export NAN_PYTHON_VERSION=2.7
33 export INTERNATIONAL=true
34 export WITH_FREETYPE2=true
35 export NAN_FREETYPE=/usr
36 export WITH_ICONV=true
38 export NAN_NO_PLUGIN=true
40 export NAN_OPENAL=/usr
41 export NAN_FMOD=/usr
42 export NAN_JPEG=/usr
43 export NAN_PNG=/usr
44 export WITH_OPENEXR=true
45 export NAN_OPENEXR=/usr
46 export NAN_ODE=/usr
47 export NAN_OPENEXR_LIBS=$(pkg-config --libs-only-l OpenEXR)
49 export NAN_SDL=/usr
50 export NAN_ZLIB=/usr
51 export NAN_MESA=/usr
53 export NAN_USE_BULLET=true
54 export NAN_USE_FFMPEG_CONFIG=true
55 export WITH_BF_VERSE=true
56 export WITH_VERSE=true
57 export WITH_BF_OPENMP=true
58 # there is an issue with a file
59 export NAN_DEBUG=-O
61 # build
62 make -j 1
64 }
66 # Rules to gen a SliTaz package suitable for Tazpkg.
67 genpkg_rules()
68 {
69 LOCALE="fr de pt_BR es zh_CN"
70 mkdir -p $fs/usr/bin $fs/usr/share/pixmaps
71 cp -a $src/obj/linux-glibc2*/bin/blender $fs/usr/bin/blender-bin
72 cp -a $src/obj/linux-glibc2*/bin/blenderplayer $fs/usr/bin
73 cp $stuff/blender $fs/usr/bin
74 cp -a $src/bin/.blender $fs/usr/share/blender
75 }