diff --git a/common/shlibs b/common/shlibs index c90e2f0dbd..2a3339b3f7 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3381,3 +3381,4 @@ libcaf_core.so.0.16.2 bro-2.6.1_1 libcaf_openssl.so.0.16.2 bro-2.6.1_1 libllhttp.so.1 llhttp-1.0.1_1 libpinyin.so.13 libpinyin-2.2.1_1 +libuhd.so.3 uhd-3.13.0.2_1 diff --git a/srcpkgs/uhd-devel b/srcpkgs/uhd-devel new file mode 120000 index 0000000000..f90098ab5c --- /dev/null +++ b/srcpkgs/uhd-devel @@ -0,0 +1 @@ +uhd \ No newline at end of file diff --git a/srcpkgs/uhd-doc b/srcpkgs/uhd-doc new file mode 120000 index 0000000000..f90098ab5c --- /dev/null +++ b/srcpkgs/uhd-doc @@ -0,0 +1 @@ +uhd \ No newline at end of file diff --git a/srcpkgs/uhd/patches/boost-169.patch b/srcpkgs/uhd/patches/boost-169.patch new file mode 100644 index 0000000000..7c6eba60e4 --- /dev/null +++ b/srcpkgs/uhd/patches/boost-169.patch @@ -0,0 +1,25 @@ +From 5c012cad7858cadcaa85ec295080f3c8b21fdee0 Mon Sep 17 00:00:00 2001 +From: Martin Braun +Date: Wed, 9 Jan 2019 09:17:07 -0800 +Subject: [PATCH] lib: experts: Add potentially missing but sometimes inferred + include + +This adds an include for boost/core/noncopyable.hpp. Without it, builds +would potentially fail on Boost 1.69++. +--- + host/lib/include/uhdlib/experts/expert_nodes.hpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/host/lib/include/uhdlib/experts/expert_nodes.hpp b/host/lib/include/uhdlib/experts/expert_nodes.hpp +index 697ca19c3..8fa183835 100644 +--- host/lib/include/uhdlib/experts/expert_nodes.hpp ++++ host/lib/include/uhdlib/experts/expert_nodes.hpp +@@ -12,6 +12,7 @@ + #include + #include + #include ++#include + #include + #include + #include + diff --git a/srcpkgs/uhd/template b/srcpkgs/uhd/template new file mode 100644 index 0000000000..0b2c543530 --- /dev/null +++ b/srcpkgs/uhd/template @@ -0,0 +1,40 @@ +# Template file for 'uhd' +pkgname=uhd +version=3.13.0.2 +revision=1 +wrksrc="${pkgname}-${version}" +build_wrksrc=host +build_style=cmake +hostmakedepends="doxygen pkg-config" +makedepends="python-Mako libusb-devel python-numpy python-devel boost-devel" +short_desc="Ettus USRP Hardware driver library" +maintainer="Remi Pommarel " +license="GPL-3.0-or-later" +homepage="https://files.ettus.com/" +distfiles="https://github.com/EttusResearch/uhd/archive/v${version}.tar.gz" +checksum=e18d0524cbf571be4847fd7f971dc30c37efd9e7a333761b74e1266a07cbd35b + +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/uhd/examples + vmove usr/lib/cmake + vmove "usr/lib/*.so" + } +} + +uhd-doc_package() { + short_desc+=" - doc files" + noarch=yes + pkg_install() { + vmove usr/share/doc + } +}