void-packages/srcpkgs/gmp/template

27 lines
809 B
Plaintext
Raw Normal View History

# 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"
build_style=gnu-configure
# Build with -fexceptions as suggested by ppl.
CPPFLAGS="-fexceptions"
if [ "${XBPS_MACHINE}" = "i686" ]; then
2013-02-06 11:27:26 +01:00
cnfigure_args="ABI=32"
fi
2013-02-06 11:27:26 +01:00
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>"
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
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
}