freebsd-ports/graphics/embree/Makefile
Alexey Dokuchaev fde4d555a5 - Belatedly update `graphics/embree' to the latest version, 2.17.1
- Add ISPC option and enable it by default (this pulls rather heavy
  `devel/llvm50' via BUILD_DEPENDS and normally would not be enabled
  by default, but since Embree is most likely to be used in graphics
  applications, it is safe to assume that users already have LLVM 5
  installed because X.org/Mesa stack unconditionally requires it)
- OpenEXR support was removed upstream since version 2.13.0 back in
  November 11, 2016: https://github.com/embree/embree/commit/483491e
  (as usual, unfortunately, no explanation was provided in the log)
- Remove CXXFLAGS+=-msse2 required for i386 earlier, not needed now
- Add missing USE_GL, USE_XORG components as prompted by `stage-qa'

PR:	214577, 224066

Because GitHub releases (tarballs) are not fetched with correct modification
time, set TIMESTAMP to 1510648523 which corresponds to commit 90e49f2 tagged
as this release.
2017-12-29 16:46:46 +00:00

57 lines
1.4 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= embree
PORTVERSION= 2.17.1
DISTVERSIONPREFIX= v
CATEGORIES= graphics
MAINTAINER= danfe@FreeBSD.org
COMMENT= Collection of high-performance ray tracing kernels
LICENSE= APACHE20
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= heavy use of SSE instructions
USE_GITHUB= yes
USES= cmake compiler:env
USE_GL= gl glu glut
USE_XORG= xi xmu
USE_LDCONFIG= yes
CMAKE_ARGS= -DEMBREE_TASKING_SYSTEM:STRING=INTERNAL
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}2
PLIST_SUB+= VERSION=${DISTVERSION}
OPTIONS_DEFINE= IMAGEMAGICK ISPC JPEG PNG
OPTIONS_DEFAULT= ISPC
OPTIONS_SUB= yes
IMAGEMAGICK_DESC= BMP, GIF, PNG, TGA, TIFF image formats support
IMAGEMAGICK_LIB_DEPENDS= libMagick++-6.so:graphics/ImageMagick
IMAGEMAGICK_CMAKE_ON= -DEMBREE_TUTORIALS_IMAGE_MAGICK:BOOL=ON
ISPC_DESC= ISPC applications support
ISPC_BUILD_DEPENDS= ispc:devel/ispc
ISPC_CMAKE_OFF= -DEMBREE_ISPC_SUPPORT:BOOL=OFF
JPEG_USES= jpeg
JPEG_CMAKE_OFF= -DEMBREE_TUTORIALS_LIBJPEG:BOOL=OFF
PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_CMAKE_OFF= -DEMBREE_TUTORIALS_LIBPNG:BOOL=OFF
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's,#else,#elif defined(MAP_HUGETLB),' \
${WRKSRC}/common/sys/alloc.cpp
# Old versions of Clang (e.g. on FreeBSD 10.x) do not support `-z' options
.if ${COMPILER_VERSION} < 35
@${REINPLACE_CMD} -e '/ -z /d' ${WRKSRC}/common/cmake/clang.cmake
.endif
.include <bsd.port.post.mk>