summaryrefslogtreecommitdiff
path: root/libre/luxrender-parabola/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/luxrender-parabola/PKGBUILD')
-rw-r--r--libre/luxrender-parabola/PKGBUILD15
1 files changed, 8 insertions, 7 deletions
diff --git a/libre/luxrender-parabola/PKGBUILD b/libre/luxrender-parabola/PKGBUILD
index a59a58c35..e9f32284c 100644
--- a/libre/luxrender-parabola/PKGBUILD
+++ b/libre/luxrender-parabola/PKGBUILD
@@ -11,12 +11,13 @@ pkgdesc='Rendering system for physically correct, unbiased image synthesis, with
arch=('i686' 'x86_64' 'mips64el')
url="http://www.$_pkgname.net/"
license=('GPL')
-depends=('boost-libs' 'freeimage' 'openexr' 'libpng' 'libcl' 'libgl' 'fftw')
+#depends=('boost-libs' 'freeimage' 'openexr' 'libpng' 'libcl' 'libgl' 'fftw')
+depends=('boost-libs' 'freeimage' 'openexr' 'libpng' 'libgl' 'fftw')
optdepends=('blender-addon-luxrender: Blender exporter' 'qt4: Qt GUI'
'python: pylux Python interface')
# luxrender is constantly broken to various GCC bugs, the latest one being FS#40596
-#makedepends=('cmake' 'boost' 'mesa' 'qt4' "luxrays=$pkgver" 'python' 'opencl-headers')
-makedepends=('cmake' 'boost' 'mesa' 'qt4' "luxrays=$pkgver" 'python')
+#makedepends=('cmake' 'boost' 'mesa' 'qt4' "luxrays=$pkgver" 'python' 'opencl-headers' 'clang')
+makedepends=('cmake' 'boost' 'mesa' 'qt4' "luxrays=$pkgver" 'python' 'clang')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname" "$_pkgname-libre")
replaces=("$_pkgname" "$_pkgname-libre")
@@ -28,6 +29,9 @@ md5sums=('cbe749f56a1e1976745f5458100efa8a'
prepare() {
cd $srcdir/$_pkgname-lux-$_pkgver
+ # fix library path on 64bit
+ sed -i '\|SET[(]LIB_SUFFIX 64[)]|d' CMakeLists.txt
+
patch -Np1 < $srcdir/force_python3.diff || true
# workaround QTBUG-22829
find . -type f -exec sed -i 's|^#include .*boost/.*|#ifndef Q_MOC_RUN\n&\n#endif|' '{}' ';'
@@ -40,7 +44,7 @@ build() {
export CXX=clang++
cmake . -DCMAKE_INSTALL_PREFIX=/usr \
- -DLUXRAYS_DISABLE_OPENCL=OFF \
+ -DLUXRAYS_DISABLE_OPENCL=ON \
-DPYTHON_CUSTOM=ON \
-DPYTHON_LIBRARIES=/usr/lib/libpython3.4m.so \
-DPYTHON_INCLUDE_PATH=/usr/include/python3.4m/ \
@@ -52,9 +56,6 @@ package() {
cd $srcdir/$_pkgname-lux-$_pkgver
make DESTDIR=$pkgdir install
- # fix library path on 64bit
- [[ $CARCH == x86_64 ]] && mv $pkgdir/usr/lib64 $pkgdir/usr/lib
-
#install pylux
install -D -m644 pylux.so $pkgdir/usr/lib/python3.4/pylux.so
}