Wed Apr 8 08:07:18 2020 UTC ()
uhd: fix building when py-numpy is also installed; docs/CMakeLists.txt is not necessary any more


(adam)
diff -r1.54 -r1.55 pkgsrc/ham/uhd/Makefile
diff -r1.16 -r1.17 pkgsrc/ham/uhd/PLIST
diff -r1.23 -r1.24 pkgsrc/ham/uhd/distinfo
diff -r1.2 -r1.3 pkgsrc/ham/uhd/patches/patch-CMakeLists.txt
diff -r1.2 -r0 pkgsrc/ham/uhd/patches/patch-docs_CMakeLists.txt

cvs diff -r1.54 -r1.55 pkgsrc/ham/uhd/Makefile (expand / switch to unified diff)

--- pkgsrc/ham/uhd/Makefile 2020/04/07 15:57:02 1.54
+++ pkgsrc/ham/uhd/Makefile 2020/04/08 08:07:17 1.55
@@ -1,48 +1,49 @@ @@ -1,48 +1,49 @@
1# $NetBSD: Makefile,v 1.54 2020/04/07 15:57:02 mef Exp $ 1# $NetBSD: Makefile,v 1.55 2020/04/08 08:07:17 adam Exp $
2 2
3DISTNAME= uhd-3.15.0.0 3DISTNAME= uhd-3.15.0.0
4CATEGORIES= ham 4CATEGORIES= ham
5MASTER_SITES= ${MASTER_SITE_GITHUB:=EttusResearch/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=EttusResearch/}
6GITHUB_TAG= v${PKGVERSION_NOREV} 6GITHUB_TAG= v${PKGVERSION_NOREV}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/EttusResearch/uhd 9HOMEPAGE= https://github.com/EttusResearch/uhd
10COMMENT= USRP (Universal Software Radio Peripheral) Hardware Drivers 10COMMENT= USRP (Universal Software Radio Peripheral) Hardware Drivers
11LICENSE= gnu-gpl-v2 11LICENSE= gnu-gpl-v2
12 12
13DEPENDS+= ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako 13DEPENDS+= ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako
14DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests 14DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
15 15
 16CMAKE_ARGS+= -DENABLE_MAN_PAGE_COMPRESSION=OFF
