updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / blender-freestyle-svn / PKGBUILD
blobf8dc5fe6144c3ebbffe709fc7cb33f5c55333dff
1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 # Contributor: XercesBlue (nullfied)
3 # Contributor: Mikael Eriksson (miffe)
4 # Contributor: mosra <mosra@centrum.cz>
5 # PKGBUILD stolen from blender-svn
6 pkgname=blender-freestyle-svn
7 pkgver=36302
8 pkgrel=1
9 pkgdesc="SVN version of Blender (branch with FreeStyle edge rendering)"
10 arch=('i686' 'x86_64')
11 url="http://blender.org/"
12 depends=('libpng' 'libgl' 'mesa' 'openexr' 'python' 'desktop-file-utils' 'libsamplerate'
13          'hicolor-icon-theme' 'ffmpeg' 'fftw' 'lcms' 'openal' 'freetype2' 'libxi')
14 makedepends=('subversion' 'cmake')
15 provides=('blender')
16 conflicts=('blender')
17 license=('GPL')
18 install=blender.install
19 source=(blender.desktop)
20 md5sums=('9acbd59bdf4cda404e1c59f343372fd9')
22 _svntrunk="https://svn.blender.org/svnroot/bf-blender/branches/soc-2008-mxcurioni/"
23 _svnmod="blender"
25 build() {
26   # get the sources
27   cd "$srcdir"
28   msg "Connecting to Blender SVN server......."
29   if [ -d $_svnmod/.svn ]; then
30     cd $_svnmod && svn up -r $pkgver
31   else
32     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
33   fi
34   msg "SVN checkout done or server timeout"
36   msg "Starting make..."
37   cd "$srcdir"/$_svnmod
39   ##########
40   [ -e "$srcdir"/$_svnmod-build ] || mkdir -p "$srcdir"/$_svnmod-build
41   cd "$srcdir"/$_svnmod-build
42   cmake -DCMAKE_INSTALL_PREFIX=/usr \
43         -DWITH_INSTALL_PORTABLE=OFF \
44         -DWITH_LCMS=ON \
45         -DWITH_FFTW3=ON \
46         -DWITH_CODEC_FFMPEG=ON \
47         -DWITH_PYTHON_INSTALL=OFF \
48         -DPYTHON_VERSION=3.2mu \
49         "$srcdir"/$_svnmod
50   make
51   ##########
52   # now compile some plugins
53   cp -rf "$srcdir"/$_svnmod/release/plugins/* \
54     "$srcdir"/$_svnmod/source/blender/blenpluginapi/
55   cd "$srcdir"/$_svnmod/source/blender/blenpluginapi
56   chmod 755 bmake
57   make
60 package() {
61   cd "$srcdir"/$_svnmod-build
62   make DESTDIR="$pkgdir" install
63   install -D -m644 "$srcdir"/blender.desktop \
64     "$pkgdir"/usr/share/applications/blender.desktop
66   # install plugins
67   install -d -m755 "$pkgdir"/usr/share/blender/`ls "$pkgdir"/usr/share/blender`/plugins/{sequence,texture}
68   cp "$srcdir"/$_svnmod/source/blender/blenpluginapi/sequence/*.so \
69     "$pkgdir"/usr/share/blender/*/plugins/sequence/
70   cp "$srcdir"/$_svnmod/source/blender/blenpluginapi/texture/*.so \
71     "$pkgdir"/usr/share/blender/*/plugins/texture/