37 lines
923 B
Plaintext
37 lines
923 B
Plaintext
# Template build file for 'gmp'
|
|
pkgname=gmp
|
|
version=5.1.3
|
|
revision=2
|
|
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>"
|
|
license="LGPL-3"
|
|
homepage="http://gmplib.org/"
|
|
distfiles="http://mirror.anl.gov/pub/gnu/gmp/gmp-${version}.tar.xz"
|
|
checksum=dee2eda37f4ff541f30019932db0c37f6f77a30ba3609234933b1818f9b07071
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends="libtool"
|
|
pre_configure() {
|
|
libtoolize -f
|
|
}
|
|
fi
|
|
|
|
gmp-devel_package() {
|
|
depends="gmp>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share
|
|
}
|
|
}
|