43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Template file for 'hwloc'
|
|
pkgname=hwloc
|
|
version=2.6.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config"
|
|
makedepends="cairo-devel ncurses-devel libxml2-devel eudev-libudev-devel"
|
|
short_desc="Portable abstraction of hierarchical hardware architectures"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://www.open-mpi.org/projects/hwloc/"
|
|
distfiles="https://www.open-mpi.org/software/hwloc/v${version%.*}/downloads/${pkgname}-${version}.tar.bz2"
|
|
checksum=e1f073e44e28c296ff848dead5e9bd6e2426b77f95ead1792358958e859fa83a
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*|ppc64*) makedepends+=" libnuma-devel";;
|
|
esac
|
|
|
|
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
|
|
}
|
|
}
|