summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbartus2018-08-08 00:42:57 +0200
committerbartus2018-08-08 00:42:57 +0200
commitff81c75fbecf07eb211c01a57b2a122f5eb75e0e (patch)
treed46a721f22f4318ae8c286a60c8aba42da680696 /PKGBUILD
parent461045e78a5f2ad9f11548dc7e303d5df6a2d574 (diff)
downloadaur-ff81c75fbecf07eb211c01a57b2a122f5eb75e0e.tar.gz
fix python linking, drop problematic test demo
fix linking cycle
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3433cc44f9a..fb3232e9548 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=luxrays-hg
pkgver=3755+.ceb10f796325+
-pkgrel=3
+pkgrel=4
pkgdesc="Accelerate the ray intersection process by using GPUs"
arch=('x86_64')
url="http://www.luxrender.net/"
@@ -33,6 +33,13 @@ pkgver() {
prepare() {
cd "$srcdir/luxrays"
+ # fix missing lpython link
+ for file in `grep Boost_LIBRARIES -l -R ` ;do sed -i 's/\${Boost_LIBRARIES}/\${Boost_LIBRARIES} \${PYTHON_LIBRARIES}/' $file; msg2 "Fix missing -lpython in $file" ; done
+ # fix dependency cycle in linker
+ sed -i 's/slg-core/slg-film slg-core/' CMakeLists.txt #tests/luxcoreimplserializationdemo/CMakeLists.txt
+ # supress tests/luxcoreimplserializationdemo
+ sed -i '/luxcoreimplserializationdemo/d' CMakeLists.txt
+
# force python3 for boost
patch -Np1 < "$srcdir/force_python3.diff" || true
}
@@ -40,15 +47,12 @@ prepare() {
build() {
cd "$srcdir/luxrays"
- cmake . \
+ cmake . \
-DCMAKE_INSTALL_PREFIX=/usr \
-DEMBREE_INCLUDE_PATH=/usr/include/embree-bvh_build \
-DEMBREE_LIBRARY=/usr/lib/embree-bvh_build/libembree.so.2 \
-DCMAKE_SKIP_RPATH=ON \
-DLUXRAYS_DISABLE_OPENCL=OFF
- # this sucks, but luxrays doesn't seem to honor CMAKE_*_LINKER_FLAGS
- # thanks bartus from AUR for the fix
- for file in `grep lboost_python -l -R ` ;do sed -i 's/$/ -lpython3/' $file ; done
make
}