2008-10-21 01:43:33 +02:00
|
|
|
# Template build file for 'gmp'
|
|
|
|
pkgname=gmp
|
2013-10-02 08:17:15 +02:00
|
|
|
version=5.1.3
|
2013-02-06 11:27:26 +01:00
|
|
|
revision=1
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2009-11-14 17:51:22 +01:00
|
|
|
# Build with -fexceptions as suggested by ppl.
|
|
|
|
CPPFLAGS="-fexceptions"
|
2013-04-11 09:52:59 +02:00
|
|
|
configure_args="--enable-cxx --build=${XBPS_MACHINE}-unknown-linux-gnu"
|
2013-03-24 10:21:58 +01:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
2013-04-11 09:52:59 +02:00
|
|
|
cnfigure_args+=" ABI=32"
|
2010-03-29 14:58:36 +02:00
|
|
|
fi
|
2013-03-24 10:21:58 +01:00
|
|
|
makedepends="zlib-devel"
|
2008-10-21 01:43:33 +02:00
|
|
|
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/"
|
2013-02-17 05:51:02 +01:00
|
|
|
distfiles="ftp://ftp.gmplib.org/pub/gmp-${version}/gmp-${version}.tar.xz"
|
2013-10-02 08:17:15 +02:00
|
|
|
checksum=dee2eda37f4ff541f30019932db0c37f6f77a30ba3609234933b1818f9b07071
|
2010-05-21 00:53:29 +02:00
|
|
|
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-10-02 08:17:15 +02:00
|
|
|
hostmakedepends="libtool"
|
2013-02-18 13:01:06 +01:00
|
|
|
pre_configure() {
|
2013-10-02 08:17:15 +02:00
|
|
|
libtoolize -f
|
2013-02-18 13:01:06 +01:00
|
|
|
}
|
|
|
|
fi
|
2013-04-11 09:52:59 +02:00
|
|
|
|
|
|
|
gmp-devel_package() {
|
|
|
|
depends="gmp>=${version}"
|
2013-05-25 08:45:31 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-11 09:52:59 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2013-10-02 08:17:15 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-11 09:52:59 +02:00
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|