contrib/blender/Pkgfile

43 lines
1.2 KiB
Plaintext
Raw Normal View History

2007-12-13 11:31:58 +01:00
# Description: Fully integrated 3D graphics creation suite
# URL: http://www.blender.org/
2009-08-12 10:21:08 +02:00
# Maintainer: Jose V Beneyto, sepen at crux dot nu
# Packager: Jose V Beneyto, sepen at crux dot nu
2008-08-26 03:04:55 +02:00
# Depends on: xorg-libxi libtiff libpng ode fmod smpeg ftgl scons openexr freealut yasm
2007-12-13 11:31:58 +01:00
name=blender
2009-08-12 10:21:08 +02:00
version=2.49a
2008-08-25 17:03:02 +02:00
release=1
2009-08-12 10:21:08 +02:00
source=(http://download.blender.org/source/$name-$version.tar.gz \
10_use_systemwide_ftgl 20_fix_ftbfs_with_latest_ftgl)
2007-12-13 11:31:58 +01:00
build() {
2008-05-19 22:03:01 +02:00
cd $name-$version
2009-08-12 10:21:08 +02:00
patch -p1 -i $SRC/10_use_systemwide_ftgl
patch -p1 -i $SRC/20_fix_ftbfs_with_latest_ftgl
sed -e "s/-O2/${CFLAGS// /\' ,\'}/g" -i SConstruct
sed -e '/C_WARN/ s/-Wdeclaration-after-statement//' \
-i config/linux2-config.py
2009-08-12 10:21:08 +02:00
scons \
WITH_BF_OPENAL=yes \
WITH_BF_FMOD=yes \
WITH_BF_OPENEXR=yes \
WITH_BF_FFMPEG=yes \
WITH_BF_JPEG=yes \
WITH_BF_PNG=yes \
WITH_BF_ZLIB=yes \
WITH_BF_INTERNATIONAL=yes \
WITH_BF_GAMEENGINE=yes \
WITH_BF_ODE=yes \
WITH_BF_FTGL=yes \
BF_FTGL_INC=/usr/include/FTGL \
2009-08-12 10:21:08 +02:00
BF_FTGL_LIB=$(pkg-config --libs ftgl) \
WITH_BF_PLAYER=yes \
BF_DEBUG=no
2009-08-12 10:21:08 +02:00
install -D -m 0755 $SRC/install/linux2/$name $PKG/usr/bin/$name
install -D -m 0755 $SRC/install/linux2/${name}player $PKG/usr/bin/${name}player
2007-12-13 11:31:58 +01:00
}