From owner-svn-ports-all@FreeBSD.ORG  Wed Aug  7 22:22:19 2013
Return-Path: <owner-svn-ports-all@FreeBSD.ORG>
Delivered-To: svn-ports-all@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTP id C1025AF4;
 Wed,  7 Aug 2013 22:22:19 +0000 (UTC) (envelope-from wg@FreeBSD.org)
Received: from svn.freebsd.org (svn.freebsd.org
 [IPv6:2001:1900:2254:2068::e6a:0])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id AC7C22E8D;
 Wed,  7 Aug 2013 22:22:19 +0000 (UTC)
Received: from svn.freebsd.org ([127.0.1.70])
 by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r77MMJ5D027842;
 Wed, 7 Aug 2013 22:22:19 GMT (envelope-from wg@svn.freebsd.org)
Received: (from wg@localhost)
 by svn.freebsd.org (8.14.7/8.14.5/Submit) id r77MMIRp027833;
 Wed, 7 Aug 2013 22:22:18 GMT (envelope-from wg@svn.freebsd.org)
Message-Id: <201308072222.r77MMIRp027833@svn.freebsd.org>
From: William Grzybowski <wg@FreeBSD.org>
Date: Wed, 7 Aug 2013 22:22:18 +0000 (UTC)
To: ports-committers@freebsd.org, svn-ports-all@freebsd.org,
 svn-ports-head@freebsd.org
Subject: svn commit: r324366 - in head/graphics: . luxrays luxrays/files
X-SVN-Group: ports-head
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-BeenThere: svn-ports-all@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: SVN commit messages for the ports tree <svn-ports-all.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/svn-ports-all>,
 <mailto:svn-ports-all-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-ports-all>
List-Post: <mailto:svn-ports-all@freebsd.org>
List-Help: <mailto:svn-ports-all-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/svn-ports-all>,
 <mailto:svn-ports-all-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Aug 2013 22:22:19 -0000

Author: wg
Date: Wed Aug  7 22:22:17 2013
New Revision: 324366
URL: http://svnweb.freebsd.org/changeset/ports/324366

Log:
  graphics/luxrays: Accelerate the ray intersection process by using GPUs
  
  LuxRays is library dedicated to accelerate the ray intersection process by
  using GPUs.
  
  Uses a Data Parallel Model: it doesn't reduce the time spent to trace a single
  ray but it is able to trace many thousands of rays in parallel.
  
  Supports Hybrid CPU/GPU mode where only the ray intersection task is off load
  to the GPUs while everything else run on the CPU and can be written with usual
  tools and languages.
  
  WWW: http://www.luxrender.net/wiki/LuxRays
  
  PR:		ports/181019
  Submitted by:	Natacha Porté <natbsd instinctive.eu>

Added:
  head/graphics/luxrays/
  head/graphics/luxrays/Makefile   (contents, props changed)
  head/graphics/luxrays/distinfo   (contents, props changed)
  head/graphics/luxrays/files/
  head/graphics/luxrays/files/patch-CMakeLists.txt   (contents, props changed)
  head/graphics/luxrays/files/patch-include-luxrays-core-geometry-frame.h   (contents, props changed)
  head/graphics/luxrays/files/patch-samples-benchsimple-CMakeLists.txt   (contents, props changed)
  head/graphics/luxrays/pkg-descr   (contents, props changed)
  head/graphics/luxrays/pkg-plist   (contents, props changed)
Modified:
  head/graphics/Makefile

Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile	Wed Aug  7 22:02:21 2013	(r324365)
+++ head/graphics/Makefile	Wed Aug  7 22:22:17 2013	(r324366)
@@ -574,6 +574,7 @@
     SUBDIR += lprof-devel
     SUBDIR += lua-gd
     SUBDIR += luminance
+    SUBDIR += luxrays
     SUBDIR += luxrender
     SUBDIR += mahotas
     SUBDIR += makehuman

