summaryrefslogtreecommitdiff
path: root/math/sleef/Makefile
blob: 732f706c49efb076ffb1cd03417fe0dc7e1e4ff0 (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
PORTNAME=	sleef
DISTVERSION=	3.8
CATEGORIES=	math

MAINTAINER=	ports@FreeBSD.org
COMMENT=	SIMD Library for Evaluating Elementary Functions, vectorized libm
WWW=		https://sleef.org

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

LIB_DEPENDS=	libgmp.so:math/gmp	\
		libmpfr.so:math/mpfr	\
		libfftw3.so:math/fftw3

USES=		cmake:testing compiler:c11 pathfix ssl
CMAKE_ARGS=	-DSLEEF_BUILD_SHARED_LIBS:BOOL=ON
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	shibatch

CMAKE_OFF=	SLEEF_BUILD_TESTS
CMAKE_TESTING_ON=	SLEEF_BUILD_TESTS

.include <bsd.port.options.mk>

.if ${ARCH:Mpowerpc64*} || ${ARCH:Marmv?}
PLIST_SUB+=	GNUABI="@comment "
.else
PLIST_SUB+=	GNUABI=""
.endif

.include <bsd.port.mk>