summaryrefslogtreecommitdiff
path: root/community/luxrender/PKGBUILD
blob: 3ccc1e03959176dc7c744ead197c2c807c930e71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
# Initial contributor: flixie <69one@gmx.net>
# Contributor: Imanol Celaya <ornitorrincos@archlinux-es.org>
pkgname=luxrender
pkgver=0.7.1
_pkgver=9206b3ba7011
_luxblend=f93faf8189c1
pkgrel=4
pkgdesc="Rendering system for physically correct, unbiased image synthesis"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.luxrender.net/"
license=('GPL')
depends=('boost-libs' 'freeimage')
optdepends=('python2: luxblend' 'qt: Qt GUI' 'wxgtk: wxGTK GUI')
makedepends=('cmake' 'boost' 'mesa' 'wxgtk' 'qt' 'libpng' 'openexr')
source=(http://src.luxrender.net/lux/archive/$_pkgver.tar.bz2
        http://src.luxrender.net/luxblend/archive/$_luxblend.tar.bz2
        libpng.patch)
md5sums=('44b819d37c2cccd8b1a890e6c67061a8'
         'daf70af98123d31303c2c037244c527c'
         '4bbd82a31aa3f6ee2644a712bf2bfc05')
build() {
  cd "$srcdir"/lux-$_pkgver

  patch -Np1 -i "${srcdir}/libpng.patch" || true

  export CXXFLAGS="${CXXFLAGS} -DBOOST_FILESYSTEM_VERSION=2"

  cmake -DCMAKE_INSTALL_PREFIX=/usr .
  make
}

package() {
  cd "$srcdir"/lux-$_pkgver
  make DESTDIR="$pkgdir" install

  # fix library path on x86_64
  [ "$CARCH" = "x86_64" ] && mv "$pkgdir"/usr/lib64 "$pkgdir"/usr/lib

  # install blender exporter
  install -d -m755 "$pkgdir"/usr/share/blender/scripts
  install -m644 "$srcdir"/luxblend-$_luxblend/*.py "$pkgdir"/usr/share/blender/scripts
}

# vim:set ts=2 sw=2 et: