summaryrefslogtreecommitdiff
path: root/artistic/luxrays-art/PKGBUILD
blob: e7cbda0e9a539f2c3c2e4c88fde5d5b4af9a7651 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>

pkgname=luxrays-art
pkgver=1.0rc4
_pkgver=752ba5c422e0
pkgrel=1
epoch=0
pkgdesc='Accelerate the ray intersection process by using GPUs'
arch=(
  i686
  x86_64
  mips64el
)
url=http://www.${pkgname::3}render.net/
license=(
  GPL
)
depends=(
  freeimage
  freeglut
  glew
  libcl-libre
)
makedepends=(
  cmake
  boost
  opencl-headers
)
conflicts=(
  ${pkgname%-art}
)
provides=(
  ${pkgname%-art}=$pkgver
)
source=(
  https://bitbucket.org/${pkgname::3}render/${pkgname%-art}/get/$_pkgver.tar.bz2
)
md5sums=(
  f5f4b53df22a1c7ad301c78d046edd7d
)

build() {
  cd $srcdir/${pkgname::3}render-${pkgname%-art}-$_pkgver

  export CXXFLAGS='$CXXFLAGS -lpthread'
  cmake -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_SKIP_RPATH=ON \
    -DLUXRAYS_DISABLE_OPENCL=OFF \
    .
  make
}

package() {
  cd $srcdir/luxrender-${pkgname%-art}-$_pkgver

  install -d -m755              $pkgdir/usr/{bin,include,lib}
  install -m755 bin/*           $pkgdir/usr/bin
  install -m644 lib/*           $pkgdir/usr/lib
  cp -a include/${pkgname%-art} $pkgdir/usr/include
}