From 18326009bee30375c34a81096f45cdd33b018b0f Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Fri, 3 Jan 2014 21:37:23 +0000 Subject: [PATCH] A BSD licensed Bignum library WWW: https://github.com/wbhart/bsdnt/ --- math/Makefile | 1 + math/bsdnt/Makefile | 31 ++++++++++++++++++++ math/bsdnt/distinfo | 2 ++ math/bsdnt/files/patch-nn.h | 10 +++++++ math/bsdnt/files/patch-rand__internal_rand.h | 10 +++++++ math/bsdnt/pkg-descr | 3 ++ math/bsdnt/pkg-plist | 22 ++++++++++++++ 7 files changed, 79 insertions(+) create mode 100644 math/bsdnt/Makefile create mode 100644 math/bsdnt/distinfo create mode 100644 math/bsdnt/files/patch-nn.h create mode 100644 math/bsdnt/files/patch-rand__internal_rand.h create mode 100644 math/bsdnt/pkg-descr create mode 100644 math/bsdnt/pkg-plist diff --git a/math/Makefile b/math/Makefile index e50e73dad20d..10b9ff64b079 100644 --- a/math/Makefile +++ b/math/Makefile @@ -71,6 +71,7 @@ SUBDIR += blas SUBDIR += blitz++ SUBDIR += blocksolve95 + SUBDIR += bsdnt SUBDIR += calc SUBDIR += calcoo SUBDIR += calctool diff --git a/math/bsdnt/Makefile b/math/bsdnt/Makefile new file mode 100644 index 000000000000..5f342f16a320 --- /dev/null +++ b/math/bsdnt/Makefile @@ -0,0 +1,31 @@ +# $FreeBSD$ + +PORTNAME= bsdnt +PORTVERSION= 1.0 +CATEGORIES= math +MASTER_SITES= GH + +MAINTAINER= swills@FreeBSD.org +COMMENT= Bignum Library + +LICENSE= BSD3CLAUSE + +BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash + +USES= gmake +USE_GITHUB= yes +GH_ACCOUNT= wbhart +GH_PROJECT= ${PORTNAME} +GH_TAGNAME= 72e20a7 + +USE_LDCONFIG= yes + +WRKSRC= ${WRKDIR}/wbhart-${PORTNAME}-${GH_TAGNAME} + +pre-configure: + @${REINPLACE_CMD} -e "s,#!/bin/bash,#!${LOCALBASE}/bin/bash," ${WRKSRC}/configure + +do-configure: + @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ./configure --prefix=${STAGEDIR}${PREFIX} CC=cc CXX=c++ AS=cc + +.include diff --git a/math/bsdnt/distinfo b/math/bsdnt/distinfo new file mode 100644 index 000000000000..06d589935da9 --- /dev/null +++ b/math/bsdnt/distinfo @@ -0,0 +1,2 @@ +SHA256 (bsdnt-1.0.tar.gz) = fe7a6b9692dd5d9a51abf8be352f386af3b8ac650dd7ee210e42d9e6009d701a +SIZE (bsdnt-1.0.tar.gz) = 58899 diff --git a/math/bsdnt/files/patch-nn.h b/math/bsdnt/files/patch-nn.h new file mode 100644 index 000000000000..0af0f7e8ea24 --- /dev/null +++ b/math/bsdnt/files/patch-nn.h @@ -0,0 +1,10 @@ +--- nn.h.orig 2014-01-03 20:28:26.000000000 +0000 ++++ nn.h 2014-01-03 20:29:08.000000000 +0000 +@@ -31,7 +31,6 @@ + #include + #include + #include +-#include + + #include "helper.h" + #include "rand.h" diff --git a/math/bsdnt/files/patch-rand__internal_rand.h b/math/bsdnt/files/patch-rand__internal_rand.h new file mode 100644 index 000000000000..dce28e68b8e3 --- /dev/null +++ b/math/bsdnt/files/patch-rand__internal_rand.h @@ -0,0 +1,10 @@ +--- rand/internal_rand.h.orig 2014-01-03 20:32:30.000000000 +0000 ++++ rand/internal_rand.h 2014-01-03 20:32:40.000000000 +0000 +@@ -30,7 +30,6 @@ + + #include + #include +-#include + + #include "helper.h" + #include "rand.h" diff --git a/math/bsdnt/pkg-descr b/math/bsdnt/pkg-descr new file mode 100644 index 000000000000..3fe010c93683 --- /dev/null +++ b/math/bsdnt/pkg-descr @@ -0,0 +1,3 @@ +A BSD licensed Bignum library + +WWW: https://github.com/wbhart/bsdnt/ diff --git a/math/bsdnt/pkg-plist b/math/bsdnt/pkg-plist new file mode 100644 index 000000000000..c96cc93a43ec --- /dev/null +++ b/math/bsdnt/pkg-plist @@ -0,0 +1,22 @@ +lib/libbsdnt.a +lib/libbsdnt.so +include/bsdnt/arch/inline/nn_linear_x86_64_core2.h +include/bsdnt/arch/inline/nn_linear_x86_64_k8.h +include/bsdnt/config.h +include/bsdnt/helper.h +include/bsdnt/helper_arch.h +include/bsdnt/nn.h +include/bsdnt/nn_arch.h +include/bsdnt/nn_linear_arch.h +include/bsdnt/nn_quadratic_arch.h +include/bsdnt/nn_subquadratic_arch.h +include/bsdnt/rand.h +include/bsdnt/sha1.h +include/bsdnt/test.h +include/bsdnt/tuning.h +include/bsdnt/types_arch.h +include/bsdnt/zz.h +include/bsdnt/zz0.h +@dirrm include/bsdnt/arch/inline +@dirrm include/bsdnt/arch +@dirrm include/bsdnt