61 lines
1.4 KiB
Bash
61 lines
1.4 KiB
Bash
# Template file for 'uhd'
|
|
pkgname=uhd
|
|
version=4.0.0.0
|
|
revision=3
|
|
build_wrksrc=host
|
|
build_style=cmake
|
|
configure_args="-DCMAKE_BUILD_TYPE=None"
|
|
hostmakedepends="doxygen pkg-config python3-Mako python3-numpy python3-requests"
|
|
makedepends="libusb-devel boost-devel"
|
|
short_desc="Ettus USRP Hardware driver library"
|
|
maintainer="Remi Pommarel <repk@triplefau.lt>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://files.ettus.com/manual/"
|
|
changelog="https://raw.githubusercontent.com/EttusResearch/uhd/master/CHANGELOG"
|
|
distfiles="https://github.com/EttusResearch/uhd/archive/v${version}.tar.gz"
|
|
checksum=4f3513c43edf0178391ed5755266864532716b8b503bcfb9a983ae6256c51b14
|
|
python_version=3
|
|
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
arm*) configure_args+=" -DNEON_SIMD_ENABLE=OFF"
|
|
esac
|
|
|
|
_use_libatomic=no
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
_use_libatomic=yes
|
|
else
|
|
# 128-bit atomics
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc*) _use_libatomic=yes ;;
|
|
esac
|
|
fi
|
|
|
|
if [ "$_use_libatomic" = "yes" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
|
|
fi
|
|
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/usr/lib/uhd/tests
|
|
}
|
|
|
|
uhd-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/share/man/man1
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/cmake
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
uhd-doc_package() {
|
|
short_desc+=" - doc files"
|
|
pkg_install() {
|
|
vmove usr/share/doc
|
|
}
|
|
}
|