Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jun 2016 09:37:12 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r416447 - in head/graphics: luxrender luxrender/files luxrender14 luxrender14/files
Message-ID:  <201606060937.u569bCPd058221@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Mon Jun  6 09:37:11 2016
New Revision: 416447
URL: https://svnweb.freebsd.org/changeset/ports/416447

Log:
  - Update LuxRender modern (Embree-based) branch to version 1.6
  - Move DISTFILES setting back to master port exclusively as upstream had
    used correct (coherent with v1.4) tags for v1.6 this time
  - Register mutual port install-time conflict (CONFLICTS_INSTALL)
  - Create convenience symlink in `post-extract' rather than `pre-patch',
    because `200:dos2unix' bogusly(?) runs before `300:pre-patch'
  - Since luxrays' library samples are not built as of r410138, do not try
    to patch them (GC currently no-op patches)
  - For the same reason, do not request GLUT, GLEW, and execinfo libraries
    that were only used when building samples
  - Convert FreeImage to an option (mandatory for v1.4) and default to off

Added:
  head/graphics/luxrender14/files/patch-luxrays-CMakeLists.txt   (contents, props changed)
Deleted:
  head/graphics/luxrender/files/patch-luxrays-samples-benchsimple-CMakeLists.txt
  head/graphics/luxrender/files/patch-luxrays-samples-luxcoredemo-CMakeLists.txt
  head/graphics/luxrender/files/patch-luxrays-samples-luxcoreimplserializationdemo-CMakeLists.txt
  head/graphics/luxrender/files/patch-luxrays-samples-luxcorescenedemo-CMakeLists.txt
  head/graphics/luxrender/files/patch-luxrays-samples-smallluxgpu4-CMakeLists.txt
  head/graphics/luxrender14/files/patch-luxrays-samples-benchsimple-CMakeLists.txt
  head/graphics/luxrender14/files/patch-luxrays-samples-luxcoredemo-CMakeLists.txt
  head/graphics/luxrender14/files/patch-luxrays-samples-luxcorescenedemo-CMakeLists.txt
  head/graphics/luxrender14/files/patch-luxrays-samples-smallluxgpu4-CMakeLists.txt
Modified:
  head/graphics/luxrender/Makefile
  head/graphics/luxrender/distinfo
  head/graphics/luxrender/files/patch-luxrays-CMakeLists.txt
  head/graphics/luxrender14/Makefile

Modified: head/graphics/luxrender/Makefile
==============================================================================
--- head/graphics/luxrender/Makefile	Mon Jun  6 09:03:53 2016	(r416446)
+++ head/graphics/luxrender/Makefile	Mon Jun  6 09:37:11 2016	(r416447)
@@ -2,11 +2,11 @@
 # $FreeBSD$
 
 PORTNAME=	luxrender
-DISTVERSION?=	1.5.1
+DISTVERSION?=	1.6
 CATEGORIES=	graphics
 MASTER_SITES=	https://bitbucket.org/luxrender/lux/get/ \
 		https://bitbucket.org/luxrender/luxrays/get/:lr
