60 lines
1.4 KiB
Bash
60 lines
1.4 KiB
Bash
# Template file for 'uhd'
|
|
pkgname=uhd
|
|
version=4.6.0.0
|
|
revision=1
|
|
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=5e6eb05abb4a3973bef8837fb45a5147be04698229e22801369f728fcc6db38d
|
|
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
|
|
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
|
|
}
|
|
}
|