2008-10-20 23:43:33 +00:00
|
|
|
# Template build file for 'gmp'
|
|
|
|
pkgname=gmp
|
2014-06-01 19:02:31 +00:00
|
|
|
version=6.0.0
|
2015-03-21 01:38:13 +00:00
|
|
|
revision=3
|
2014-05-19 08:17:28 +00:00
|
|
|
bootstrap=yes
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2014-12-29 17:21:49 +00:00
|
|
|
configure_args="--enable-cxx"
|
2015-01-04 11:16:55 +00:00
|
|
|
hostmakedepends="m4"
|
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"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-01-27 13:54:50 +00:00
|
|
|
license="LGPL-3"
|
2013-02-06 10:27:26 +00:00
|
|
|
homepage="http://gmplib.org/"
|
2015-02-11 01:04:25 +00:00
|
|
|
distfiles="https://gmplib.org/download/gmp/gmp-${version}a.tar.xz"
|
2014-06-01 19:02:31 +00:00
|
|
|
checksum=9156d32edac6955bc53b0218f5f3763facb890b73a835d5e1b901dcf8eb8b764
|
2010-05-20 22:53:29 +00:00
|
|
|
|
2015-03-21 01:38:13 +00:00
|
|
|
subpackages="gmpxx gmpxx-devel gmp-devel"
|
|
|
|
|
2015-01-04 11:16:55 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends+=" libtool"
|
|
|
|
pre_configure() {
|
|
|
|
libtoolize -f
|
|
|
|
}
|
|
|
|
fi
|
2013-04-11 07:52:59 +00:00
|
|
|
|
2014-12-29 17:21:49 +00:00
|
|
|
gmpxx_package() {
|
|
|
|
short_desc+=" - C++ support"
|
|
|
|
replaces="gmp<6.0.0_2"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libgmpxx.so.*
|
|
|
|
}
|
|
|
|
}
|
2015-03-21 01:38:13 +00:00
|
|
|
gmpxx-devel_package() {
|
|
|
|
depends="gmpxx-${version}_${revision}"
|
|
|
|
short_desc+=" - C++ development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include/gmpxx.h
|
|
|
|
vmove usr/lib/libgmpxx.a
|
|
|
|
vmove usr/lib/libgmpxx.so
|
|
|
|
}
|
|
|
|
}
|
2013-04-11 07:52:59 +00:00
|
|
|
gmp-devel_package() {
|
2015-03-21 01:38:13 +00:00
|
|
|
depends="gmp-${version}_${revision}"
|
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"
|
2013-10-02 06:17:15 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-11 07:52:59 +00:00
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|