wok-next rev 6619

Made blender source based now. This means we are compiling it instead of using a binary blob.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Oct 10 00:15:23 2010 +0000 (2010-10-10)
parents 7157da8f2285
children 55b0063eaf9f
files blender/receipt blender/stuff/blender.png
line diff
     1.1 --- a/blender/receipt	Sat Oct 09 21:39:34 2010 +0000
     1.2 +++ b/blender/receipt	Sun Oct 10 00:15:23 2010 +0000
     1.3 @@ -5,23 +5,58 @@
     1.4  CATEGORY="graphics"
     1.5  SHORT_DESC="3D content creation suite."
     1.6  MAINTAINER="pankso@slitaz.org"
     1.7 -TARBALL="$PACKAGE-$VERSION-linux-glibc236-py25-i386.tar.bz2"
     1.8 -DEPENDS="python mesa libsdl libdrm jpeg libglu"
     1.9 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.10 +DEPENDS="python mesa libsdl libdrm jpeg libglu-mesa openexr desktop-file-utils tiff libpng freeglut freetype openal zlib librsvg"
    1.11 +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"
    1.12  SUGGESTED="nvidia"
    1.13  WEB_SITE="http://www.blender.org/"
    1.14 -WGET_URL="http://download.blender.org/release/Blender${VERSION}/$TARBALL"
    1.15 +WGET_URL="http://download.blender.org/source/$TARBALL"
    1.16  TAGS="3D creator editor"
    1.17  
    1.18  # Rules to configure and make the package.
    1.19  compile_rules()
    1.20  {
    1.21 -	mv blender-$VERSION-linux-glibc236-py25-i386 \
    1.22 -		$PACKAGE-$VERSION 2>/dev/null || continue
    1.23  	cd $src
    1.24 -	mkdir -p _pkg/usr/share
    1.25 -	mv .blender/locale _pkg/usr/share 2>/dev/null
    1.26 -	#cd plugins && make
    1.27 -	rm -rf ../taz
    1.28 +	rm -f user-def.mk
    1.29 +	# disable static binaries and enable blenderplayer binary
    1.30 +	sed -i "s|^.*\(BINTARGETS += blenderstatic\)|    #\1|g" source/Makefile
    1.31 +  	sed -i "s|^#\(.*BINTARGETS += blenderplayer\)|\1|g" source/Makefile
    1.32 +	# link freetype and openal dynamically
    1.33 +	sed -i 's|LOPTS)|LOPTS) -lfreetype -lopenal|g' source/Makefile
    1.34 +	sed -i 's|COMLIB.*libfreetype\.a|#\0|g' source/Makefile
    1.35 +	sed -i 's|NAN_SND_LIBS.*libopenal\.a|#\0|g' source/Makefile
    1.36 +	export NAN_PYTHON_VERSION=2.7
    1.37 +	export INTERNATIONAL=true
    1.38 +	export WITH_FREETYPE2=true
    1.39 +	export NAN_FREETYPE=/usr
    1.40 +	export WITH_ICONV=true
    1.41 +
    1.42 +	export NAN_NO_PLUGIN=true
    1.43 +
    1.44 +	export NAN_OPENAL=/usr
    1.45 +	export NAN_FMOD=/usr
    1.46 +	export NAN_JPEG=/usr
    1.47 +	export NAN_PNG=/usr
    1.48 +	export WITH_OPENEXR=true
    1.49 +	export NAN_OPENEXR=/usr
    1.50 +	export NAN_ODE=/usr
    1.51 +	export NAN_OPENEXR_LIBS=$(pkg-config --libs-only-l OpenEXR)
    1.52 +
    1.53 +	export NAN_SDL=/usr
    1.54 +	export NAN_ZLIB=/usr
    1.55 +	export NAN_MESA=/usr
    1.56 +
    1.57 +	export NAN_USE_BULLET=true
    1.58 +	export NAN_USE_FFMPEG_CONFIG=true
    1.59 +	export WITH_BF_VERSE=true
    1.60 +	export WITH_VERSE=true
    1.61 +	export WITH_BF_OPENMP=true
    1.62 +	# there is an issue with a file
    1.63 +	export NAN_DEBUG=-O
    1.64 +
    1.65 +	# build
    1.66 +	make -j 1
    1.67 +
    1.68  }
    1.69  
    1.70  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.71 @@ -29,9 +64,8 @@
    1.72  {
    1.73  	LOCALE="fr de pt_BR es zh_CN"
    1.74  	mkdir -p $fs/usr/bin $fs/usr/share/pixmaps
    1.75 -	cp -a $src/blender $fs/usr/bin/blender-bin
    1.76 +	cp -a $src/obj/linux-glibc2*/bin/blender $fs/usr/bin/blender-bin
    1.77 +	cp -a $src/obj/linux-glibc2*/bin/blenderplayer $fs/usr/bin
    1.78  	cp stuff/blender $fs/usr/bin
    1.79 -	cp -a $src/.blender $fs/usr/share/blender
    1.80 -	cp -a $src/blenderplayer $fs/usr/bin
    1.81 -	cp -a $src/icons/32x32/blender.png $fs/usr/share/pixmaps
    1.82 +	cp -a $src/bin/.blender $fs/usr/share/blender
    1.83  }
     2.1 Binary file blender/stuff/blender.png has changed