2010-09-12 16:00:12 +00:00
|
|
|
# Maintainer: Campbell Barton <ideasman42 at gmail dot com>
|
|
|
|
|
|
|
|
# custom blender vars
|
2011-02-14 07:26:07 +00:00
|
|
|
blender_srcdir=$(dirname $startdir)"/../.."
|
2011-02-22 05:49:21 +00:00
|
|
|
# value may be formatted: 35042:35051M
|
2011-04-02 21:51:05 +00:00
|
|
|
blender_revision=$(svnversion $blender_srcdir | cut -d: -f2 | awk '{print $3}')
|
|
|
|
blender_version=$(grep BLENDER_VERSION $blender_srcdir/source/blender/blenkernel/BKE_blender.h | awk '{print $3}')
|
2011-02-24 14:03:29 +00:00
|
|
|
blender_version=$(expr $blender_version / 100).$(expr $blender_version % 100) # 256 -> 2.56
|
|
|
|
blender_version_char=$(sed -ne 's/.*BLENDER_VERSION_CHAR.*\([a-z]\)$/\1/p' $blender_srcdir/source/blender/blenkernel/BKE_blender.h)
|
2011-04-02 21:51:05 +00:00
|
|
|
# blender_subversion=$(grep BLENDER_SUBVERSION $blender_srcdir/source/blender/blenkernel/BKE_blender.h | awk '{print $3}')
|
2011-02-24 14:03:29 +00:00
|
|
|
|
|
|
|
# map the version a -> 1
|
|
|
|
# not to be confused with blender's internal subversions
|
|
|
|
if [ "$blender_version_char" ]; then
|
|
|
|
blender_version=${blender_version}.$(expr index abcdefghijklmnopqrstuvwxyz $blender_version_char)
|
|
|
|
fi
|
|
|
|
|
|
|
|
blender_ver_string=$blender_version+svn$blender_revision
|
2010-09-12 16:00:12 +00:00
|
|
|
|
2011-02-22 12:25:31 +00:00
|
|
|
pkgname=blender-snapshot
|
2010-09-12 16:00:12 +00:00
|
|
|
pkgver=$blender_ver_string
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A fully integrated 3D graphics creation suite"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="www.blender.org"
|
|
|
|
license=('GPL')
|
|
|
|
groups=()
|
2011-04-02 21:51:05 +00:00
|
|
|
depends=('libjpeg' 'libpng' 'openjpeg' 'libtiff' 'openexr' 'python>=3.2' 'gettext' 'libxi' 'libxmu' 'mesa' 'freetype2' 'openal' 'sdl' 'libsndfile' 'libsamplerate' 'ffmpeg')
|
2010-09-12 16:00:12 +00:00
|
|
|
makedepends=('cmake' 'svn')
|
|
|
|
optdepends=()
|
2011-02-17 11:49:54 +00:00
|
|
|
provides=()
|
2010-09-12 16:00:12 +00:00
|
|
|
conflicts=('blender')
|
2011-02-17 11:49:54 +00:00
|
|
|
replaces=('blender')
|
2010-09-12 16:00:12 +00:00
|
|
|
backup=()
|
|
|
|
options=()
|
|
|
|
install=blender.install
|
|
|
|
# use current svn to make the package.
|
|
|
|
# source=(http://download.blender.org/source/$pkgname-$pkgver.tar.gz)
|
|
|
|
# md5sums=('27edb80c82c25252d43d6a01980d953a') #generate with 'makepkg -g'
|
|
|
|
source=()
|
|
|
|
md5sums=()
|
|
|
|
noextract=()
|
|
|
|
|
|
|
|
build() {
|
|
|
|
mkdir -p $srcdir/build
|
|
|
|
cd $srcdir/build
|
|
|
|
cmake $blender_srcdir \
|
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE:STRING=Release \
|
2011-03-06 12:04:59 +00:00
|
|
|
-DWITH_INSTALL_PORTABLE:BOOL=OFF \
|
2010-09-12 16:00:12 +00:00
|
|
|
-DWITH_PYTHON_INSTALL:BOOL=OFF \
|
2011-03-06 12:04:59 +00:00
|
|
|
-DWITH_OPENCOLLADA:BOOL=OFF \
|
|
|
|
-DPYTHON_VERSION:STRING=3.2 \
|
|
|
|
-DPYTHON_LIBPATH:STRING=/usr/lib \
|
|
|
|
-DPYTHON_LIBRARY:STRING=python3.2mu \
|
|
|
|
-DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python3.2mu
|
2010-09-12 16:00:12 +00:00
|
|
|
|
2011-02-22 05:49:21 +00:00
|
|
|
make $MAKEFLAGS
|
2010-09-12 16:00:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/build
|
|
|
|
make DESTDIR="$pkgdir" install
|
2011-02-11 09:28:11 +00:00
|
|
|
python -m compileall $pkgdir/usr/share/blender
|
2010-09-12 16:00:12 +00:00
|
|
|
}
|