Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Aug 2013 17:06:30 GMT
From:      Natacha Porté <natbsd@instinctive.eu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/181019: [NEW PORT] graphics/luxrays: LuxRender library dedicated to accelerate the ray intersection process by using GPUs
Message-ID:  <201308041706.r74H6Uq0055990@oldred.freebsd.org>
Resent-Message-ID: <201308041710.r74HA2l1099806@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         181019
>Category:       ports
>Synopsis:       [NEW PORT] graphics/luxrays: LuxRender library dedicated to accelerate the ray intersection process by using GPUs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 04 17:10:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Natacha Porté
>Release:        9.1
>Organization:
>Environment:
FreeBSD yulai 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
LuxRays is a part of LuxRender core that has been turned into a generic GMGPU-accelerated ray library.

While GMGPU support in FreeBSD is rather lacking, LuxRays is a required dependency of recent versions of LuxRender. It is compiled only with its CPU fallback code.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	luxrays
#	luxrays/pkg-descr
#	luxrays/files
#	luxrays/files/patch-include-luxrays-core-geometry-frame.h
#	luxrays/files/patch-samples-benchsimple-CMakeLists.txt
#	luxrays/files/patch-CMakeLists.txt
#	luxrays/Makefile
#	luxrays/distinfo
#	luxrays/pkg-plist
#
echo c - luxrays
mkdir -p luxrays > /dev/null 2>&1
echo x - luxrays/pkg-descr
sed 's/^X//' >luxrays/pkg-descr << 'eaab8b0813e93db4d22e0a0f97089539'
XLuxRender library dedicated to accelerate the ray intersection process by using GPUs.
X
XWWW: http://www.luxrender.net/wiki/LuxRays
eaab8b0813e93db4d22e0a0f97089539
echo c - luxrays/files
mkdir -p luxrays/files > /dev/null 2>&1
echo x - luxrays/files/patch-include-luxrays-core-geometry-frame.h
sed 's/^X//' >luxrays/files/patch-include-luxrays-core-geometry-frame.h << 'b5c5fba1de436599cc08a28a79bf08b8'
X--- include/luxrays/core/geometry/frame.h.orig	2013-08-04 12:00:53.496371213 +0200
X+++ include/luxrays/core/geometry/frame.h	2013-08-04 12:01:10.695167535 +0200
X@@ -44,11 +44,11 @@
X 		SetFromZ(z);
X 	}
X 
X-	Frame(const Normal &z) {
X+	Frame(const luxrays::Normal &z) {
X 		SetFromZ(Vector(z));
X 	}
X 
X-	void SetFromZ(const Normal &z) {
X+	void SetFromZ(const luxrays::Normal &z) {
X 		SetFromZ(Vector(z)); 
X 	}
X 
b5c5fba1de436599cc08a28a79bf08b8
echo x - luxrays/files/patch-samples-benchsimple-CMakeLists.txt
sed 's/^X//' >luxrays/files/patch-samples-benchsimple-CMakeLists.txt << '7dad7995c525734cc978ebf4ef5b9ea7'
X--- samples/benchsimple/CMakeLists.txt.orig	2013-08-04 12:21:54.850147165 +0200
X+++ samples/benchsimple/CMakeLists.txt	2013-08-04 12:22:17.696646898 +0200
X@@ -23,4 +23,4 @@
X link_directories (${LuxRays_LIB_DIR})
X 
X add_executable(benchsimple benchsimple.cpp)
X-target_link_libraries(benchsimple luxrays)
X+target_link_libraries(benchsimple luxrays pthread)
7dad7995c525734cc978ebf4ef5b9ea7
echo x - luxrays/files/patch-CMakeLists.txt
sed 's/^X//' >luxrays/files/patch-CMakeLists.txt << '3dcd4ef0685d7cca6233520a4577e160'
X--- CMakeLists.txt.orig	2013-08-04 12:25:45.415147716 +0200
X+++ CMakeLists.txt	2013-08-04 12:26:52.319147148 +0200
X@@ -142,7 +142,7 @@
X 		message(WARNING "SLG2 requires OpenCL support, not building")
X 	endif(NOT LUXRAYS_DISABLE_OPENCL)
X 
X-	add_subdirectory(samples/smallluxgpu3)
X+	# add_subdirectory(samples/smallluxgpu3)
X endif(OPENGL_FOUND AND GLUT_FOUND AND GLEW_FOUND)
X 
X 
3dcd4ef0685d7cca6233520a4577e160
echo x - luxrays/Makefile
sed 's/^X//' >luxrays/Makefile << '6abeefe568dce4f41f863f6861e2704d'
X# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
X# $FreeBSD: graphics/luxrender/Makefile 314960 2013-03-22 20:06:14Z makc $
X
XPORTNAME=	luxrays
XPORTVERSION=	1.2.1
XCATEGORIES=	graphics
XMASTER_SITES=	http://src.luxrender.net/luxrays/archive/
XDISTNAME=	${HG_NODEID}
XDIST_SUBDIR=	luxrender
X
XMAINTAINER=	natbsd@instinctive.eu
XCOMMENT=	LuxRender library dedicated to accelerate the ray intersection process by using GPUs
X
XLICENSE=	GPLv3
X
XBUILD_DEPENDS=	${LOCALBASE}/lib/libfreeimage.a:${PORTSDIR}/graphics/freeimage
XLIB_DEPENDS=	boost_thread:${PORTSDIR}/devel/boost-libs
X
XHG_NODEID=	475fbf15f0ca
X
XUSE_BZIP2=	yes
XUSE_GL=		glew glut
XUSES=		bison cmake
XWRKSRC=		${WRKDIR}/luxrays-${HG_NODEID}
XMAKE_JOBS_SAFE=	yes
X
XCMAKE_ARGS=	-DLUXRAYS_DISABLE_OPENCL:BOOL=ON
X
Xdo-install:
X	(cd ${WRKSRC}/include && ${COPYTREE_SHARE} . ${PREFIX}/include)
X	${INSTALL_DATA} ${WRKSRC}/lib/libluxrays.a ${PREFIX}/lib
X
X.include <bsd.port.mk>
6abeefe568dce4f41f863f6861e2704d
echo x - luxrays/distinfo
sed 's/^X//' >luxrays/distinfo << '0f51b3d7aac34aa27e9fbc84b3b694a1'
XSHA256 (luxrender/475fbf15f0ca.tar.bz2) = 6643669befeb3c607fcd80ab82979a47fbbb60da97246bbfabe536d13dedfe8f
XSIZE (luxrender/475fbf15f0ca.tar.bz2) = 55765775
0f51b3d7aac34aa27e9fbc84b3b694a1
echo x - luxrays/pkg-plist
sed 's/^X//' >luxrays/pkg-plist << '987d79f46a851ae74b2ec93f70a69a3a'
Xinclude/luxrays/accelerators/bvhaccel.h
Xinclude/luxrays/accelerators/mqbvhaccel.h
Xinclude/luxrays/accelerators/qbvhaccel.h
Xinclude/luxrays/cfg.h
Xinclude/luxrays/core/accelerator.h
Xinclude/luxrays/core/context.h
Xinclude/luxrays/core/dataset.h
Xinclude/luxrays/core/device.h
Xinclude/luxrays/core/epsilon.h
Xinclude/luxrays/core/geometry/bbox.h
Xinclude/luxrays/core/geometry/bsphere.h
Xinclude/luxrays/core/geometry/frame.h
Xinclude/luxrays/core/geometry/frame.h.orig
Xinclude/luxrays/core/geometry/matrix4x4.h
Xinclude/luxrays/core/geometry/normal.h
Xinclude/luxrays/core/geometry/point.h
Xinclude/luxrays/core/geometry/ray.h
Xinclude/luxrays/core/geometry/raybuffer.h
Xinclude/luxrays/core/geometry/transform.h
Xinclude/luxrays/core/geometry/triangle.h
Xinclude/luxrays/core/geometry/uv.h
Xinclude/luxrays/core/geometry/vector.h
Xinclude/luxrays/core/geometry/vector_normal.h
Xinclude/luxrays/core/intersectiondevice.h
Xinclude/luxrays/core/trianglemesh.h
Xinclude/luxrays/core/utils.h
Xinclude/luxrays/core/virtualdevice.h
Xinclude/luxrays/kernels/kernels.h
Xinclude/luxrays/luxrays.h
Xinclude/luxrays/opencl/device.h
Xinclude/luxrays/opencl/intersectiondevice.h
Xinclude/luxrays/opencl/opencl.h
Xinclude/luxrays/opencl/utils.h
Xinclude/luxrays/utils/convtest/convtest.h
Xinclude/luxrays/utils/convtest/pdiff/lpyramid.h
Xinclude/luxrays/utils/convtest/pdiff/metric.h
Xinclude/luxrays/utils/core/atomic.h
Xinclude/luxrays/utils/core/exttrianglemesh.h
Xinclude/luxrays/utils/core/mc.h
Xinclude/luxrays/utils/core/randomgen.h
Xinclude/luxrays/utils/core/spectrum.h
Xinclude/luxrays/utils/film/film.h
Xinclude/luxrays/utils/film/filter.h
Xinclude/luxrays/utils/film/framebuffer.h
Xinclude/luxrays/utils/film/tonemapping.h
Xinclude/luxrays/utils/plymesh/LICENSE
Xinclude/luxrays/utils/plymesh/rply.h
Xinclude/luxrays/utils/properties.h
Xinclude/luxrays/utils/sampler/sampler.h
Xinclude/luxrays/utils/sdl/bsdf.h
Xinclude/luxrays/utils/sdl/bsdfevents.h
Xinclude/luxrays/utils/sdl/camera.h
Xinclude/luxrays/utils/sdl/data/rgbD65_32.h
Xinclude/luxrays/utils/sdl/data/rgbE_32.h
Xinclude/luxrays/utils/sdl/data/sun_spect.h
Xinclude/luxrays/utils/sdl/data/xyzbasis.h
Xinclude/luxrays/utils/sdl/extmeshcache.h
Xinclude/luxrays/utils/sdl/light.h
Xinclude/luxrays/utils/sdl/material.h
Xinclude/luxrays/utils/sdl/scene.h
Xinclude/luxrays/utils/sdl/sdl.h
Xinclude/luxrays/utils/sdl/spd.h
Xinclude/luxrays/utils/sdl/texmap.h
X@dirrm include/luxrays/utils/sdl/data
X@dirrm include/luxrays/utils/sdl
X@dirrm include/luxrays/utils/sampler
X@dirrm include/luxrays/utils/plymesh
X@dirrm include/luxrays/utils/film
X@dirrm include/luxrays/utils/core
X@dirrm include/luxrays/utils/convtest/pdiff
X@dirrm include/luxrays/utils/convtest
X@dirrm include/luxrays/utils
X@dirrm include/luxrays/opencl
X@dirrm include/luxrays/kernels
X@dirrm include/luxrays/core/geometry
X@dirrm include/luxrays/core
X@dirrm include/luxrays/accelerators
X@dirrm include/luxrays
Xlib/libluxrays.a
987d79f46a851ae74b2ec93f70a69a3a
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308041706.r74H6Uq0055990>