mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
89f8b05214
lang/gcc which have moved from GCC 4.8.5 to GCC 4.9.4 (at least under some circumstances such as versions of FreeBSD or platforms). In particular that is ports with USE_GCC=yes, USE_GCC=any, or one of gcc-c++11-lib, openmp, nestedfct, c++11-lib as well as c++14-lang, c++11-lang, c++0x, c11 requested via USES=compiler.
38 lines
925 B
Makefile
38 lines
925 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= tomsfastmath
|
|
PORTVERSION= 0.12
|
|
PORTREVISION= 1
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://libtom.net/files/
|
|
DISTNAME= tfm-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Portable fixed precision math library for fast exponentiations
|
|
|
|
BROKEN_powerpc= internal compiler error at src/mul/fp_mul_comba_48.c:398
|
|
|
|
USES= compiler:features gmake tar:bzip2
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
MAKEFILE= makefile
|
|
ALL_TARGET= default
|
|
|
|
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
|
|
|
|
.include <bsd.port.post.mk>
|