void-packages/srcpkgs/hwloc/template
2017-02-24 14:30:53 +01:00

41 lines
1.1 KiB
Bash

# Template file for 'hwloc'
pkgname=hwloc
version=1.11.6
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="cairo-devel ncurses-devel libxml2-devel eudev-libudev-devel"
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) makedepends+=" libnuma-devel";;
esac
short_desc="Portable abstraction of hierarchical hardware architectures"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="3-clause-BSD"
homepage="http://www.open-mpi.org/projects/hwloc/"
distfiles="http://www.open-mpi.org/software/hwloc/v${version%.*}/downloads/${pkgname}-${version}.tar.bz2"
checksum=7685f7b96c7c79412c494633862612b36f8745f05f84d35ab495d38b456d87fa
post_install() {
rm -rf ${DESTDIR}/usr/share/doc
}
libhwloc_package() {
short_desc+=" - libraries"
pkg_install() {
vmove usr/lib/*.so.*
vmove usr/share/hwloc/hwloc.dtd
vlicense COPYING
}
}
libhwloc-devel_package() {
short_desc+=" - development files"
depends="libhwloc>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/share/man/man3
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
vmove usr/share/hwloc/hwloc-valgrind.supp
}
}