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