Index: head/math/tomsfastmath/Makefile =================================================================== --- head/math/tomsfastmath/Makefile (revision 450803) +++ head/math/tomsfastmath/Makefile (revision 450804) @@ -1,38 +1,46 @@ # $FreeBSD$ PORTNAME= tomsfastmath -PORTVERSION= 0.12 -PORTREVISION= 4 +PORTVERSION= 0.13.1 +DISTVERSIONPREFIX= v CATEGORIES= math -MASTER_SITES= http://libtom.net/files/ -DISTNAME= tfm-${PORTVERSION} 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 + WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} MAKEFILE= makefile ALL_TARGET= default CFLAGS+= -fPIC PLIST_FILES= include/tfm.h lib/libtfm.a .include .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 Index: head/math/tomsfastmath/distinfo =================================================================== --- head/math/tomsfastmath/distinfo (revision 450803) +++ head/math/tomsfastmath/distinfo (revision 450804) @@ -1,2 +1,3 @@ -SHA256 (tfm-0.12.tar.bz2) = aa854c6664c3ba173809326ad9d3c18918b52f84040658b247e2ce7527032021 -SIZE (tfm-0.12.tar.bz2) = 216082 +TIMESTAMP = 1506584765 +SHA256 (libtom-tomsfastmath-v0.13.1_GH0.tar.gz) = 207e8624382e815f58bc5c3d4aad725d94588a6cc465d34634e6533dcaae2e0d +SIZE (libtom-tomsfastmath-v0.13.1_GH0.tar.gz) = 421999 Index: head/math/tomsfastmath/files/patch-makefile =================================================================== --- head/math/tomsfastmath/files/patch-makefile (revision 450803) +++ head/math/tomsfastmath/files/patch-makefile (revision 450804) @@ -1,40 +1,41 @@ ---- makefile.orig Wed Apr 12 13:16:32 2006 -+++ makefile Wed Apr 12 13:16:48 2006 -@@ -11,7 +11,7 @@ endif +--- makefile.orig 2017-04-04 10:24:49 UTC ++++ makefile +@@ -10,12 +10,9 @@ ifndef PREFIX + PREFIX= + endif +-ifeq ($(CC),cc) +- CC = $(PREFIX)gcc +-endif +-LD=$(PREFIX)ld +-AR=$(PREFIX)ar +-RANLIB=$(PREFIX)ranlib ++LD=ld ++AR=ar ++RANLIB=ranlib + + ifndef MAKE + MAKE=make +@@ -39,7 +36,7 @@ CFLAGS += -g3 + else ifndef IGNORE_SPEED -CFLAGS += -O3 -funroll-loops +CFLAGS += -funroll-loops #profiling #PROF=-pg -g -@@ -52,11 +52,11 @@ HEADERS=src/headers/tfm.h +@@ -83,11 +80,11 @@ HEADERS=src/headers/tfm_private.h $(HEAD #END_INS ifndef LIBPATH - LIBPATH=/usr/lib + LIBPATH=${PREFIX}/lib endif ifndef INCPATH - INCPATH=/usr/include + INCPATH=${PREFIX}/include endif ifndef INSTALL_GROUP -@@ -82,10 +82,10 @@ $(LIBNAME): $(OBJECTS) - ranlib $@ - - install: $(LIBNAME) -- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH) -- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH) -- install -g $(GROUP) -o $(USER) $(LIBNAME) $(DESTDIR)$(LIBPATH) -- install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH) -+ install -d $(DESTDIR)$(LIBPATH) -+ install -d $(DESTDIR)$(INCPATH) -+ install -m 644 $(LIBNAME) $(DESTDIR)$(LIBPATH) -+ install -m 644 $(HEADERS) $(DESTDIR)$(INCPATH) - - mtest/mtest: mtest/mtest.o - cd mtest ; CFLAGS="$(CFLAGS) -I../" MAKE=${MAKE} ${MAKE} mtest