16CMAKE_ARGS+= -DPKG_MAN_DIR=${PKGMANDIR}/man1 17CMAKE_ARGS+= -DPKG_MAN_DIR=${PKGMANDIR}/man1
17CMAKE_ARGS+= -DRST2HTML_EXECUTABLE=${PREFIX}/bin/rst2html-${PYVERSSUFFIX}.py 18CMAKE_ARGS+= -DRST2HTML_EXECUTABLE=${PREFIX}/bin/rst2html-${PYVERSSUFFIX}.py
18CMAKE_ARGS+= -Wno-dev 19CMAKE_ARGS+= -Wno-dev
19.include "../../lang/python/pyversion.mk" 20.include "../../lang/python/pyversion.mk"
20CMAKE_ARGS+= -DPYTHON_EXECUTABLE=${PYTHONBIN} 21CMAKE_ARGS+= -DPYTHON_EXECUTABLE=${PYTHONBIN}
21.if !empty(_PYTHON_VERSION:M3*) 22.if !empty(_PYTHON_VERSION:M3*)
22CMAKE_ARGS+= -DENABLE_PYTHON3=ON 23CMAKE_ARGS+= -DENABLE_PYTHON3=ON
23.endif 24.endif
24 25
25# Upstream says C++11 is required, even though it is not documented. 26# Upstream says C++11 is required, even though it is not documented.
26# It is documented that gcc 4.8 is required, when using gcc. 27# It is documented that gcc 4.8 is required, when using gcc.
27# https://github.com/EttusResearch/uhd/issues/236 28# https://github.com/EttusResearch/uhd/issues/236
28# 29#
29# Upstream does not seem to have any documentation that gnu++11 is 30# Upstream does not seem to have any documentation that gnu++11 is
30# required, but it builds with tha and not with c++11 on netbsd-8. No 31# required, but it builds with tha and not with c++11 on netbsd-8. No
31# ticket filed because #236 resulted in in-ticket clarification only 32# ticket filed because #236 resulted in in-ticket clarification only
32# (and not a doc edit), and having experimented no clarification is 33# (and not a doc edit), and having experimented no clarification is
33# needed. 34# needed.
34USE_CMAKE= yes 35USE_CMAKE= yes
35USE_LANGUAGES= c gnu++11 36USE_LANGUAGES= c gnu++14
36USE_TOOLS+= pkg-config 37USE_TOOLS+= pkg-config
37GCC_REQD+= 4.8 38GCC_REQD+= 4.8
38# to avoid extra pax_global_header 39# to avoid extra pax_global_header
39EXTRACT_USING= gtar 40EXTRACT_USING= gtar
40WRKSRC= ${WRKDIR}/${DISTNAME}/host 41WRKSRC= ${WRKDIR}/${DISTNAME}/host
41 42
42# The files with their name uhd-xxxx, are moved down from uhd/xxxx for this process. 43# The files with their name uhd-xxxx, are moved down from uhd/xxxx for this process.
43REPLACE_PYTHON+= utils/converter_benchmark.py 44REPLACE_PYTHON+= utils/converter_benchmark.py
44REPLACE_PYTHON+= utils/latency/graph.py 45REPLACE_PYTHON+= utils/latency/graph.py
45REPLACE_PYTHON+= utils/latency/run_tests.py 46REPLACE_PYTHON+= utils/latency/run_tests.py
46REPLACE_PYTHON+= utils/uhd_images_downloader.py.in 47REPLACE_PYTHON+= utils/uhd_images_downloader.py.in
47REPLACE_PYTHON+= utils/usrp2_card_burner.py 48REPLACE_PYTHON+= utils/usrp2_card_burner.py
48REPLACE_PYTHON+= utils/usrp2_card_burner_gui.py 49REPLACE_PYTHON+= utils/usrp2_card_burner_gui.py

cvs diff -r1.16 -r1.17 pkgsrc/ham/uhd/PLIST (expand / switch to unified diff)

