2015-06-23 01:44:10 +00:00
|
|
|
# Template file for 'luxrays'
|
|
|
|
pkgname=luxrays
|
2015-09-02 12:11:37 +00:00
|
|
|
version=3.1
|
2015-06-23 01:44:10 +00:00
|
|
|
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 <miwaxe@gmail.com>"
|
|
|
|
license="GPL-3"
|
|
|
|
homepage="http://www.luxrender.net/wiki/LuxRays"
|
|
|
|
distfiles="https://bitbucket.org/luxrender/luxrays/get/luxmark_v$version.tar.gz"
|
2015-09-02 12:11:37 +00:00
|
|
|
checksum=f5b67220b72ec261ad51526d5c4550e2f95130565f3aa02a92d40f56593d8064
|
2015-06-23 01:44:10 +00:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|