mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
3ec947088b
clang doesn't find vec_nand: In file included from /wrkdirs/usr/ports/math/sleef/work/sleef-3.4.0/src/libm/sleefsimdsp.c:145: /wrkdirs/usr/ports/math/sleef/work/sleef-3.4.0/src/arch/helperpower_128.h:266:54: warning: implicit declaration of function 'vec_nand' is invalid in C99 [-Wimplicit-function-declaration] static INLINE vopmask vnot_vo_vo(vopmask o) { return vec_nand(o, o); } ^ /wrkdirs/usr/ports/math/sleef/work/sleef-3.4.0/src/arch/helperpower_128.h:266:54: error: returning 'int' from a function with incompatible result type 'vopmask' (vector of 4 'unsigned int' values) static INLINE vopmask vnot_vo_vo(vopmask o) { return vec_nand(o, o); } ^~~~~~~~~~~~~~ -mpower8-vector is needed because vec_nand is behind #ifdef __POWER8_VECTOR__ in clang's altivec.h. PR: 242143 Approved by: linimon (mentor), jmd (maintainer)
32 lines
558 B
Makefile
32 lines
558 B
Makefile
# Created by: Johannes M Dieterich <jmd@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= sleef
|
|
DISTVERSION= 3.4.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= math
|
|
|
|
MAINTAINER= jmd@FreeBSD.org
|
|
COMMENT= SIMD Library for Evaluating Elementary Functions, vectorized libm
|
|
|
|
LICENSE= BSL
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
USES= cmake compiler:c11
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= shibatch
|
|
|
|
CFLAGS_powerpc64= -mpower8-vector
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == powerpc64
|
|
PLIST_SUB+= NO_PPC64="@comment "
|
|
.else
|
|
PLIST_SUB+= NO_PPC64=""
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|