From 9f84fad1cc0fbeb1af3e738c798ad87e4c8b0c20 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 23 Sep 2008 13:16:00 +0000 Subject: [PATCH] GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers. There is no limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface. This port compiles libgmp using MinGW32. WWW: http://www.swox.com/gmp/ PR: 123391 Submitted by: Timothy Bourke --- math/Makefile | 1 + math/mingw32-libgmp/Makefile | 43 ++++++++++++++++++++++++++++++++++ math/mingw32-libgmp/distinfo | 3 +++ math/mingw32-libgmp/pkg-descr | 9 +++++++ math/mingw32-libgmp/pkg-plist | 9 +++++++ math/mingw32-libgmp4/Makefile | 43 ++++++++++++++++++++++++++++++++++ math/mingw32-libgmp4/distinfo | 3 +++ math/mingw32-libgmp4/pkg-descr | 9 +++++++ math/mingw32-libgmp4/pkg-plist | 9 +++++++ 9 files changed, 129 insertions(+) create mode 100644 math/mingw32-libgmp/Makefile create mode 100644 math/mingw32-libgmp/distinfo create mode 100644 math/mingw32-libgmp/pkg-descr create mode 100644 math/mingw32-libgmp/pkg-plist create mode 100644 math/mingw32-libgmp4/Makefile create mode 100644 math/mingw32-libgmp4/distinfo create mode 100644 math/mingw32-libgmp4/pkg-descr create mode 100644 math/mingw32-libgmp4/pkg-plist diff --git a/math/Makefile b/math/Makefile index 145d3e5b30af..fcb227c21e45 100644 --- a/math/Makefile +++ b/math/Makefile @@ -155,6 +155,7 @@ SUBDIR += mbasecalc SUBDIR += metis SUBDIR += metis-edf + SUBDIR += mingw32-libgmp4 SUBDIR += miracl SUBDIR += moo SUBDIR += mpexpr diff --git a/math/mingw32-libgmp/Makefile b/math/mingw32-libgmp/Makefile new file mode 100644 index 000000000000..edaff7b30043 --- /dev/null +++ b/math/mingw32-libgmp/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: mingw32-libgmp4 +# Date created: 28 April 2008 +# Whom: Timothy Bourke +# +# $FreeBSD$ +# + +PORTNAME= libgmp4 +PORTVERSION= 4.2.2 +CATEGORIES= math devel +MASTER_SITES= ${MASTER_SITE_GNU} +MASTER_SITE_SUBDIR= gmp +PKGNAMEPREFIX= mingw32- +DISTNAME= gmp-${PORTVERSION} + +MAINTAINER= timbob@bigpond.com +COMMENT= Library for arbitrary precision arithmetic (MinGW32) + +BUILD_DEPENDS= ${PKGNAMEPREFIX}gcc:${PORTSDIR}/devel/${PKGNAMEPREFIX}gcc \ + mingwm10.dll:${PORTSDIR}/devel/mingw32-bin-msvcrt + +GNU_CONFIGURE= yes +CC= ${PKGNAMEPREFIX}gcc +CXX= ${PKGNAMEPREFIX}c++ +CONFIGURE_ENV= MAKEINFO="makeinfo --no-split" \ + PREFIX="${PREFIX}/${PKGNAMEPREFIX:S/-$//}" +CONFIGURE_ARGS= --enable-cxx --host=${PKGNAMEPREFIX:S/-$//} \ + --includedir=${PREFIX}/${PKGNAMEPREFIX:S/-$//}/include \ + --exec_prefix=${PREFIX}/${PKGNAMEPREFIX:S/-$//} \ + --datadir=${PREFIX}/${PKGNAMEPREFIX:S/-$//}/share \ + --libdir=${PREFIX}/${PKGNAMEPREFIX:S/-$//}/lib +CONFIGURE_TARGET= + +INFO= gmp +INFO_PATH= ${PKGNAMEPREFIX:S/-$//}/info + +post-extract: + @${RM} -f ${WRKSRC}/doc/gmp.info* + +pre-install: + ${MKDIR} ${PREFIX}/${PKGNAMEPREFIX:S/-$//}/info + +.include diff --git a/math/mingw32-libgmp/distinfo b/math/mingw32-libgmp/distinfo new file mode 100644 index 000000000000..dcb12714f169 --- /dev/null +++ b/math/mingw32-libgmp/distinfo @@ -0,0 +1,3 @@ +MD5 (gmp-4.2.2.tar.gz) = 1def49df60248a08374ecd6cdcaa5d3d +SHA256 (gmp-4.2.2.tar.gz) = db1663aefaa37e6fe69898729ece2a86568792b9009cc1ae4b6b189e0f0fce6a +SIZE (gmp-4.2.2.tar.gz) = 2279978 diff --git a/math/mingw32-libgmp/pkg-descr b/math/mingw32-libgmp/pkg-descr new file mode 100644 index 000000000000..159ccbf3d124 --- /dev/null +++ b/math/mingw32-libgmp/pkg-descr @@ -0,0 +1,9 @@ +GMP is a free library for arbitrary precision arithmetic, operating +on signed integers, rational numbers, and floating point numbers. +There is no limit to the precision except the ones implied by the +available memory in the machine GMP runs on. GMP has a rich set of +functions, and the functions have a regular interface. + +This port compiles libgmp using MinGW32. + +WWW: http://www.swox.com/gmp/ diff --git a/math/mingw32-libgmp/pkg-plist b/math/mingw32-libgmp/pkg-plist new file mode 100644 index 000000000000..423bcbdfbdb2 --- /dev/null +++ b/math/mingw32-libgmp/pkg-plist @@ -0,0 +1,9 @@ +mingw32/include/gmp.h +mingw32/include/gmpxx.h +mingw32/lib/libgmp.a +mingw32/lib/libgmp.la +mingw32/lib/libgmpxx.a +mingw32/lib/libgmpxx.la +@dirrmtry mingw32/include +@dirrmtry mingw32/lib +@dirrmtry mingw32 diff --git a/math/mingw32-libgmp4/Makefile b/math/mingw32-libgmp4/Makefile new file mode 100644 index 000000000000..edaff7b30043 --- /dev/null +++ b/math/mingw32-libgmp4/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: mingw32-libgmp4 +# Date created: 28 April 2008 +# Whom: Timothy Bourke +# +# $FreeBSD$ +# + +PORTNAME= libgmp4 +PORTVERSION= 4.2.2 +CATEGORIES= math devel +MASTER_SITES= ${MASTER_SITE_GNU} +MASTER_SITE_SUBDIR= gmp +PKGNAMEPREFIX= mingw32- +DISTNAME= gmp-${PORTVERSION} + +MAINTAINER= timbob@bigpond.com +COMMENT= Library for arbitrary precision arithmetic (MinGW32) + +BUILD_DEPENDS= ${PKGNAMEPREFIX}gcc:${PORTSDIR}/devel/${PKGNAMEPREFIX}gcc \ + mingwm10.dll:${PORTSDIR}/devel/mingw32-bin-msvcrt + +GNU_CONFIGURE= yes +CC= ${PKGNAMEPREFIX}gcc +CXX= ${PKGNAMEPREFIX}c++ +CONFIGURE_ENV= MAKEINFO="makeinfo --no-split" \ + PREFIX="${PREFIX}/${PKGNAMEPREFIX:S/-$//}" +CONFIGURE_ARGS= --enable-cxx --host=${PKGNAMEPREFIX:S/-$//} \ + --includedir=${PREFIX}/${PKGNAMEPREFIX:S/-$//}/include \ + --exec_prefix=${PREFIX}/${PKGNAMEPREFIX:S/-$//} \ + --datadir=${PREFIX}/${PKGNAMEPREFIX:S/-$//}/share \ + --libdir=${PREFIX}/${PKGNAMEPREFIX:S/-$//}/lib +CONFIGURE_TARGET= + +INFO= gmp +INFO_PATH= ${PKGNAMEPREFIX:S/-$//}/info + +post-extract: + @${RM} -f ${WRKSRC}/doc/gmp.info* + +pre-install: + ${MKDIR} ${PREFIX}/${PKGNAMEPREFIX:S/-$//}/info + +.include diff --git a/math/mingw32-libgmp4/distinfo b/math/mingw32-libgmp4/distinfo new file mode 100644 index 000000000000..dcb12714f169 --- /dev/null +++ b/math/mingw32-libgmp4/distinfo @@ -0,0 +1,3 @@ +MD5 (gmp-4.2.2.tar.gz) = 1def49df60248a08374ecd6cdcaa5d3d +SHA256 (gmp-4.2.2.tar.gz) = db1663aefaa37e6fe69898729ece2a86568792b9009cc1ae4b6b189e0f0fce6a +SIZE (gmp-4.2.2.tar.gz) = 2279978 diff --git a/math/mingw32-libgmp4/pkg-descr b/math/mingw32-libgmp4/pkg-descr new file mode 100644 index 000000000000..159ccbf3d124 --- /dev/null +++ b/math/mingw32-libgmp4/pkg-descr @@ -0,0 +1,9 @@ +GMP is a free library for arbitrary precision arithmetic, operating +on signed integers, rational numbers, and floating point numbers. +There is no limit to the precision except the ones implied by the +available memory in the machine GMP runs on. GMP has a rich set of +functions, and the functions have a regular interface. + +This port compiles libgmp using MinGW32. + +WWW: http://www.swox.com/gmp/ diff --git a/math/mingw32-libgmp4/pkg-plist b/math/mingw32-libgmp4/pkg-plist new file mode 100644 index 000000000000..423bcbdfbdb2 --- /dev/null +++ b/math/mingw32-libgmp4/pkg-plist @@ -0,0 +1,9 @@ +mingw32/include/gmp.h +mingw32/include/gmpxx.h +mingw32/lib/libgmp.a +mingw32/lib/libgmp.la +mingw32/lib/libgmpxx.a +mingw32/lib/libgmpxx.la +@dirrmtry mingw32/include +@dirrmtry mingw32/lib +@dirrmtry mingw32