--- pkgsrc/ham/uhd/PLIST 2020/04/07 15:51:50 1.16
+++ pkgsrc/ham/uhd/PLIST 2020/04/08 08:07:17 1.17
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.16 2020/04/07 15:51:50 mef Exp $ 1@comment $NetBSD: PLIST,v 1.17 2020/04/08 08:07:17 adam Exp $
2bin/uhd_cal_rx_iq_balance 2bin/uhd_cal_rx_iq_balance
3bin/uhd_cal_tx_dc_offset 3bin/uhd_cal_tx_dc_offset
4bin/uhd_cal_tx_iq_balance 4bin/uhd_cal_tx_iq_balance
5bin/uhd_config_info 5bin/uhd_config_info
6bin/uhd_find_devices 6bin/uhd_find_devices
7bin/uhd_image_loader 7bin/uhd_image_loader
8bin/uhd_usrp_probe 8bin/uhd_usrp_probe
9include/uhd.h 9include/uhd.h
10include/uhd/build_info.hpp 10include/uhd/build_info.hpp
11include/uhd/config.h 11include/uhd/config.h
12include/uhd/config.hpp 12include/uhd/config.hpp
13include/uhd/convert.hpp 13include/uhd/convert.hpp
14include/uhd/deprecated.hpp 14include/uhd/deprecated.hpp
@@ -130,27 +130,27 @@ include/uhd/utils/safe_call.hpp @@ -130,27 +130,27 @@ include/uhd/utils/safe_call.hpp
130include/uhd/utils/safe_main.hpp 130include/uhd/utils/safe_main.hpp
131include/uhd/utils/scope_exit.hpp 131include/uhd/utils/scope_exit.hpp
132include/uhd/utils/static.hpp 132include/uhd/utils/static.hpp
133include/uhd/utils/tasks.hpp 133include/uhd/utils/tasks.hpp
134include/uhd/utils/thread.hpp 134include/uhd/utils/thread.hpp
135include/uhd/utils/thread_priority.h 135include/uhd/utils/thread_priority.h
136include/uhd/utils/thread_priority.hpp 136include/uhd/utils/thread_priority.hpp
137include/uhd/version.h 137include/uhd/version.h
138include/uhd/version.hpp 138include/uhd/version.hpp
139lib/cmake/uhd/UHDBoost.cmake 139lib/cmake/uhd/UHDBoost.cmake
140lib/cmake/uhd/UHDConfig.cmake 140lib/cmake/uhd/UHDConfig.cmake
141lib/cmake/uhd/UHDConfigVersion.cmake 141lib/cmake/uhd/UHDConfigVersion.cmake
142lib/libuhd.so 142lib/libuhd.so
143lib/libuhd.so.3.15.0 143lib/libuhd.so.${PKGVERSION}
144lib/pkgconfig/uhd.pc 144lib/pkgconfig/uhd.pc
145lib/uhd/examples/benchmark_rate 145lib/uhd/examples/benchmark_rate
146lib/uhd/examples/benchmark_streamer 146lib/uhd/examples/benchmark_streamer
147lib/uhd/examples/gpio 147lib/uhd/examples/gpio
148lib/uhd/examples/latency_test 148lib/uhd/examples/latency_test
149lib/uhd/examples/network_relay 149lib/uhd/examples/network_relay
150lib/uhd/examples/replay_samples_from_file 150lib/uhd/examples/replay_samples_from_file
151lib/uhd/examples/rfnoc_nullsource_ce_rx 151lib/uhd/examples/rfnoc_nullsource_ce_rx
152lib/uhd/examples/rfnoc_radio_loopback 152lib/uhd/examples/rfnoc_radio_loopback
153lib/uhd/examples/rfnoc_rx_to_file 153lib/uhd/examples/rfnoc_rx_to_file
154lib/uhd/examples/rx_ascii_art_dft 154lib/uhd/examples/rx_ascii_art_dft
155lib/uhd/examples/rx_multi_samples 155lib/uhd/examples/rx_multi_samples
156lib/uhd/examples/rx_samples_c 156lib/uhd/examples/rx_samples_c

cvs diff -r1.23 -r1.24 pkgsrc/ham/uhd/distinfo (expand / switch to unified diff)

--- pkgsrc/ham/uhd/distinfo 2020/04/07 15:51:50 1.23
+++ pkgsrc/ham/uhd/distinfo 2020/04/08 08:07:17 1.24
@@ -1,9 +1,8 @@ @@ -1,9 +1,8 @@
1$NetBSD: distinfo,v 1.23 2020/04/07 15:51:50 mef Exp $ 1$NetBSD: distinfo,v 1.24 2020/04/08 08:07:17 adam Exp $
2 2
3SHA1 (uhd-3.15.0.0.tar.gz) = 17286a52a591038af16e870962c1767c5935ec2f 3SHA1 (uhd-3.15.0.0.tar.gz) = 17286a52a591038af16e870962c1767c5935ec2f
4RMD160 (uhd-3.15.0.0.tar.gz) = b05282c4b3f25bd201e9b91b3652fba9b150c7ae 4RMD160 (uhd-3.15.0.0.tar.gz) = b05282c4b3f25bd201e9b91b3652fba9b150c7ae
5SHA512 (uhd-3.15.0.0.tar.gz) = ef62639d956adb5b4815b8e57bf4d6e62519bcaf509ce87af4f6091b79b4bb78c2bc079ec6f678777c24a146d5d5e1c8f225ad7ac5dba46bec6f8e1cc20309b0 5SHA512 (uhd-3.15.0.0.tar.gz) = ef62639d956adb5b4815b8e57bf4d6e62519bcaf509ce87af4f6091b79b4bb78c2bc079ec6f678777c24a146d5d5e1c8f225ad7ac5dba46bec6f8e1cc20309b0
6Size (uhd-3.15.0.0.tar.gz) = 12895934 bytes 6Size (uhd-3.15.0.0.tar.gz) = 12895934 bytes
7SHA1 (patch-CMakeLists.txt) = 2ba015aad8e08963a2bba8e1fc421aae53207cc5 7SHA1 (patch-CMakeLists.txt) = 5691ddd6a98f92e649a184cfc092a4eb721c6fe7
8SHA1 (patch-docs_CMakeLists.txt) = 27b04f5b3ef7b0604b43d50d95dd948535d4b434 
9SHA1 (patch-lib_transport_nirio_lvbitx_process-lvbitx.py) = 350af0f9ed999f64105a42195d2df037faef87c7 8SHA1 (patch-lib_transport_nirio_lvbitx_process-lvbitx.py) = 350af0f9ed999f64105a42195d2df037faef87c7

