mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
gmp: update to 5.1.0a.
This commit is contained in:
parent
e99400b08c
commit
966a13c693
2 changed files with 16 additions and 36 deletions
|
@ -1,11 +1,7 @@
|
||||||
# Template file for 'gmp-devel'.
|
# Template file for 'gmp-devel'.
|
||||||
#
|
#
|
||||||
depends="glibc-devel gmp"
|
depends="glibc-devel gmp>=${version}"
|
||||||
short_desc="${sourcepkg} development files"
|
short_desc="${short_desc} -- development files"
|
||||||
long_desc="${long_desc}
|
|
||||||
|
|
||||||
This package contains files for development: headers, static libs, etc."
|
|
||||||
|
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmove usr/include usr
|
vmove usr/include usr
|
||||||
|
|
|
@ -1,42 +1,26 @@
|
||||||
# Template build file for 'gmp'
|
# Template build file for 'gmp'
|
||||||
pkgname=gmp
|
pkgname=gmp
|
||||||
version=5.0.5
|
version=5.1.0a
|
||||||
homepage="http://gmplib.org/"
|
revision=1
|
||||||
distfiles="${GNU_SITE}/gmp/gmp-${version}.tar.bz2"
|
wrksrc="gmp-5.1.0"
|
||||||
|
makedepends="automake"
|
||||||
|
crossmakedepends="zlib-devel"
|
||||||
|
subpackages="gmp-devel"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
# Build with -fexceptions as suggested by ppl.
|
# Build with -fexceptions as suggested by ppl.
|
||||||
CPPFLAGS="-fexceptions"
|
CPPFLAGS="-fexceptions"
|
||||||
if [ "${XBPS_MACHINE}" = "i686" ]; then
|
if [ "${XBPS_MACHINE}" = "i686" ]; then
|
||||||
configure_args="ABI=32"
|
cnfigure_args="ABI=32"
|
||||||
fi
|
fi
|
||||||
configure_args="${configure_args} --enable-cxx --enable-mpbsd
|
configure_args="${configure_args} --enable-cxx --build=${XBPS_MACHINE}-unknown-linux-gnu"
|
||||||
--build=${XBPS_MACHINE}-unknown-linux-gnu"
|
|
||||||
revision=1
|
|
||||||
short_desc="Library for arbitrary precision arithmetic"
|
short_desc="Library for arbitrary precision arithmetic"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="LGPL-3"
|
license="LGPL-3"
|
||||||
checksum=1f588aaccc41bb9aed946f9fe38521c26d8b290d003c5df807f65690f2aadec9
|
homepage="http://gmplib.org/"
|
||||||
long_desc="
|
distfiles="ftp://ftp.gmplib.org/pub/gmp-5.1.0/gmp-${version}.tar.xz"
|
||||||
GNU MP is a library for arbitrary precision arithmetic, operating on signed
|
checksum=0f6c0dc6346a1dc906a3c628118dcc1f44607f2100fbd03b2e457e4138384731
|
||||||
integers, rational numbers, and floating point numbers. It has a rich set
|
|
||||||
of functions, and the functions have a regular interface.
|
|
||||||
|
|
||||||
GNU MP is designed to be as fast as possible, both for small operands and for
|
pre_configure() {
|
||||||
huge operands. The speed is achieved by using fullwords as the basic
|
sed -e "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" -i configure.in
|
||||||
arithmetic type, by using fast algorithms, by carefully optimized assembly
|
autoreconf -fi
|
||||||
code for the most common inner loops for a lots of CPUs, and by a general
|
|
||||||
emphasis on speed (instead of simplicity or elegance).
|
|
||||||
|
|
||||||
The speed of GNU MP is believed to be faster than any other similar library.
|
|
||||||
The advantage for GNU MP increases with the operand sizes for certain
|
|
||||||
operations, since GNU MP in many cases has asymptotically faster algorithms."
|
|
||||||
|
|
||||||
bootstrap=yes
|
|
||||||
subpackages="gmp-devel"
|
|
||||||
|
|
||||||
post_install() {
|
|
||||||
# Required for multilib build.
|
|
||||||
if grep -q "\-m32" ${DESTDIR}/usr/include/gmp.h; then
|
|
||||||
sed -i "s|\-m32 ||g" ${DESTDIR}/usr/include/gmp.h
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue