2014-04-01 06:52:02 +08:00
|
|
|
# Maintainer: U t G <utg.chakra.linux[at]gmail[dot]com>
|
|
|
|
# Contributor: Neophytos Kolokotronis <tetris4@gmail.com
|
2010-07-05 08:03:22 +08:00
|
|
|
|
|
|
|
pkgname=blender
|
2014-03-31 05:06:25 +08:00
|
|
|
pkgver=2.70
|
|
|
|
pkgrel=1
|
2011-04-29 09:20:25 +08:00
|
|
|
pkgdesc="A fully integrated 3D graphics creation suite"
|
2012-12-22 01:58:19 +08:00
|
|
|
arch=('x86_64')
|
2010-07-05 08:03:22 +08:00
|
|
|
license=('GPL')
|
2011-04-29 09:20:25 +08:00
|
|
|
url="http://www.blender.org"
|
2014-04-01 06:52:02 +08:00
|
|
|
depends=('libpng' 'libtiff' 'openexr' 'sdl' 'python3' 'desktop-file-utils' 'shared-mime-info' 'hicolor-icon-theme' 'xdg-utils' 'glew' 'freetype2' 'jack' 'openal' 'libsndfile' 'libsamplerate' 'ffmpeg' 'fftw' 'openimageio' 'boost-libs' 'opencollada' 'opencolorio' 'llvm' 'pcre')
|
2013-03-06 02:58:56 +08:00
|
|
|
makedepends=('cmake' 'boost' 'mesa' 'subversion')
|
2014-04-01 06:52:02 +08:00
|
|
|
screenshot=( # new screenshots: 2014
|
|
|
|
'http://www.blender.org/wp-content/uploads/2012/11/materials_screenshot-640x360.png'
|
|
|
|
'http://www.blender.org/wp-content/uploads/2012/11/Flexible-UI-640x359.png'
|
|
|
|
'http://www.blender.org/wp-content/uploads/2012/11/camera-tracking-640x360.png')
|
2010-07-05 08:03:22 +08:00
|
|
|
install=blender.install
|
2013-07-27 18:39:30 +08:00
|
|
|
source=("http://download.blender.org/source/$pkgname-$pkgver.tar.gz")
|
2014-03-31 05:06:25 +08:00
|
|
|
sha1sums=('294d89855e4bd2226bfbd4311f835709379ec309')
|
2010-07-05 08:03:22 +08:00
|
|
|
|
|
|
|
build() {
|
2013-07-23 04:49:26 +08:00
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
2011-07-09 12:40:32 +08:00
|
|
|
|
2013-03-05 11:35:48 +08:00
|
|
|
mkdir -p build
|
2011-04-29 09:20:25 +08:00
|
|
|
cd build
|
|
|
|
|
2014-04-01 06:52:02 +08:00
|
|
|
# -DWITH_LLVM=ON \
|
|
|
|
# -DLLVM_VERSION=3.3 \
|
|
|
|
# -DLLVM_STATIC=OFF \
|
|
|
|
|
2011-04-29 09:20:25 +08:00
|
|
|
cmake .. \
|
2013-07-27 18:39:30 +08:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DWITH_INSTALL_PORTABLE=OFF \
|
|
|
|
-DWITH_PYTHON_INSTALL=OFF \
|
|
|
|
-DWITH_OPENCOLLADA=ON \
|
|
|
|
-DOPENIMAGEIO_ROOT_DIR=/usr \
|
|
|
|
-DWITH_GAMEENGINE=ON \
|
|
|
|
-DWITH_JACK=ON \
|
|
|
|
-DWITH_PLAYER=ON \
|
|
|
|
-DWITH_CODEC_FFMPEG=ON \
|
|
|
|
-DWITH_CODEC_SNDFILE=ON \
|
|
|
|
-DWITH_CYCLES=ON \
|
|
|
|
-DWITH_FFTW3=ON \
|
|
|
|
-DWITH_MOD_OCEANSIM=ON \
|
|
|
|
-DPYTHON_VERSION=3.3 \
|
|
|
|
-DPYTHON_LIBPATH=/usr/lib \
|
|
|
|
-DPYTHON_LIBRARY=python3.3m \
|
2014-03-31 05:06:25 +08:00
|
|
|
-DPYTHON_INCLUDE_DIRS=/usr/include/python3.3m
|
2014-04-01 06:52:02 +08:00
|
|
|
#-DOPENJPEG_INCLUDE_DIR=/usr/include/openjpeg-1.5
|
|
|
|
# Remove the openjpeg line once blender accepts my patch
|
2011-04-29 09:20:25 +08:00
|
|
|
|
|
|
|
make
|
2010-07-05 08:03:22 +08:00
|
|
|
}
|
|
|
|
|
2011-04-29 09:20:25 +08:00
|
|
|
package() {
|
2013-07-23 04:49:26 +08:00
|
|
|
cd "$srcdir/$pkgname-$pkgver/build"
|
2013-07-27 18:39:30 +08:00
|
|
|
|
2011-04-29 09:20:25 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
2011-04-30 06:26:06 +08:00
|
|
|
python3 -m compileall "${pkgdir}/usr/share/blender"
|
2011-12-14 13:27:15 +08:00
|
|
|
}
|
2014-04-01 06:52:02 +08:00
|
|
|
|