cvs diff -r1.2 -r1.3 pkgsrc/ham/uhd/patches/patch-CMakeLists.txt (expand / switch to unified diff)

--- pkgsrc/ham/uhd/patches/patch-CMakeLists.txt 2020/04/07 15:51:50 1.2
+++ pkgsrc/ham/uhd/patches/patch-CMakeLists.txt 2020/04/08 08:07:17 1.3
@@ -1,18 +1,32 @@ @@ -1,18 +1,32 @@
1$NetBSD: patch-CMakeLists.txt,v 1.2 2020/04/07 15:51:50 mef Exp $ 1$NetBSD: patch-CMakeLists.txt,v 1.3 2020/04/08 08:07:17 adam Exp $
2 2
3Allow overrides on PKG_DOC_DIR and PKG_MAN_DIR. 3Allow overrides on PKG_MAN_DIR.
4https://github.com/EttusResearch/uhd/issues/301 4https://github.com/EttusResearch/uhd/issues/301
5 5
6--- host/CMakeLists.txt.orig 2020-01-01 13:21:49.000000000 +0900 6Do not use Numpy.
7+++ CMakeLists.txt 2020-04-08 00:03:10.169349083 +0900 7
8@@ -124,8 +124,9 @@ 8--- CMakeLists.txt.orig 2020-01-01 04:21:49.000000000 +0000
 9+++ CMakeLists.txt
 10@@ -124,8 +124,9 @@ endif()
9 if(NOT DEFINED PKG_DOC_DIR) 11 if(NOT DEFINED PKG_DOC_DIR)
10 set(PKG_DOC_DIR share/doc/uhd) 12 set(PKG_DOC_DIR share/doc/uhd)
11 endif() 13 endif()
12+if(NOT DEFINED PKG_MAN_DIR) 14+if(NOT DEFINED PKG_MAN_DIR)
13 set(PKG_MAN_DIR share/man/man1) 15 set(PKG_MAN_DIR share/man/man1)
14- 16-
15+endif() 17+endif()
16 ######################################################################## 18 ########################################################################
17 # UHD config files 19 # UHD config files
18 ######################################################################## 20 ########################################################################
 21@@ -329,11 +330,6 @@ PYTHON_CHECK_MODULE(
 22 HAVE_PYTHON_MODULE_REQUESTS
 23 )
 24
 25-PYTHON_CHECK_MODULE(
 26- "numpy ${NUMPY_MIN_VERSION} or greater"
 27- "numpy" "LooseVersion(numpy.__version__) >= LooseVersion('${NUMPY_MIN_VERSION}')"
 28- HAVE_PYTHON_MODULE_NUMPY
 29-)
 30
 31 ########################################################################
 32 # Create Uninstall Target

File Deleted: pkgsrc/ham/uhd/patches/Attic/patch-docs_CMakeLists.txt