freebsd-ports/math/tomsfastmath/Makefile
Alexey Dokuchaev 63e4744348 Remove USE_GCC and fix the broken code instead. While gcc accepts %cc and
%memory, the syntax is wrong, since % is only used for registers.  Clang
currently rejects those constructs [1].  Similar fix was applied to NSS by
Mozilla team before [2].

While here: remove BROKEN for ia64/sparc64 where it builds (for powerpc use
BROKEN_powerpc), allow staging as regular user, GC stray MASTER_SITE_SUBDIR.

[1] http://llvm.org/bugs/show_bug.cgi?id=10365
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=671711
2014-06-09 04:25:02 +00:00

28 lines
710 B
Makefile

# $FreeBSD$
PORTNAME= tomsfastmath
PORTVERSION= 0.12
CATEGORIES= math
MASTER_SITES= http://libtom.org/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= gmake tar:bzip2
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKEFILE= makefile
ALL_TARGET= default
PLIST_FILES= include/tfm.h lib/libtfm.a
# 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.mk>