summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-08-24 21:49:58 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-08-24 21:49:58 -0300
commitf959d8120b9ae842b6a4a161848f876521d9c589 (patch)
treea81531032c0752aaa6bc630cd85477b6575e8492
parent4d7f0a213fa4c15037e03d8386c92ff6b8edd3da (diff)
downloadabslibre-f959d8120b9ae842b6a4a161848f876521d9c589.tar.gz
abslibre-f959d8120b9ae842b6a4a161848f876521d9c589.tar.bz2
abslibre-f959d8120b9ae842b6a4a161848f876521d9c589.zip
luxrender-parabola: fix 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
}