From a63752d21acbc8bbd0c609101eb62daecc270818 Mon Sep 17 00:00:00 2001 From: extrowerk <5569059+extrowerk@users.noreply.github.com> Date: Fri, 15 Jan 2021 13:48:17 +0100 Subject: [PATCH] GMP: bump (#5391) * GMP - 6.2.0 * Debuginfo --- dev-libs/gmp/gmp-6.2.0.recipe | 88 +++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 dev-libs/gmp/gmp-6.2.0.recipe diff --git a/dev-libs/gmp/gmp-6.2.0.recipe b/dev-libs/gmp/gmp-6.2.0.recipe new file mode 100644 index 000000000..7628f9778 --- /dev/null +++ b/dev-libs/gmp/gmp-6.2.0.recipe @@ -0,0 +1,88 @@ +SUMMARY="The GNU multiple precision arithmetic library" +DESCRIPTION="The GNU Multiple Precision Arithmetic Library (GMP) is a free \ +library for arbitrary-precision arithmetic, operating on signed integers, \ +rational numbers, and floating point numbers. + +There are no practical limits to the precision except the ones implied by \ +the available memory in the machine GMP runs on (operand dimension limit is \ +2^(32)-1 bits on 32-bit machines and 2^37 bits on 64-bit machines). +GMP has a rich set of functions, and the functions have a regular interface. \ +The basic interface is for C but wrappers exist for other languages including \ +Ada, C++, C#, OCaml, Perl, PHP, and Python." +HOMEPAGE="https://gmplib.org/" +COPYRIGHT="1991-2014 Free Software Foundation, Inc." +LICENSE="GNU GPL v3 + GNU LGPL v3" +REVISION="1" +SOURCE_URI="https://gmplib.org/download/gmp/gmp-$portVersion.tar.xz" +CHECKSUM_SHA256="258e6cd51b3fbdfc185c716d55f82c08aff57df0c6fbd143cf6ed561267a1526" + +ARCHITECTURES="x86 x86_64 sparc m68k" +SECONDARY_ARCHITECTURES="x86" + +portVersionCompat="$libVersion compat >= ${libVersion%%.*}" +libgmpVersion="10.4.0" +libgmpVersionCompat="$libgmpVersion compat >= ${libgmpVersion%%.*}" +libgmpxxVersion="4.6.0" +libgmpxxVersionCompat="$libgmpxxVersion compat >= ${libgmpxxVersion%%.*}" + +PROVIDES=" + gmp$secondaryArchSuffix = $portVersion compat >= 6.0 + lib:libgmp$secondaryArchSuffix = $libgmpVersionCompat + lib:libgmpxx$secondaryArchSuffix = $libgmpxxVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +PROVIDES_devel=" + gmp${secondaryArchSuffix}_devel = $portVersion + devel:libgmp$secondaryArchSuffix = $libgmpVersionCompat + devel:libgmpxx$secondaryArchSuffix = $libgmpxxVersionCompat + " +REQUIRES_devel=" + gmp$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:libtool + cmd:make + " + +defineDebugInfoPackage gmp$secondaryArchSuffix \ + $libDir/libgmp.so.$libgmpVersion \ + $libDir/libgmpxx.so.$libgmpxxVersion + +BUILD() +{ + touch doc/*.info* + autoreconf -fi + runConfigure ./configure --enable-cxx + make $jobArgs +} + +INSTALL() +{ + make install includedir=$includeDir includeexecdir=$includeDir + + # remove libtool files + rm $libDir/*.la + + # prepare devel/lib + prepareInstalledDevelLibs libgmp libgmpxx + + # devel package + packageEntries devel \ + $developDir $libDir/pkgconfig +} + +TEST() +{ + make $jobArgs check +}