2008-10-21 01:43:33 +02:00
|
|
|
# Template build file for 'gmp'
|
|
|
|
pkgname=gmp
|
2013-02-06 11:27:26 +01:00
|
|
|
version=5.1.0a
|
|
|
|
revision=1
|
|
|
|
wrksrc="gmp-5.1.0"
|
|
|
|
makedepends="automake"
|
|
|
|
crossmakedepends="zlib-devel"
|
|
|
|
subpackages="gmp-devel"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2009-11-14 17:51:22 +01:00
|
|
|
# Build with -fexceptions as suggested by ppl.
|
|
|
|
CPPFLAGS="-fexceptions"
|
2011-11-08 11:56:17 +01:00
|
|
|
if [ "${XBPS_MACHINE}" = "i686" ]; then
|
2013-02-06 11:27:26 +01:00
|
|
|
cnfigure_args="ABI=32"
|
2010-03-29 14:58:36 +02:00
|
|
|
fi
|
2013-02-06 11:27:26 +01:00
|
|
|
configure_args="${configure_args} --enable-cxx --build=${XBPS_MACHINE}-unknown-linux-gnu"
|
2008-10-21 01:43:33 +02:00
|
|
|
short_desc="Library for arbitrary precision arithmetic"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-01-27 14:54:50 +01:00
|
|
|
license="LGPL-3"
|
2013-02-06 11:27:26 +01:00
|
|
|
homepage="http://gmplib.org/"
|
|
|
|
distfiles="ftp://ftp.gmplib.org/pub/gmp-5.1.0/gmp-${version}.tar.xz"
|
|
|
|
checksum=0f6c0dc6346a1dc906a3c628118dcc1f44607f2100fbd03b2e457e4138384731
|
2010-05-21 00:53:29 +02:00
|
|
|
|
2013-02-06 11:27:26 +01:00
|
|
|
pre_configure() {
|
|
|
|
sed -e "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" -i configure.in
|
|
|
|
autoreconf -fi
|
2010-05-21 00:53:29 +02:00
|
|
|
}
|