42 lines
955 B
Plaintext
42 lines
955 B
Plaintext
# Template build file for 'gmp'
|
|
pkgname=gmp
|
|
version=5.1.2
|
|
revision=1
|
|
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="ftp://ftp.gmplib.org/pub/gmp-${version}/gmp-${version}.tar.xz"
|
|
checksum=c7d943a6eceb4f0d3d3ab1176aec37853831cdfa281e012f8a344ba3ceefcbc2
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends="automake libtool"
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
fi
|
|
|
|
gmp-devel_package() {
|
|
depends="gmp>=${version}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove usr/share
|
|
}
|
|
}
|
|
|
|
gmp_package() {
|
|
pkg_install() {
|
|
vmove usr
|
|
}
|
|
}
|