diff options
| -rw-r--r-- | math/tomsfastmath/Makefile | 16 | ||||
| -rw-r--r-- | math/tomsfastmath/distinfo | 5 | ||||
| -rw-r--r-- | math/tomsfastmath/files/patch-makefile | 39 |
3 files changed, 35 insertions, 25 deletions
diff --git a/math/tomsfastmath/Makefile b/math/tomsfastmath/Makefile index 3d7e56e9e7dc..355b9bdf2191 100644 --- a/math/tomsfastmath/Makefile +++ b/math/tomsfastmath/Makefile @@ -1,18 +1,22 @@ # $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 @@ -35,4 +39,8 @@ post-patch: ${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> diff --git a/math/tomsfastmath/distinfo b/math/tomsfastmath/distinfo index b21554cdb470..413043cfbd75 100644 --- a/math/tomsfastmath/distinfo +++ b/math/tomsfastmath/distinfo @@ -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 diff --git a/math/tomsfastmath/files/patch-makefile b/math/tomsfastmath/files/patch-makefile index 953cd98b809f..86db05cff97a 100644 --- a/math/tomsfastmath/files/patch-makefile +++ b/math/tomsfastmath/files/patch-makefile @@ -1,7 +1,23 @@ ---- 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 @@ -9,7 +25,7 @@ #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 @@ -23,18 +39,3 @@ 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 |
