summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartłomiej Piotrowski2018-01-06 21:58:50 +0100
committerBartłomiej Piotrowski2018-01-06 21:58:50 +0100
commitf2b38d9ad0df433e4bd30520a9c450241e190620 (patch)
tree7177a1b0173392871822013ebee14f1f7fd4f5c3
downloadaur-f2b38d9ad0df433e4bd30520a9c450241e190620.tar.gz
Import from official repositories
-rw-r--r--.SRCINFO38
-rw-r--r--PKGBUILD53
-rw-r--r--exepath.diff15
-rw-r--r--system_scenes.diff21
4 files changed, 127 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e9d2392681b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,38 @@
+pkgbase = luxmark
+ pkgdesc = OpenCL benchmark tool
+ pkgver = 3.1
+ pkgrel = 4
+ url = http://www.luxrender.net/
+ arch = x86_64
+ license = GPL3
+ makedepends = cmake
+ makedepends = boost
+ makedepends = luxrays
+ makedepends = mesa
+ makedepends = opencl-headers
+ makedepends = freeglut
+ depends = boost-libs
+ depends = embree
+ depends = freetype2
+ depends = freeglut
+ depends = glew
+ depends = opencl-icd-loader
+ depends = libgl
+ depends = libpng
+ depends = openimageio
+ depends = qt4
+ optdepends = amdapp-sdk: OpenCL support for AMD GPUs
+ optdepends = intel-opencl-runtime: OpenCL support for Intel CPUs
+ source = luxmark-3.1.tar.bz2::https://bitbucket.org/luxrender/luxmark/get/21d445746802.tar.bz2
+ source = https://bitbucket.org/luxrender/luxmark/downloads/scenes-v3.1beta3.zip
+ source = fix_includes.diff::https://bitbucket.org/luxrender/luxmark/commits/b7f5c9475c14b91364835d6a253f43400b7d98cb/raw/
+ source = system_scenes.diff
+ source = exepath.diff
+ md5sums = 3b0232ee8a6b170927a77be6c0beef46
+ md5sums = 03d3d117dfd2f3a7f825e3ea7b68f045
+ md5sums = d448bbeac4dc4889b99716438f6f1c58
+ md5sums = c4a378c08f105a84ef2f792370082cd6
+ md5sums = 6ba9b9888160cc06e3c3644e21d80e5a
+
+pkgname = luxmark
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a6c05446e29
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# $Id: PKGBUILD 207918 2017-01-18 20:07:48Z stativ $
+# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
+pkgname=luxmark
+pkgver=3.1
+_scenever=3.1beta3
+_pkgver=21d445746802
+pkgrel=4
+pkgdesc="OpenCL benchmark tool"
+arch=('x86_64') # because of embree only x86_64 is supported
+url="http://www.luxrender.net/"
+license=('GPL3')
+depends=('boost-libs' 'embree' 'freetype2' 'freeglut' 'glew' 'opencl-icd-loader' 'libgl' 'libpng' 'openimageio' 'qt4')
+makedepends=('cmake' 'boost' 'luxrays' 'mesa' 'opencl-headers' 'freeglut')
+optdepends=('amdapp-sdk: OpenCL support for AMD GPUs' \
+ 'intel-opencl-runtime: OpenCL support for Intel CPUs')
+source=($pkgname-$pkgver.tar.bz2::https://bitbucket.org/luxrender/luxmark/get/${_pkgver}.tar.bz2 \
+ https://bitbucket.org/luxrender/luxmark/downloads/scenes-v${_scenever}.zip \
+ fix_includes.diff::https://bitbucket.org/luxrender/luxmark/commits/b7f5c9475c14b91364835d6a253f43400b7d98cb/raw/ \
+ system_scenes.diff exepath.diff)
+md5sums=('3b0232ee8a6b170927a77be6c0beef46'
+ '03d3d117dfd2f3a7f825e3ea7b68f045'
+ 'd448bbeac4dc4889b99716438f6f1c58'
+ 'c4a378c08f105a84ef2f792370082cd6'
+ '6ba9b9888160cc06e3c3644e21d80e5a')
+
+prepare() {
+ cd "$srcdir"/luxrender-luxmark-$_pkgver
+
+ patch -Np1 < "$srcdir/system_scenes.diff"
+ # fix includes for luxrays 1.6
+ patch -Np1 < "$srcdir/fix_includes.diff"
+ # fix exepath for the VR mode to work
+ patch -Np1 < "$srcdir/exepath.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:
diff --git a/exepath.diff b/exepath.diff
new file mode 100644
index 00000000000..bf135fec642
--- /dev/null
+++ b/exepath.diff
@@ -0,0 +1,15 @@
+diff --git a/src/luxmarkapp.cpp b/src/luxmarkapp.cpp
+--- a/src/luxmarkapp.cpp
++++ b/src/luxmarkapp.cpp
+@@ -90,10 +90,7 @@
+ }
+ exePath = boost::filesystem::path(boost::filesystem::initial_path<boost::filesystem::path>());
+ #else
+-
+- // Look for the directory where Lux executables are
+- const boost::filesystem::path luxMarkExe(argv[0]);
+- exePath = boost::filesystem::absolute(luxMarkExe).parent_path();
++ exePath = "/usr/bin";
+ #endif
+ }
+
diff --git a/system_scenes.diff b/system_scenes.diff
new file mode 100644
index 00000000000..f55ec195164
--- /dev/null
+++ b/system_scenes.diff
@@ -0,0 +1,21 @@
+diff -rup luxrender-luxmark-985b948aa5c7/src/main.cpp luxrender-luxmark-985b948aa5c7.new/src/main.cpp
+--- luxrender-luxmark-985b948aa5c7/src/main.cpp 2015-02-25 10:46:48.000000000 +0100
++++ luxrender-luxmark-985b948aa5c7.new/src/main.cpp 2015-03-12 23:01:53.971856726 +0100
+@@ -125,16 +125,7 @@ int main(int argc, char **argv) {
+ return EXIT_SUCCESS;
+ else {
+ app.Init(mode, scnName, singleRun, singleRunExtInfo);
+-
+- // If current directory doesn't have the "scenes" directory, move
+- // to where the executable is
+- if (!boost::filesystem::exists("./scenes")) {
+- // Look for the directory where LuxMark executable is installed
+- boost::filesystem::path exePath(boost::filesystem::initial_path<boost::filesystem::path>());
+- exePath = boost::filesystem::system_complete(boost::filesystem::path(argv[0])).parent_path();
+- // Set the current directory to where the binary is
+- boost::filesystem::current_path(exePath);
+- }
++ boost::filesystem::current_path("/usr/share/luxmark");
+
+ // Force C locale
+ setlocale(LC_NUMERIC, "C");