void-packages/srcpkgs/gmp/template

52 lines
1.1 KiB
Bash
Raw Normal View History

# Template build file for 'gmp'
pkgname=gmp
2014-06-01 21:02:31 +02:00
version=6.0.0
revision=3
2014-05-19 10:17:28 +02:00
bootstrap=yes
build_style=gnu-configure
configure_args="--enable-cxx"
hostmakedepends="m4"
makedepends="zlib-devel"
short_desc="Library for arbitrary precision arithmetic"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2012-01-27 14:54:50 +01:00
license="LGPL-3"
2013-02-06 11:27:26 +01:00
homepage="http://gmplib.org/"
2015-02-11 02:04:25 +01:00
distfiles="https://gmplib.org/download/gmp/gmp-${version}a.tar.xz"
2014-06-01 21:02:31 +02:00
checksum=9156d32edac6955bc53b0218f5f3763facb890b73a835d5e1b901dcf8eb8b764
subpackages="gmpxx gmpxx-devel gmp-devel"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" libtool"
pre_configure() {
libtoolize -f
}
fi
gmpxx_package() {
short_desc+=" - C++ support"
replaces="gmp<6.0.0_2"
pkg_install() {
vmove usr/lib/libgmpxx.so.*
}
}
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
}
}
gmp-devel_package() {
depends="gmp-${version}_${revision}"
2013-05-25 08:45:31 +02:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
2013-10-02 08:17:15 +02:00
vmove "usr/lib/*.so"
vmove usr/share
}
}