-DISTFILES?=	${PORTNAME}_v${DISTVERSION}.tar.gz \
+DISTFILES=	v${DISTVERSION:C/[.-]//g}${EXTRACT_SUFX} \
 		${PORTNAME}_v${DISTVERSION:S/-//}${EXTRACT_SUFX}:lr
 DIST_SUBDIR=	${PORTNAME}
 
@@ -17,17 +17,19 @@ LICENSE=	GPLv3
 
 LIB_DEPENDS=	libboost_python.so:devel/boost-python-libs \
 		libfftw3.so:math/fftw3 \
-		libfreeimage.so:graphics/freeimage \
 		libOpenImageIO.so:graphics/openimageio
 .if ${DISTVERSION} != 1.4
 LIB_DEPENDS+=	libembree.so:graphics/embree
 .endif
 
+CONFLICTS_INSTALL?=	${PORTNAME}14-1.4*
+
 ONLY_FOR_ARCHS=	i386 amd64
 ONLY_FOR_ARCHS_REASON=	uses SSE instructions
 
-USES=		bison cmake execinfo python:build tar:bzip2
-USE_GL=		glut glew
+USES+=		bison cmake python:build tar:bzip2
+USE_GL=		glu
+
 WRKSRC=		${WRKDIR}/${PORTNAME}-lux-${LUX_REV}
 LUXRAYS_WRKSRC=	${WRKDIR}/${PORTNAME}-luxrays-${LUXRAYS_REV}
 
@@ -39,22 +41,25 @@ CMAKE_ARGS=	-DLUXCORE_INCLUDE_DIRS:PATH=
 		-DSLG_LIBRARY:PATH="${LUXRAYS_WRKSRC}/lib/libsmallluxgpu.a" \
 		-DLUXRAYS_DISABLE_OPENCL:BOOL=ON
 
-LUX_REV?=	8dabcd6b7016
-LUXRAYS_REV?=	8577ff287efb
+LUX_REV?=	b3f85cf7742f
+LUXRAYS_REV?=	61352e6aae3f
 
-OPTIONS_DEFINE=	X11
+OPTIONS_DEFINE=	FREEIMAGE X11
 OPTIONS_DEFAULT=	X11
 
+FREEIMAGE_DESC=	Build with FreeImage (otherwise use OIIO only)
+FREEIMAGE_CMAKE_ON=	-DLUX_USE_FREEIMAGE:BOOL=ON
+FREEIMAGE_LIB_DEPENDS=	libfreeimage.so:graphics/freeimage
+
 X11_DESC=	Build GUI executable (requires Qt 4)
 X11_USE=	QT4=moc_build,qmake_build,rcc_build,uic_build,corelib,gui
 X11_PLIST_FILES=	bin/luxrender
 
-pre-patch:
+post-extract:
 	@${LN} -sf ${PORTNAME}-luxrays-${LUXRAYS_REV} ${WRKDIR}/luxrays
 
 post-patch:
 	@${REINPLACE_CMD} -e 's/__APPLE__/__FreeBSD__/' \
-		${LUXRAYS_WRKSRC}/samples/smallluxgpu4/smallluxgpu.h \
 		${WRKSRC}/core/osfunc.h \
 		${WRKSRC}/shapes/mikktspace/weldmesh.c
 # Avoid infamous "local symbol discarded in section `.text...' errors

Modified: head/graphics/luxrender/distinfo
==============================================================================
--- head/graphics/luxrender/distinfo	Mon Jun  6 09:03:53 2016	(r416446)
+++ head/graphics/luxrender/distinfo	Mon Jun  6 09:37:11 2016	(r416447)
@@ -1,4 +1,4 @@
-SHA256 (luxrender/luxrender_v1.5.1.tar.gz) = 6f55594759c7580bc9b08d517fc23a4e7c2e2195e8ad367e87ba1a3a2216f3e2
-SIZE (luxrender/luxrender_v1.5.1.tar.gz) = 3267994
-SHA256 (luxrender/luxrender_v1.5.1.tar.bz2) = 551ce7506f04a51f59c262cb47dd03db5db1d4a0d3cd7f43d7b4dbb10ddd94cc
-SIZE (luxrender/luxrender_v1.5.1.tar.bz2) = 29613457
+SHA256 (luxrender/v16.tar.bz2) = 29144f657087644086928a66421df5d25fc4dccd05970200932f5693650ddecf
+SIZE (luxrender/v16.tar.bz2) = 2421141
+SHA256 (luxrender/luxrender_v1.6.tar.bz2) = eb38489e4bcb1336027efc8fa991f506bf78e8cb9edc7b73794e0cdcf998b15a
+SIZE (luxrender/luxrender_v1.6.tar.bz2) = 36615450

Modified: head/graphics/luxrender/files/patch-luxrays-CMakeLists.txt
==============================================================================
--- head/graphics/luxrender/files/patch-luxrays-CMakeLists.txt	Mon Jun  6 09:03:53 2016	(r416446)
+++ head/graphics/luxrender/files/patch-luxrays-CMakeLists.txt	Mon Jun  6 09:37:11 2016	(r416447)
@@ -1,19 +1,47 @@
---- ../luxrays/CMakeLists.txt.orig	2015-10-06 08:56:47 UTC
+--- ../luxrays/CMakeLists.txt.orig
 +++ ../luxrays/CMakeLists.txt
-@@ -128,16 +128,6 @@ add_subdirectory(src/luxcore)
- #
- ################################################################################
+@@ -91,14 +91,6 @@ if (NOT OPENGL_FOUND AND NOT LUXRAYS_DIS
+ 	SET(LUXRAYS_DISABLE_OPENCL 1)
+ endif()
+ 
+-if (NOT GLEW_FOUND)
+-	MESSAGE(FATAL_ERROR "--> Could not locate required GLEW files, disabling samples build - Please check ${GLEW_SEARCH_PATH}")
+-endif()
+-
+-if (NOT GLUT_FOUND)
+-	MESSAGE(FATAL_ERROR "--> Could not locate required GLUT files, disabling samples build - Please check ${GLUT_SEARCH_PATH}")
+-endif()
+-
+ if (NOT EMBREE_FOUND)
+ 	MESSAGE(FATAL_ERROR "--> Could not locate required Intel Embree files - Please check ${EMBREE_SEARCH_PATH}")
+ endif()
+@@ -124,29 +116,6 @@ add_subdirectory(src/luxcore)
  
+ ################################################################################
+ #
+-# Samples
+-#
+-################################################################################
+-
 -if(NOT APPLE OR OSX_BUILD_DEMOS)
 -	add_subdirectory(samples/benchsimple)
 -	add_subdirectory(samples/luxcoredemo)
 -	add_subdirectory(samples/luxcorescenedemo)
 -	add_subdirectory(samples/luxcoreimplserializationdemo)
 -endif()
+-
 -if(OPENGL_FOUND AND GLUT_FOUND AND GLEW_FOUND)
 -	add_subdirectory(samples/smallluxgpu4)
 -endif(OPENGL_FOUND AND GLUT_FOUND AND GLEW_FOUND)
 -
- 
- ################################################################################
+-add_subdirectory(samples/luxcoreconsole)
+-if(OPENGL_FOUND)
+-	add_subdirectory(samples/luxcoreui)
+-endif(OPENGL_FOUND)
+-
+-
+-################################################################################
+-#
+ # For non win32 we'll have to copy everything to a single dir
  #
+ ################################################################################

Modified: head/graphics/luxrender14/Makefile
==============================================================================
--- head/graphics/luxrender14/Makefile	Mon Jun  6 09:03:53 2016	(r416446)
+++ head/graphics/luxrender14/Makefile	Mon Jun  6 09:37:11 2016	(r416447)
@@ -2,8 +2,6 @@
 # $FreeBSD$
 
 DISTVERSION=	1.4
-DISTFILES=	v${DISTVERSION:C/[.-]//g}${EXTRACT_SUFX} \
-		${PORTNAME}_v${DISTVERSION:S/-//}${EXTRACT_SUFX}:lr
 
 LUX_REV=	dfd211d6faa0
 LUXRAYS_REV=	7c7127ee1fa4
@@ -14,4 +12,11 @@ PKGNAMESUFFIX=	14
 DISTINFO_FILE=	${.CURDIR}/distinfo
 PATCHDIR=	${.CURDIR}/files
 
+CONFLICTS_INSTALL=	${PORTNAME}-*
+
+USES=		dos2unix
+DOS2UNIX_FILES=	../luxrays/CMakeLists.txt
+
+OPTIONS_SLAVE=	FREEIMAGE
+
 .include "${MASTERDIR}/Makefile"

Added: head/graphics/luxrender14/files/patch-luxrays-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/luxrender14/files/patch-luxrays-CMakeLists.txt	Mon Jun  6 09:37:11 2016	(r416447)
@@ -0,0 +1,38 @@
+--- ../luxrays/CMakeLists.txt.orig
++++ ../luxrays/CMakeLists.txt
+@@ -91,14 +91,6 @@ if (NOT OPENGL_FOUND AND NOT LUXRAYS_DIS
+ 	SET(LUXRAYS_DISABLE_OPENCL 1)
+ endif()
+ 
+-if (NOT GLEW_FOUND)
+-	MESSAGE(FATAL_ERROR "--> Could not locate required GLEW files, disabling samples build - Please check ${GLEW_SEARCH_PATH}")
+-endif()
+-
+-if (NOT GLUT_FOUND)
+-	MESSAGE(FATAL_ERROR "--> Could not locate required GLUT files, disabling samples build - Please check ${GLUT_SEARCH_PATH}")
+-endif()
+-
+ if (LUXRAYS_DISABLE_OPENCL)
+ 	ADD_DEFINITIONS("-DLUXRAYS_DISABLE_OPENCL")
+ endif()
+@@ -120,20 +112,6 @@ add_subdirectory(src/luxcore)
+ 
+ ################################################################################
+ #
+-# Samples
+-#
+-################################################################################
+-
+-add_subdirectory(samples/benchsimple)
+-add_subdirectory(samples/luxcoredemo)
+-add_subdirectory(samples/luxcorescenedemo)
+-if(OPENGL_FOUND AND GLUT_FOUND AND GLEW_FOUND)
+-	add_subdirectory(samples/smallluxgpu4)
+-endif(OPENGL_FOUND AND GLUT_FOUND AND GLEW_FOUND)
+-
+-
+-################################################################################
+-#
+ # For non win32 we'll have to copy everything to a single dir
+ #
+ ################################################################################



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