void-packages/srcpkgs/gmp/template

38 lines
937 B
Plaintext
Raw Normal View History

# Template build file for 'gmp'
pkgname=gmp
2013-10-02 08:17:15 +02:00
version=5.1.3
revision=2
2014-05-19 10:17:28 +02:00
bootstrap=yes
build_style=gnu-configure
# Build with -fexceptions as suggested by ppl.
CPPFLAGS="-fexceptions"
configure_args="--enable-cxx --build=${XBPS_MACHINE}-unknown-linux-gnu"
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
cnfigure_args+=" ABI=32"
fi
makedepends="zlib-devel"
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="http://mirror.anl.gov/pub/gnu/gmp/gmp-${version}.tar.xz"
2013-10-02 08:17:15 +02:00
checksum=dee2eda37f4ff541f30019932db0c37f6f77a30ba3609234933b1818f9b07071
if [ "$CROSS_BUILD" ]; then
2013-10-02 08:17:15 +02:00
hostmakedepends="libtool"
pre_configure() {
2013-10-02 08:17:15 +02:00
libtoolize -f
}
fi
gmp-devel_package() {
depends="gmp>=${version}_${revision}"
2013-05-25 08:45:31 +02:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
2013-10-02 08:17:15 +02:00
vmove "usr/lib/*.so"
vmove usr/share
}
}