summaryrefslogtreecommitdiff
path: root/libre/luxmark/PKGBUILD
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-05 00:57:43 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-22 16:15:00 -0300
commit122f0df369908544af768323efb2be23d534a4b9 (patch)
treefc6c0ec6c72c10630a123d2bda799a647bc9bdda /libre/luxmark/PKGBUILD
parentdca89d3e1ba204a9bd87965105af85b726bd7dfc (diff)
downloadabslibre-122f0df369908544af768323efb2be23d534a4b9.tar.gz
abslibre-122f0df369908544af768323efb2be23d534a4b9.tar.bz2
abslibre-122f0df369908544af768323efb2be23d534a4b9.zip
add libre/luxmark package
Diffstat (limited to 'libre/luxmark/PKGBUILD')
-rw-r--r--libre/luxmark/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/libre/luxmark/PKGBUILD b/libre/luxmark/PKGBUILD
new file mode 100644
index 000000000..a423a8280
--- /dev/null
+++ b/libre/luxmark/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id: PKGBUILD 133573 2015-05-16 10:21:01Z stativ $
+# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+pkgname=luxmark
+pkgver=3.0
+_scenever=3.0beta2
+_pkgver=985b948aa5c7
+pkgrel=2.parabola1
+pkgdesc="OpenCL benchmark tool, with opencl-mesa recommendation"
+arch=('x86_64') # because of embree only x86_64 is supported
+url="http://www.luxrender.net/"
+license=('GPL3')
+depends=('boost-libs' 'freetype2' 'freeglut' 'glew' 'libcl' 'libgl' 'libpng' 'openimageio' 'qt4')
+makedepends=('cmake' 'boost' 'luxrays' 'mesa' 'opencl-headers' 'embree' 'freeglut')
+optdepends=('opencl-mesa: OpenCL support for AMD/ATI GPUs')
+source=(https://bitbucket.org/luxrender/luxmark/get/${_pkgver}.tar.bz2 \
+ https://bitbucket.org/luxrender/luxmark/downloads/scenes-v${_scenever}.zip \
+ system_scenes.diff)
+md5sums=('8bf391a882c00c290372a9d67fea87af'
+ '504724fde889d0e46a8b971636a0703b'
+ '0635afe0dc5dc3e4e58f25190808942e')
+
+prepare() {
+ cd "$srcdir"/luxrender-luxmark-$_pkgver
+
+ patch -Np1 < "$srcdir/system_scenes.diff"
+}
+
+build() {
+ cd "$srcdir/luxrender-luxmark-$_pkgver"
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_SKIP_RPATH=ON \
+ .
+ make
+}
+
+package() {
+ cd "$srcdir/luxrender-luxmark-$_pkgver"
+ install -D -m755 bin/luxmark "$pkgdir"/usr/bin/luxmark
+
+ install -d "$pkgdir/usr/share/luxmark"
+ cp -a "$srcdir/scenes" "$pkgdir/usr/share/luxmark"
+}
+
+# vim:set ts=2 sw=2 et: