void-packages/srcpkgs/gmp/template

36 lines
867 B
Text
Raw Normal View History

# Template build file for 'gmp'
pkgname=gmp
2014-06-01 19:02:31 +00:00
version=6.0.0
revision=1
2014-05-19 08:17:28 +00:00
bootstrap=yes
build_style=gnu-configure
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 13:54:50 +00:00
license="LGPL-3"
2013-02-06 10:27:26 +00:00
homepage="http://gmplib.org/"
2014-06-01 19:02:31 +00:00
distfiles="http://mirror.anl.gov/pub/gnu/gmp/gmp-${version}a.tar.xz"
checksum=9156d32edac6955bc53b0218f5f3763facb890b73a835d5e1b901dcf8eb8b764
if [ "$CROSS_BUILD" ]; then
2013-10-02 06:17:15 +00:00
hostmakedepends="libtool"
pre_configure() {
2013-10-02 06:17:15 +00:00
libtoolize -f
}
fi
gmp-devel_package() {
depends="gmp>=${version}_${revision}"
2013-05-25 06:45:31 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
2013-10-02 06:17:15 +00:00
vmove "usr/lib/*.so"
vmove usr/share
}
}