40 lines
928 B
Text
40 lines
928 B
Text
# Template build file for 'gmp'
|
|
pkgname=gmp
|
|
version=6.0.0
|
|
revision=2
|
|
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@gmail.com>"
|
|
license="LGPL-3"
|
|
homepage="http://gmplib.org/"
|
|
distfiles="http://mirror.anl.gov/pub/gnu/gmp/gmp-${version}a.tar.xz"
|
|
checksum=9156d32edac6955bc53b0218f5f3763facb890b73a835d5e1b901dcf8eb8b764
|
|
|
|
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.*
|
|
}
|
|
}
|
|
gmp-devel_package() {
|
|
depends="gmpxx>=${version}_${revision} gmp>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share
|
|
}
|
|
}
|