Import lang/pharo version 1.4
[dports.git] / math / tomsfastmath / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       tomsfastmath
4 PORTVERSION=    0.12
5 CATEGORIES=     math
6 MASTER_SITES=   http://libtom.org/files/
7 DISTNAME=       tfm-${PORTVERSION}
8
9 MAINTAINER=     ports@FreeBSD.org
10 COMMENT=        Portable fixed precision math library for fast exponentiations
11
12 BROKEN_powerpc= internal compiler error at src/mul/fp_mul_comba_48.c:398
13
14 USES=           gmake tar:bzip2
15 WRKSRC=         ${WRKDIR}/${PORTNAME}-${PORTVERSION}
16 MAKEFILE=       makefile
17 ALL_TARGET=     default
18
19 PLIST_FILES=    include/tfm.h lib/libtfm.a
20
21 # Unbreak against Clang ("cc" is not a register)
22 post-patch:
23         @${REINPLACE_CMD} -e 's,"%cc","cc",' \
24                 ${WRKSRC}/src/mont/fp_montgomery_reduce.c \
25                 ${WRKSRC}/src/mul/fp_mul_comba.c \
26                 ${WRKSRC}/src/sqr/fp_sqr_comba.c
27
28 .include <bsd.port.mk>