mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
a9f015d155
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t GCC 8.2 under most circumstances. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, as a double check, everything INDEX-11 showed depending on lang/gcc7. PR: 231590
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= tomsfastmath
|
|
PORTVERSION= 0.13.1
|
|
PORTREVISION= 3
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= math
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Portable fixed precision math library for fast exponentiations
|
|
|
|
LICENSE= PD WTFPL
|
|
LICENSE_COMB= dual
|
|
|
|
BROKEN_powerpc= internal compiler error at src/mul/fp_mul_comba_48.c:398
|
|
|
|
USES= compiler:features gmake tar:bzip2
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= libtom
|
|
|
|
MAKEFILE= makefile
|
|
ALL_TARGET= default
|
|
CFLAGS+= -fPIC
|
|
|
|
PLIST_FILES= include/tfm.h lib/libtfm.a
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == i386
|
|
# on clang:
|
|
# src/mul/fp_mul_comba.c:349:11: error: inline assembly requires more registers than available
|
|
USE_GCC= yes
|
|
.endif
|
|
|
|
# Unbreak against Clang ("cc" is not a register)
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,"%cc","cc",' \
|
|
${WRKSRC}/src/mont/fp_montgomery_reduce.c \
|
|
${WRKSRC}/src/mul/fp_mul_comba.c \
|
|
${WRKSRC}/src/sqr/fp_sqr_comba.c
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/src/headers/tfm.h ${STAGEDIR}${PREFIX}/include
|
|
${INSTALL_DATA} ${WRKSRC}/libtfm.a ${STAGEDIR}${PREFIX}/lib
|
|
|
|
.include <bsd.port.post.mk>
|