desktop/blender/PKGBUILD

67 lines
2.2 KiB
Bash
Raw Normal View History

2010-07-05 08:03:22 +08:00
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=blender
2011-08-13 05:46:31 +08:00
pkgver=2.59
2011-04-15 23:43:57 +08:00
pkgrel=1
2011-04-29 09:20:25 +08:00
pkgdesc="A fully integrated 3D graphics creation suite"
2010-07-05 08:03:22 +08:00
arch=('i686' 'x86_64')
license=('GPL')
2011-04-29 09:20:25 +08:00
url="http://www.blender.org"
2011-07-09 12:40:32 +08:00
depends=('libpng' 'libtiff' 'openexr' 'sdl' 'python3' 'desktop-file-utils' 'shared-mime-info' 'hicolor-icon-theme' 'xdg-utils' 'glew' 'libxi' 'libxmu' 'mesa' 'freetype2' 'openal' 'libsndfile' 'libsamplerate' 'ffmpeg')
2011-04-29 09:20:25 +08:00
makedepends=('cmake')
2010-07-05 08:03:22 +08:00
install=blender.install
2011-04-29 09:20:25 +08:00
source=(http://download.blender.org/source/$pkgname-$pkgver.tar.gz)
2011-08-13 05:46:31 +08:00
md5sums=('6f68fe3c3c2b6a85f1ba9ebc5b1155fe')
2010-07-05 08:03:22 +08:00
build() {
2011-04-29 09:20:25 +08:00
cd "$srcdir/$pkgname-$pkgver"
2011-07-09 12:40:32 +08:00
2011-04-29 09:20:25 +08:00
mkdir build
cd build
2011-07-09 12:40:32 +08:00
[[ $CARCH == i686 ]] && ENABLESSE2="-DSUPPORT_SSE2_BUILD:BOOL=OFF"
2011-04-29 09:20:25 +08:00
cmake .. \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DWITH_INSTALL_PORTABLE:BOOL=OFF \
-DWITH_PYTHON_INSTALL:BOOL=OFF \
-DWITH_OPENCOLLADA:BOOL=OFF \
-DWITH_GAMEENGINE:BOOL=ON \
-DWITH_PLAYER:BOOL=ON \
2011-07-09 12:40:32 +08:00
-DWITH_BUILTIN_GLEW:BOOL=OFF \
-DWITH_CODEC_FFMPEG:BOOL=ON \
2011-04-29 09:20:25 +08:00
-DPYTHON_VERSION:STRING=3.2 \
-DPYTHON_LIBPATH:STRING=/usr/lib \
-DPYTHON_LIBRARY:STRING=python3.2mu \
2011-07-09 12:40:32 +08:00
-DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python3.2mu \
$ENABLESSE2
2011-04-29 09:20:25 +08:00
make $MAKEFLAGS
cp -rf "$srcdir"/${pkgname}-$pkgver/release/plugins/* \
"$srcdir"/${pkgname}-$pkgver/source/blender/blenpluginapi/
cd "$srcdir"/${pkgname}-$pkgver/source/blender/blenpluginapi
chmod 755 bmake
make
2010-07-05 08:03:22 +08:00
}
2011-04-29 09:20:25 +08:00
package() {
cd "$srcdir/$pkgname-$pkgver/build"
make DESTDIR="${pkgdir}" install
2011-04-30 06:26:06 +08:00
python3 -m compileall "${pkgdir}/usr/share/blender"
2011-04-29 09:20:25 +08:00
# install plugins
install -d -m755 "$pkgdir"/usr/share/blender/${pkgver%[a-z]}/plugins/{sequence,texture}
cp "$srcdir"/${pkgname}-$pkgver/source/blender/blenpluginapi/sequence/*.so \
"$pkgdir"/usr/share/blender/${pkgver%[a-z]}/plugins/sequence/
cp "$srcdir"/${pkgname}-$pkgver/source/blender/blenpluginapi/texture/*.so \
"$pkgdir"/usr/share/blender/${pkgver%[a-z]}/plugins/texture/
2011-07-09 12:40:32 +08:00
}