void-packages/srcpkgs/gmp/template

27 lines
773 B
Plaintext

# Template build file for 'gmp'
pkgname=gmp
version=5.1.1
revision=1
subpackages="gmp-devel"
build_style=gnu-configure
# Build with -fexceptions as suggested by ppl.
CPPFLAGS="-fexceptions"
if [ "$XBPS_MACHINE" = "i686" ]; then
cnfigure_args="ABI=32"
fi
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"
homepage="http://gmplib.org/"
distfiles="ftp://ftp.gmplib.org/pub/gmp-${version}/gmp-${version}.tar.xz"
checksum=4bd64d782fdeb61aeed45b434fca5246d66baa9de76f87cba30c38460d8834c2
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
makedepends="automake"
crossmakedepends="zlib-devel"
pre_configure() {
autoreconf -fi
}
fi