Added: head/graphics/luxrays/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/luxrays/Makefile	Wed Aug  7 22:22:17 2013	(r324366)
@@ -0,0 +1,32 @@
+# Created by: Natacha Porté <natbsd@instinctive.eu>
+# $FreeBSD$
+
+PORTNAME=	luxrays
+PORTVERSION=	1.2.1
+CATEGORIES=	graphics
+MASTER_SITES=	http://src.luxrender.net/luxrays/archive/
+DISTNAME=	${HG_NODEID}
+DIST_SUBDIR=	luxrender
+
+MAINTAINER=	natbsd@instinctive.eu
+COMMENT=	Accelerate the ray intersection process by using GPUs
+
+LICENSE=	GPLv3
+
+BUILD_DEPENDS=	${LOCALBASE}/lib/libfreeimage.a:${PORTSDIR}/graphics/freeimage
+LIB_DEPENDS=	boost_thread:${PORTSDIR}/devel/boost-libs
+
+HG_NODEID=	475fbf15f0ca
+
+USES=		bison cmake
+USE_BZIP2=	yes
+USE_GL=		glew glut
+WRKSRC=		${WRKDIR}/luxrays-${HG_NODEID}
+
+CMAKE_ARGS=	-DLUXRAYS_DISABLE_OPENCL:BOOL=ON
+
+do-install:
+	(cd ${WRKSRC}/include && ${COPYTREE_SHARE} . ${PREFIX}/include)
+	${INSTALL_DATA} ${WRKSRC}/lib/libluxrays.a ${PREFIX}/lib
+
+.include <bsd.port.mk>

Added: head/graphics/luxrays/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/luxrays/distinfo	Wed Aug  7 22:22:17 2013	(r324366)
@@ -0,0 +1,2 @@
+SHA256 (luxrender/475fbf15f0ca.tar.bz2) = 6643669befeb3c607fcd80ab82979a47fbbb60da97246bbfabe536d13dedfe8f
+SIZE (luxrender/475fbf15f0ca.tar.bz2) = 55765775

Added: head/graphics/luxrays/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/luxrays/files/patch-CMakeLists.txt	Wed Aug  7 22:22:17 2013	(r324366)
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2013-08-04 12:25:45.415147716 +0200
++++ CMakeLists.txt	2013-08-04 12:26:52.319147148 +0200
+@@ -142,7 +142,7 @@
+ 		message(WARNING "SLG2 requires OpenCL support, not building")
+ 	endif(NOT LUXRAYS_DISABLE_OPENCL)
+ 
+-	add_subdirectory(samples/smallluxgpu3)
++	# add_subdirectory(samples/smallluxgpu3)
+ endif(OPENGL_FOUND AND GLUT_FOUND AND GLEW_FOUND)
+ 
+ 

