void-packages/srcpkgs/gmp/template

28 lines
824 B
Plaintext
Raw Normal View History

# Template build file for 'gmp'
pkgname=gmp
2013-02-17 05:51:02 +01:00
version=5.1.1
2013-02-06 11:27:26 +01:00
revision=1
makedepends="automake"
crossmakedepends="zlib-devel"
subpackages="gmp-devel"
build_style=gnu-configure
# Build with -fexceptions as suggested by ppl.
CPPFLAGS="-fexceptions"
2013-02-17 05:51:02 +01:00
if [ "$XBPS_MACHINE" = "x86_64" ]; then
configure_args="ABI=64"
else
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/"
2013-02-17 05:51:02 +01:00
distfiles="ftp://ftp.gmplib.org/pub/gmp-${version}/gmp-${version}.tar.xz"
checksum=4bd64d782fdeb61aeed45b434fca5246d66baa9de76f87cba30c38460d8834c2
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
}