mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
0da9b8bd43
Release notes: https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-threading-building-blocks-release-notes.html
72 lines
1.9 KiB
Makefile
72 lines
1.9 KiB
Makefile
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
|
|
PORTNAME= embree
|
|
PORTVERSION= 3.13.0
|
|
DISTVERSIONPREFIX= v
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Collection of high-performance ray tracing kernels
|
|
|
|
LICENSE= APACHE20
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
ONLY_FOR_ARCHS_REASON= heavy use of SSE instructions
|
|
|
|
USES= cmake pkgconfig
|
|
USE_LDCONFIG= yes
|
|
USE_GITHUB= yes
|
|
|
|
CMAKE_ARGS= -DEMBREE_TASKING_SYSTEM:STRING=${_ETS} \
|
|
-DCMAKE_INSTALL_DOCDIR:STRING=${DOCSDIR} \
|
|
-DEMBREE_BACKFACE_CULLING:BOOL=ON \
|
|
-DEMBREE_RAY_MASK:BOOL=ON
|
|
|
|
PLIST_SUB+= VERSION=${DISTVERSION}
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES ISPC TBB
|
|
OPTIONS_DEFAULT= TBB
|
|
OPTIONS_SUB= yes
|
|
|
|
ISPC_DESC= ISPC applications support
|
|
ISPC_BUILD_DEPENDS= ispc:devel/ispc
|
|
ISPC_CMAKE_OFF= -DEMBREE_ISPC_SUPPORT:BOOL=OFF
|
|
|
|
EXAMPLES_LIB_DEPENDS= libglfw.so:graphics/glfw \
|
|
libpng.so:graphics/png
|
|
EXAMPLES_USES= gl jpeg xorg
|
|
EXAMPLES_USE= GL=gl,glu,glut XORG=x11,xau,xcb,xdmcp
|
|
EXAMPLES_CMAKE_OFF= -DEMBREE_TUTORIALS:BOOL=OFF
|
|
|
|
TBB_DESC= Use Intel TBB (optimal performance)
|
|
TBB_LIB_DEPENDS= libtbb.so:devel/onetbb
|
|
TBB_VARS= _ETS=TBB
|
|
TBB_VARS_OFF= _ETS=INTERNAL
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# Disable parts that use _mm_cvtsi128_si64() which is not defined on i386
|
|
.if ${ARCH} == i386
|
|
CMAKE_ARGS+= -DEMBREE_ISA_AVX512SKX:BOOL=OFF
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
'/SET(CMAKE_INSTALL_BINDIR/s,\$$.*),${EXAMPLESDIR}),' \
|
|
${WRKSRC}/common/cmake/package.cmake
|
|
@${REINPLACE_CMD} -e 's,Win32,${OPSYS},gi' \
|
|
${WRKSRC}/common/simd/vint4_sse2.h
|
|
# Obsolete GNU binutils 2.17.50 objdump(1) is going to be removed
|
|
# from the base, use LLVM's one if it's available
|
|
.if exists(/usr/bin/llvm-objdump)
|
|
@${REINPLACE_CMD} -e 's,objdump,llvm-&,' \
|
|
${WRKSRC}/common/cmake/check_globals.cmake \
|
|
${WRKSRC}/common/cmake/check_stack_frame_size.cmake
|
|
.endif
|
|
|
|
do-test:
|
|
${TEST_WRKSRC}/${PORTNAME}_verify
|
|
|
|
.include <bsd.port.post.mk>
|