summaryrefslogtreecommitdiff
path: root/devel/rkcommon/Makefile
blob: f47b510d527437d249c35a3c2f5fe3ce71fec05e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PORTNAME=	rkcommon
DISTVERSIONPREFIX=	v
DISTVERSION=	1.10.0
PORTREVISION=	5
PORTEPOCH=	1
CATEGORIES=	devel

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Intel RenderKit common C++/CMake infrastructure
WWW=		https://github.com/ospray/rkcommon

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

BROKEN_armv6=	error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'

LIB_DEPENDS=	libtbb.so:devel/onetbb

USES=		cmake:testing compiler:c++11-lang
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	ospray

CMAKE_OFF=	BUILD_TESTING
CXXFLAGS_i386=	-msse2 # workaround for error: '_mm_setcsr' needs target feature sse
CMAKE_TESTING_ON=	BUILD_TESTING

PLIST_SUB=	PORTVERSION=${PORTVERSION}

.include <bsd.port.options.mk>

.if ${ARCH} != aarch64 && ${ARCH} != amd64 && !${ARCH:Marmv?} && ${ARCH} != i386
CMAKE_ARGS+=	-DRKCOMMON_NO_SIMD:BOOL=ON
.endif

.include <bsd.port.mk>