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