luxmark: update to 3.1.

This commit is contained in:
Andrea Brancaleoni 2015-09-02 14:16:54 +02:00
parent 89c3464e6a
commit e777ad25b2
2 changed files with 3 additions and 24 deletions

View file

@ -1,21 +0,0 @@
diff -rup src/main.cpp src/main.cpp
--- src/main.cpp 2015-02-25 10:46:48.000000000 +0100
+++ 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);
-
- // 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");

View file

@ -1,7 +1,7 @@
# Template file for 'luxmark'
pkgname=luxmark
version=3.0
revision=3
version=3.1
revision=1
build_style=cmake
hostmakedepends="cmake"
makedepends="openimageio-devel tiff-devel libpng-devel libgomp-devel libopenexr-devel MesaLib-devel ocl-icd-devel opencl-headers boost-devel python-devel luxrays-devel glew-devel libfreeglut-devel qt-devel"
@ -10,7 +10,7 @@ maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="http://www.luxrender.net/wiki/LuxMark"
distfiles="https://bitbucket.org/luxrender/luxmark/get/${pkgname}_v${version}.tar.gz"
checksum=17f2300dbfe9eca571e4475db51635f01d4bced3a6447c620abb8b900be02f99
checksum=175cc38f8a3cb73cf2ef25d6e99981456d66e1f9c7fb362522e7e58319c026e6
configure_args=" -DCMAKE_SKIP_RPATH=ON"