wok-current annotate blender/receipt @ rev 8559
imported patch get/libparserutils
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Feb 13 22:57:56 2011 +0100 (2011-02-13) |
parents | 8c64f64218f9 |
children | c3cd2c0689de |
rev | line source |
---|---|
pankso@4084 | 1 # SliTaz package receipt. |
pankso@4084 | 2 |
pankso@4084 | 3 PACKAGE="blender" |
pankso@4084 | 4 VERSION="2.49b" |
pankso@4084 | 5 CATEGORY="graphics" |
pankso@4084 | 6 SHORT_DESC="3D content creation suite." |
pankso@4084 | 7 MAINTAINER="pankso@slitaz.org" |
slaxemulator@6619 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@6651 | 9 DEPENDS="python mesa libsdl libdrm jpeg libglu-mesa openexr desktop-file-utils libgomp tiff libpng freeglut freetype openal zlib librsvg" |
slaxemulator@6619 | 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" |
jozee@5018 | 11 SUGGESTED="nvidia" |
pankso@4084 | 12 WEB_SITE="http://www.blender.org/" |
slaxemulator@6619 | 13 WGET_URL="http://download.blender.org/source/$TARBALL" |
jozee@4932 | 14 TAGS="3D creator editor" |
pankso@4084 | 15 |
pankso@4084 | 16 # Rules to configure and make the package. |
pankso@4084 | 17 compile_rules() |
pankso@4084 | 18 { |
pankso@4084 | 19 cd $src |
slaxemulator@6619 | 20 rm -f user-def.mk |
slaxemulator@6619 | 21 # disable static binaries and enable blenderplayer binary |
slaxemulator@6619 | 22 sed -i "s|^.*\(BINTARGETS += blenderstatic\)| #\1|g" source/Makefile |
slaxemulator@6619 | 23 sed -i "s|^#\(.*BINTARGETS += blenderplayer\)|\1|g" source/Makefile |
slaxemulator@6619 | 24 # link freetype and openal dynamically |
slaxemulator@6619 | 25 sed -i 's|LOPTS)|LOPTS) -lfreetype -lopenal|g' source/Makefile |
slaxemulator@6619 | 26 sed -i 's|COMLIB.*libfreetype\.a|#\0|g' source/Makefile |
slaxemulator@6619 | 27 sed -i 's|NAN_SND_LIBS.*libopenal\.a|#\0|g' source/Makefile |
slaxemulator@6619 | 28 export NAN_PYTHON_VERSION=2.7 |
slaxemulator@6619 | 29 export INTERNATIONAL=true |
slaxemulator@6619 | 30 export WITH_FREETYPE2=true |
slaxemulator@6619 | 31 export NAN_FREETYPE=/usr |
slaxemulator@6619 | 32 export WITH_ICONV=true |
slaxemulator@6619 | 33 |
slaxemulator@6619 | 34 export NAN_NO_PLUGIN=true |
slaxemulator@6619 | 35 |
slaxemulator@6619 | 36 export NAN_OPENAL=/usr |
slaxemulator@6619 | 37 export NAN_FMOD=/usr |
slaxemulator@6619 | 38 export NAN_JPEG=/usr |
slaxemulator@6619 | 39 export NAN_PNG=/usr |
slaxemulator@6619 | 40 export WITH_OPENEXR=true |
slaxemulator@6619 | 41 export NAN_OPENEXR=/usr |
slaxemulator@6619 | 42 export NAN_ODE=/usr |
slaxemulator@6619 | 43 export NAN_OPENEXR_LIBS=$(pkg-config --libs-only-l OpenEXR) |
slaxemulator@6619 | 44 |
slaxemulator@6619 | 45 export NAN_SDL=/usr |
slaxemulator@6619 | 46 export NAN_ZLIB=/usr |
slaxemulator@6619 | 47 export NAN_MESA=/usr |
slaxemulator@6619 | 48 |
slaxemulator@6619 | 49 export NAN_USE_BULLET=true |
slaxemulator@6619 | 50 export NAN_USE_FFMPEG_CONFIG=true |
slaxemulator@6619 | 51 export WITH_BF_VERSE=true |
slaxemulator@6619 | 52 export WITH_VERSE=true |
slaxemulator@6619 | 53 export WITH_BF_OPENMP=true |
slaxemulator@6619 | 54 # there is an issue with a file |
slaxemulator@6619 | 55 export NAN_DEBUG=-O |
slaxemulator@6619 | 56 |
slaxemulator@6619 | 57 # build |
slaxemulator@6619 | 58 make -j 1 |
slaxemulator@6619 | 59 |
pankso@4084 | 60 } |
pankso@4084 | 61 |
pankso@4084 | 62 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4084 | 63 genpkg_rules() |
pankso@4084 | 64 { |
pankso@4084 | 65 LOCALE="fr de pt_BR es zh_CN" |
pankso@4084 | 66 mkdir -p $fs/usr/bin $fs/usr/share/pixmaps |
slaxemulator@6619 | 67 cp -a $src/obj/linux-glibc2*/bin/blender $fs/usr/bin/blender-bin |
slaxemulator@6619 | 68 cp -a $src/obj/linux-glibc2*/bin/blenderplayer $fs/usr/bin |
pankso@4084 | 69 cp stuff/blender $fs/usr/bin |
slaxemulator@6619 | 70 cp -a $src/bin/.blender $fs/usr/share/blender |
pankso@4084 | 71 } |