Added: head/graphics/luxrays/files/patch-include-luxrays-core-geometry-frame.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/luxrays/files/patch-include-luxrays-core-geometry-frame.h	Wed Aug  7 22:22:17 2013	(r324366)
@@ -0,0 +1,16 @@
+--- include/luxrays/core/geometry/frame.h.orig	2013-08-04 12:00:53.496371213 +0200
++++ include/luxrays/core/geometry/frame.h	2013-08-04 12:01:10.695167535 +0200
+@@ -44,11 +44,11 @@
+ 		SetFromZ(z);
+ 	}
+ 
+-	Frame(const Normal &z) {
++	Frame(const luxrays::Normal &z) {
+ 		SetFromZ(Vector(z));
+ 	}
+ 
+-	void SetFromZ(const Normal &z) {
++	void SetFromZ(const luxrays::Normal &z) {
+ 		SetFromZ(Vector(z)); 
+ 	}
+ 

Added: head/graphics/luxrays/files/patch-samples-benchsimple-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/luxrays/files/patch-samples-benchsimple-CMakeLists.txt	Wed Aug  7 22:22:17 2013	(r324366)
@@ -0,0 +1,8 @@
+--- samples/benchsimple/CMakeLists.txt.orig	2013-08-04 12:21:54.850147165 +0200
++++ samples/benchsimple/CMakeLists.txt	2013-08-04 12:22:17.696646898 +0200
+@@ -23,4 +23,4 @@
+ link_directories (${LuxRays_LIB_DIR})
+ 
+ add_executable(benchsimple benchsimple.cpp)
+-target_link_libraries(benchsimple luxrays)
++target_link_libraries(benchsimple luxrays pthread)

Added: head/graphics/luxrays/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/luxrays/pkg-descr	Wed Aug  7 22:22:17 2013	(r324366)
@@ -0,0 +1,11 @@
+LuxRays is library dedicated to accelerate the ray intersection process by
+using GPUs.
+
+Uses a Data Parallel Model: it doesn't reduce the time spent to trace a single
+ray but it is able to trace many thousands of rays in parallel.
+
+Supports Hybrid CPU/GPU mode where only the ray intersection task is off load
+to the GPUs while everything else run on the CPU and can be written with usual
+tools and languages.
+
+WWW: http://www.luxrender.net/wiki/LuxRays

Added: head/graphics/luxrays/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/luxrays/pkg-plist	Wed Aug  7 22:22:17 2013	(r324366)
@@ -0,0 +1,79 @@
+include/luxrays/accelerators/bvhaccel.h
+include/luxrays/accelerators/mqbvhaccel.h
+include/luxrays/accelerators/qbvhaccel.h
+include/luxrays/cfg.h
+include/luxrays/core/accelerator.h
+include/luxrays/core/context.h
+include/luxrays/core/dataset.h
+include/luxrays/core/device.h
+include/luxrays/core/epsilon.h
+include/luxrays/core/geometry/bbox.h
+include/luxrays/core/geometry/bsphere.h
+include/luxrays/core/geometry/frame.h
+include/luxrays/core/geometry/frame.h.orig
+include/luxrays/core/geometry/matrix4x4.h
+include/luxrays/core/geometry/normal.h
+include/luxrays/core/geometry/point.h
+include/luxrays/core/geometry/ray.h
+include/luxrays/core/geometry/raybuffer.h
+include/luxrays/core/geometry/transform.h
+include/luxrays/core/geometry/triangle.h
+include/luxrays/core/geometry/uv.h
+include/luxrays/core/geometry/vector.h
+include/luxrays/core/geometry/vector_normal.h
+include/luxrays/core/intersectiondevice.h
+include/luxrays/core/trianglemesh.h
+include/luxrays/core/utils.h
+include/luxrays/core/virtualdevice.h
+include/luxrays/kernels/kernels.h
+include/luxrays/luxrays.h
+include/luxrays/opencl/device.h
+include/luxrays/opencl/intersectiondevice.h
+include/luxrays/opencl/opencl.h
+include/luxrays/opencl/utils.h
+include/luxrays/utils/convtest/convtest.h
+include/luxrays/utils/convtest/pdiff/lpyramid.h
+include/luxrays/utils/convtest/pdiff/metric.h
+include/luxrays/utils/core/atomic.h
+include/luxrays/utils/core/exttrianglemesh.h
+include/luxrays/utils/core/mc.h
+include/luxrays/utils/core/randomgen.h
+include/luxrays/utils/core/spectrum.h
+include/luxrays/utils/film/film.h
+include/luxrays/utils/film/filter.h
+include/luxrays/utils/film/framebuffer.h
+include/luxrays/utils/film/tonemapping.h
+include/luxrays/utils/plymesh/LICENSE
+include/luxrays/utils/plymesh/rply.h
+include/luxrays/utils/properties.h
+include/luxrays/utils/sampler/sampler.h
+include/luxrays/utils/sdl/bsdf.h
+include/luxrays/utils/sdl/bsdfevents.h
+include/luxrays/utils/sdl/camera.h
+include/luxrays/utils/sdl/data/rgbD65_32.h
+include/luxrays/utils/sdl/data/rgbE_32.h
+include/luxrays/utils/sdl/data/sun_spect.h
+include/luxrays/utils/sdl/data/xyzbasis.h
+include/luxrays/utils/sdl/extmeshcache.h
+include/luxrays/utils/sdl/light.h
+include/luxrays/utils/sdl/material.h
+include/luxrays/utils/sdl/scene.h
+include/luxrays/utils/sdl/sdl.h
+include/luxrays/utils/sdl/spd.h
+include/luxrays/utils/sdl/texmap.h
+lib/libluxrays.a
+@dirrm include/luxrays/utils/sdl/data
+@dirrm include/luxrays/utils/sdl
+@dirrm include/luxrays/utils/sampler
+@dirrm include/luxrays/utils/plymesh
+@dirrm include/luxrays/utils/film
+@dirrm include/luxrays/utils/core
+@dirrm include/luxrays/utils/convtest/pdiff
+@dirrm include/luxrays/utils/convtest
+@dirrm include/luxrays/utils
+@dirrm include/luxrays/opencl
+@dirrm include/luxrays/kernels
+@dirrm include/luxrays/core/geometry
+@dirrm include/luxrays/core
+@dirrm include/luxrays/accelerators
+@dirrm include/luxrays