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'.
|
||||
#
|
||||
depends="glibc-devel gmp"
|
||||
short_desc="${sourcepkg} development files"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains files for development: headers, static libs, etc."
|
||||
|
||||
depends="glibc-devel gmp>=${version}"
|
||||
short_desc="${short_desc} -- development files"
|
||||
|
||||
do_install() {
|
||||
vmove usr/include usr
|
||||
|
|
|
@ -1,42 +1,26 @@
|
|||
# Template build file for 'gmp'
|
||||
pkgname=gmp
|
||||
version=5.0.5
|
||||
homepage="http://gmplib.org/"
|
||||
distfiles="${GNU_SITE}/gmp/gmp-${version}.tar.bz2"
|
||||
version=5.1.0a
|
||||
revision=1
|
||||
wrksrc="gmp-5.1.0"
|
||||
makedepends="automake"
|
||||
crossmakedepends="zlib-devel"
|
||||
subpackages="gmp-devel"
|
||||
build_style=gnu-configure
|
||||
# Build with -fexceptions as suggested by ppl.
|
||||
CPPFLAGS="-fexceptions"
|
||||
if [ "${XBPS_MACHINE}" = "i686" ]; then
|
||||
configure_args="ABI=32"
|
||||
cnfigure_args="ABI=32"
|
||||
fi
|
||||
configure_args="${configure_args} --enable-cxx --enable-mpbsd
|
||||
--build=${XBPS_MACHINE}-unknown-linux-gnu"
|
||||
revision=1
|
||||
configure_args="${configure_args} --enable-cxx --build=${XBPS_MACHINE}-unknown-linux-gnu"
|
||||
short_desc="Library for arbitrary precision arithmetic"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="LGPL-3"
|
||||
checksum=1f588aaccc41bb9aed946f9fe38521c26d8b290d003c5df807f65690f2aadec9
|
||||
long_desc="
|
||||
GNU MP is a library for arbitrary precision arithmetic, operating on signed
|
||||
integers, rational numbers, and floating point numbers. It has a rich set
|
||||
of functions, and the functions have a regular interface.
|
||||
homepage="http://gmplib.org/"
|
||||
distfiles="ftp://ftp.gmplib.org/pub/gmp-5.1.0/gmp-${version}.tar.xz"
|
||||
checksum=0f6c0dc6346a1dc906a3c628118dcc1f44607f2100fbd03b2e457e4138384731
|
||||
|
||||
GNU MP is designed to be as fast as possible, both for small operands and for
|
||||
huge operands. The speed is achieved by using fullwords as the basic
|
||||
arithmetic type, by using fast algorithms, by carefully optimized assembly
|
||||
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
|
||||
pre_configure() {
|
||||
sed -e "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" -i configure.in
|
||||
autoreconf -fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue