From 4a4c354486c7d51a990205195c1d258eeabaccd8 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Tue, 23 Jun 2015 03:44:10 +0200 Subject: [PATCH] New package: luxrays-3.0 --- srcpkgs/luxrays-devel | 1 + srcpkgs/luxrays/template | 43 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 120000 srcpkgs/luxrays-devel create mode 100644 srcpkgs/luxrays/template diff --git a/srcpkgs/luxrays-devel b/srcpkgs/luxrays-devel new file mode 120000 index 00000000000..8d72a429411 --- /dev/null +++ b/srcpkgs/luxrays-devel @@ -0,0 +1 @@ +luxrays/ \ No newline at end of file diff --git a/srcpkgs/luxrays/template b/srcpkgs/luxrays/template new file mode 100644 index 00000000000..dd17aad41e1 --- /dev/null +++ b/srcpkgs/luxrays/template @@ -0,0 +1,43 @@ +# Template file for 'luxrays' +pkgname=luxrays +version=3.0 +revision=1 +build_style=cmake +hostmakedepends="cmake flex bison boost-python" +makedepends="openimageio-devel tiff-devel libpng-devel libgomp-devel boost-devel glew-devel opencl-headers libopenexr-devel python-devel libfreeglut-devel embree-devel" +short_desc="LuxMark renderer engine" +maintainer="Andrea Brancaleoni " +license="GPL-3" +homepage="http://www.luxrender.net/wiki/LuxRays" +distfiles="https://bitbucket.org/luxrender/luxrays/get/luxmark_v$version.tar.gz" +checksum=fb63fc5d21cf43271f657c2ccc176116119afa639d83dbd70b50de69ce26fc62 +configure_args=" -DLUXRAYS_DISABLE_OPENCL=OFF -DCMAKE_SKIP_RPATH=ON" + +post_extract() { + mv $XBPS_BUILDDIR/luxrender-luxrays* $wrksrc +} + +do_install() { + for B in build/bin/*; do + vbin $B + done + + for L in build/lib/*; do + vinstall $L 644 usr/lib + done + + vmkdir usr/include + vcopy include/* usr/include + + vmkdir usr/lib/python2.7 + mv ${DESTDIR}/usr/lib/pyluxcore.so ${DESTDIR}/usr/lib/python2.7 +} + +luxrays-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + } +}