wok view blender/receipt @ rev 7069

Fix gogglesmm.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Nov 02 01:12:26 2010 +0000 (2010-11-02)
parents 8c64f64218f9
children c3cd2c0689de
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 DEPENDS="python mesa libsdl libdrm jpeg libglu-mesa openexr desktop-file-utils libgomp tiff libpng freeglut freetype openal zlib librsvg"
10 BUILD_DEPENDS="$DEPENDS python-dev mesa-dev libglu-mesa libsdl-dev libdrm-dev jpeg-dev jpeg-dev librsvg-dev openexr-dev ilmbase-dev freeglut-dev tiff-dev libpng-dev freetype-dev yasm openal-dev zlib-dev pkg-config coreutils-file-format gettext"
11 SUGGESTED="nvidia"
12 WEB_SITE="http://www.blender.org/"
13 WGET_URL="http://download.blender.org/source/$TARBALL"
14 TAGS="3D creator editor"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 rm -f user-def.mk
21 # disable static binaries and enable blenderplayer binary
22 sed -i "s|^.*\(BINTARGETS += blenderstatic\)| #\1|g" source/Makefile
23 sed -i "s|^#\(.*BINTARGETS += blenderplayer\)|\1|g" source/Makefile
24 # link freetype and openal dynamically
25 sed -i 's|LOPTS)|LOPTS) -lfreetype -lopenal|g' source/Makefile
26 sed -i 's|COMLIB.*libfreetype\.a|#\0|g' source/Makefile
27 sed -i 's|NAN_SND_LIBS.*libopenal\.a|#\0|g' source/Makefile
28 export NAN_PYTHON_VERSION=2.7
29 export INTERNATIONAL=true
30 export WITH_FREETYPE2=true
31 export NAN_FREETYPE=/usr
32 export WITH_ICONV=true
34 export NAN_NO_PLUGIN=true
36 export NAN_OPENAL=/usr
37 export NAN_FMOD=/usr
38 export NAN_JPEG=/usr
39 export NAN_PNG=/usr
40 export WITH_OPENEXR=true
41 export NAN_OPENEXR=/usr
42 export NAN_ODE=/usr
43 export NAN_OPENEXR_LIBS=$(pkg-config --libs-only-l OpenEXR)
45 export NAN_SDL=/usr
46 export NAN_ZLIB=/usr
47 export NAN_MESA=/usr
49 export NAN_USE_BULLET=true
50 export NAN_USE_FFMPEG_CONFIG=true
51 export WITH_BF_VERSE=true
52 export WITH_VERSE=true
53 export WITH_BF_OPENMP=true
54 # there is an issue with a file
55 export NAN_DEBUG=-O
57 # build
58 make -j 1
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 LOCALE="fr de pt_BR es zh_CN"
66 mkdir -p $fs/usr/bin $fs/usr/share/pixmaps
67 cp -a $src/obj/linux-glibc2*/bin/blender $fs/usr/bin/blender-bin
68 cp -a $src/obj/linux-glibc2*/bin/blenderplayer $fs/usr/bin
69 cp stuff/blender $fs/usr/bin
70 cp -a $src/bin/.blender $fs/usr/share/blender
71 }