void-packages/srcpkgs/mpir/template

38 lines
900 B
Bash
Raw Normal View History

2020-02-01 21:05:37 +01:00
# Template file for 'mpir'
pkgname=mpir
version=3.0.0
revision=1
build_style=gnu-configure
configure_args="--enable-cxx"
hostmakedepends="m4 which yasm"
short_desc="Multiple Precision Integers and Rationals"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="LGPL-3.0-or-later"
homepage="http://mpir.org"
distfiles="${homepage}/mpir-${version}.tar.bz2"
checksum=52f63459cf3f9478859de29e00357f004050ead70b45913f2c2269d9708675bb
# prevent elfv1 asm code from being used (fails to link)
# and on ppc32, avoid textrels (assembly code is used)
case "$XBPS_TARGET_MACHINE" in
ppc64*)
export ABI=mode64
export MPN_PATH=generic
;;
ppc*)
nopie=yes
CFLAGS="-fPIC"
;;
esac
2020-02-01 21:05:37 +01:00
mpir-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/share
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}