summaryrefslogtreecommitdiff
path: root/blender/Pkgfile
blob: 13c2497b3a2af906ebb8b1e503a6254947041c7a (plain)
    1 # Description: Fully integrated 3D graphics creation suite
    2 # URL: http://www.blender.org/
    3 # Maintainer: Jose V Beneyto, sepen at crux dot nu
    4 # Packager: Jose V Beneyto, sepen at crux dot nu
    5 # Depends on: xorg-libxi libtiff libpng ode fmod smpeg ftgl scons openexr freealut yasm
    6 
    7 name=blender
    8 version=2.49a
    9 release=1
   10 source=(http://download.blender.org/source/$name-$version.tar.gz \
   11         10_use_systemwide_ftgl 20_fix_ftbfs_with_latest_ftgl)
   12 
   13 build() {
   14   cd $name-$version
   15 
   16   patch -p1 -i $SRC/10_use_systemwide_ftgl
   17   patch -p1 -i $SRC/20_fix_ftbfs_with_latest_ftgl
   18 
   19   sed -e "s/-O2/${CFLAGS// /\' ,\'}/g" -i SConstruct
   20   sed -e '/C_WARN/ s/-Wdeclaration-after-statement//' \
   21       -i config/linux2-config.py
   22 
   23   scons \
   24     WITH_BF_OPENAL=yes \
   25     WITH_BF_FMOD=yes \
   26     WITH_BF_OPENEXR=yes \
   27     WITH_BF_FFMPEG=yes \
   28     WITH_BF_JPEG=yes \
   29     WITH_BF_PNG=yes \
   30     WITH_BF_ZLIB=yes \
   31     WITH_BF_INTERNATIONAL=yes \
   32     WITH_BF_GAMEENGINE=yes \
   33     WITH_BF_ODE=yes \
   34     WITH_BF_FTGL=yes \
   35     BF_FTGL_INC=/usr/include/FTGL \
   36     BF_FTGL_LIB=$(pkg-config --libs ftgl) \
   37     WITH_BF_PLAYER=yes \
   38     BF_DEBUG=no
   39 
   40   install -D -m 0755 $SRC/install/linux2/$name $PKG/usr/bin/$name
   41   install -D -m 0755 $SRC/install/linux2/${name}player $PKG/usr/bin/${name}player
   42 }

Generated by cgit