uhd: fix building when py-numpy is also installed; docs/CMakeLists.txt is not necessary any morediff -r1.54 -r1.55 pkgsrc/ham/uhd/Makefile
(adam)
@@ -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 | |||
3 | DISTNAME= uhd-3.15.0.0 | 3 | DISTNAME= uhd-3.15.0.0 | |
4 | CATEGORIES= ham | 4 | CATEGORIES= ham | |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=EttusResearch/} | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=EttusResearch/} | |
6 | GITHUB_TAG= v${PKGVERSION_NOREV} | 6 | GITHUB_TAG= v${PKGVERSION_NOREV} | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://github.com/EttusResearch/uhd | 9 | HOMEPAGE= https://github.com/EttusResearch/uhd | |
10 | COMMENT= USRP (Universal Software Radio Peripheral) Hardware Drivers | 10 | COMMENT= USRP (Universal Software Radio Peripheral) Hardware Drivers | |
11 | LICENSE= gnu-gpl-v2 | 11 | LICENSE= gnu-gpl-v2 | |
12 | 12 | |||
13 | DEPENDS+= ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako | 13 | DEPENDS+= ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako | |
14 | DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests | 14 | DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests | |
15 | 15 | |||
16 | CMAKE_ARGS+= -DENABLE_MAN_PAGE_COMPRESSION=OFF | |||
16 | CMAKE_ARGS+= -DPKG_MAN_DIR=${PKGMANDIR}/man1 | 17 | CMAKE_ARGS+= -DPKG_MAN_DIR=${PKGMANDIR}/man1 | |
17 | CMAKE_ARGS+= -DRST2HTML_EXECUTABLE=${PREFIX}/bin/rst2html-${PYVERSSUFFIX}.py | 18 | CMAKE_ARGS+= -DRST2HTML_EXECUTABLE=${PREFIX}/bin/rst2html-${PYVERSSUFFIX}.py | |
18 | CMAKE_ARGS+= -Wno-dev | 19 | CMAKE_ARGS+= -Wno-dev | |
19 | .include "../../lang/python/pyversion.mk" | 20 | .include "../../lang/python/pyversion.mk" | |
20 | CMAKE_ARGS+= -DPYTHON_EXECUTABLE=${PYTHONBIN} | 21 | CMAKE_ARGS+= -DPYTHON_EXECUTABLE=${PYTHONBIN} | |
21 | .if !empty(_PYTHON_VERSION:M3*) | 22 | .if !empty(_PYTHON_VERSION:M3*) | |
22 | CMAKE_ARGS+= -DENABLE_PYTHON3=ON | 23 | CMAKE_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. | |
34 | USE_CMAKE= yes | 35 | USE_CMAKE= yes | |
35 | USE_LANGUAGES= c gnu++11 | 36 | USE_LANGUAGES= c gnu++14 | |
36 | USE_TOOLS+= pkg-config | 37 | USE_TOOLS+= pkg-config | |
37 | GCC_REQD+= 4.8 | 38 | GCC_REQD+= 4.8 | |
38 | # to avoid extra pax_global_header | 39 | # to avoid extra pax_global_header | |
39 | EXTRACT_USING= gtar | 40 | EXTRACT_USING= gtar | |
40 | WRKSRC= ${WRKDIR}/${DISTNAME}/host | 41 | WRKSRC= ${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. | |
43 | REPLACE_PYTHON+= utils/converter_benchmark.py | 44 | REPLACE_PYTHON+= utils/converter_benchmark.py | |
44 | REPLACE_PYTHON+= utils/latency/graph.py | 45 | REPLACE_PYTHON+= utils/latency/graph.py | |
45 | REPLACE_PYTHON+= utils/latency/run_tests.py | 46 | REPLACE_PYTHON+= utils/latency/run_tests.py | |
46 | REPLACE_PYTHON+= utils/uhd_images_downloader.py.in | 47 | REPLACE_PYTHON+= utils/uhd_images_downloader.py.in | |
47 | REPLACE_PYTHON+= utils/usrp2_card_burner.py | 48 | REPLACE_PYTHON+= utils/usrp2_card_burner.py | |
48 | REPLACE_PYTHON+= utils/usrp2_card_burner_gui.py | 49 | REPLACE_PYTHON+= utils/usrp2_card_burner_gui.py |
@@ -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 $ | |
2 | bin/uhd_cal_rx_iq_balance | 2 | bin/uhd_cal_rx_iq_balance | |
3 | bin/uhd_cal_tx_dc_offset | 3 | bin/uhd_cal_tx_dc_offset | |
4 | bin/uhd_cal_tx_iq_balance | 4 | bin/uhd_cal_tx_iq_balance | |
5 | bin/uhd_config_info | 5 | bin/uhd_config_info | |
6 | bin/uhd_find_devices | 6 | bin/uhd_find_devices | |
7 | bin/uhd_image_loader | 7 | bin/uhd_image_loader | |
8 | bin/uhd_usrp_probe | 8 | bin/uhd_usrp_probe | |
9 | include/uhd.h | 9 | include/uhd.h | |
10 | include/uhd/build_info.hpp | 10 | include/uhd/build_info.hpp | |
11 | include/uhd/config.h | 11 | include/uhd/config.h | |
12 | include/uhd/config.hpp | 12 | include/uhd/config.hpp | |
13 | include/uhd/convert.hpp | 13 | include/uhd/convert.hpp | |
14 | include/uhd/deprecated.hpp | 14 | include/uhd/deprecated.hpp | |
@@ -130,27 +130,27 @@ include/uhd/utils/safe_call.hpp | @@ -130,27 +130,27 @@ include/uhd/utils/safe_call.hpp | |||
130 | include/uhd/utils/safe_main.hpp | 130 | include/uhd/utils/safe_main.hpp | |
131 | include/uhd/utils/scope_exit.hpp | 131 | include/uhd/utils/scope_exit.hpp | |
132 | include/uhd/utils/static.hpp | 132 | include/uhd/utils/static.hpp | |
133 | include/uhd/utils/tasks.hpp | 133 | include/uhd/utils/tasks.hpp | |
134 | include/uhd/utils/thread.hpp | 134 | include/uhd/utils/thread.hpp | |
135 | include/uhd/utils/thread_priority.h | 135 | include/uhd/utils/thread_priority.h | |
136 | include/uhd/utils/thread_priority.hpp | 136 | include/uhd/utils/thread_priority.hpp | |
137 | include/uhd/version.h | 137 | include/uhd/version.h | |
138 | include/uhd/version.hpp | 138 | include/uhd/version.hpp | |
139 | lib/cmake/uhd/UHDBoost.cmake | 139 | lib/cmake/uhd/UHDBoost.cmake | |
140 | lib/cmake/uhd/UHDConfig.cmake | 140 | lib/cmake/uhd/UHDConfig.cmake | |
141 | lib/cmake/uhd/UHDConfigVersion.cmake | 141 | lib/cmake/uhd/UHDConfigVersion.cmake | |
142 | lib/libuhd.so | 142 | lib/libuhd.so | |
143 | lib/libuhd.so.3.15.0 | 143 | lib/libuhd.so.${PKGVERSION} | |
144 | lib/pkgconfig/uhd.pc | 144 | lib/pkgconfig/uhd.pc | |
145 | lib/uhd/examples/benchmark_rate | 145 | lib/uhd/examples/benchmark_rate | |
146 | lib/uhd/examples/benchmark_streamer | 146 | lib/uhd/examples/benchmark_streamer | |
147 | lib/uhd/examples/gpio | 147 | lib/uhd/examples/gpio | |
148 | lib/uhd/examples/latency_test | 148 | lib/uhd/examples/latency_test | |
149 | lib/uhd/examples/network_relay | 149 | lib/uhd/examples/network_relay | |
150 | lib/uhd/examples/replay_samples_from_file | 150 | lib/uhd/examples/replay_samples_from_file | |
151 | lib/uhd/examples/rfnoc_nullsource_ce_rx | 151 | lib/uhd/examples/rfnoc_nullsource_ce_rx | |
152 | lib/uhd/examples/rfnoc_radio_loopback | 152 | lib/uhd/examples/rfnoc_radio_loopback | |
153 | lib/uhd/examples/rfnoc_rx_to_file | 153 | lib/uhd/examples/rfnoc_rx_to_file | |
154 | lib/uhd/examples/rx_ascii_art_dft | 154 | lib/uhd/examples/rx_ascii_art_dft | |
155 | lib/uhd/examples/rx_multi_samples | 155 | lib/uhd/examples/rx_multi_samples | |
156 | lib/uhd/examples/rx_samples_c | 156 | lib/uhd/examples/rx_samples_c |
@@ -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 | |||
3 | SHA1 (uhd-3.15.0.0.tar.gz) = 17286a52a591038af16e870962c1767c5935ec2f | 3 | SHA1 (uhd-3.15.0.0.tar.gz) = 17286a52a591038af16e870962c1767c5935ec2f | |
4 | RMD160 (uhd-3.15.0.0.tar.gz) = b05282c4b3f25bd201e9b91b3652fba9b150c7ae | 4 | RMD160 (uhd-3.15.0.0.tar.gz) = b05282c4b3f25bd201e9b91b3652fba9b150c7ae | |
5 | SHA512 (uhd-3.15.0.0.tar.gz) = ef62639d956adb5b4815b8e57bf4d6e62519bcaf509ce87af4f6091b79b4bb78c2bc079ec6f678777c24a146d5d5e1c8f225ad7ac5dba46bec6f8e1cc20309b0 | 5 | SHA512 (uhd-3.15.0.0.tar.gz) = ef62639d956adb5b4815b8e57bf4d6e62519bcaf509ce87af4f6091b79b4bb78c2bc079ec6f678777c24a146d5d5e1c8f225ad7ac5dba46bec6f8e1cc20309b0 | |
6 | Size (uhd-3.15.0.0.tar.gz) = 12895934 bytes | 6 | Size (uhd-3.15.0.0.tar.gz) = 12895934 bytes | |
7 | SHA1 (patch-CMakeLists.txt) = 2ba015aad8e08963a2bba8e1fc421aae53207cc5 | 7 | SHA1 (patch-CMakeLists.txt) = 5691ddd6a98f92e649a184cfc092a4eb721c6fe7 | |
8 | SHA1 (patch-docs_CMakeLists.txt) = 27b04f5b3ef7b0604b43d50d95dd948535d4b434 | |||
9 | SHA1 (patch-lib_transport_nirio_lvbitx_process-lvbitx.py) = 350af0f9ed999f64105a42195d2df037faef87c7 | 8 | SHA1 (patch-lib_transport_nirio_lvbitx_process-lvbitx.py) = 350af0f9ed999f64105a42195d2df037faef87c7 |
@@ -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 | |||
3 | Allow overrides on PKG_DOC_DIR and PKG_MAN_DIR. | 3 | Allow overrides on PKG_MAN_DIR. | |
4 | https://github.com/EttusResearch/uhd/issues/301 | 4 | https://github.com/EttusResearch/uhd/issues/301 | |
5 | 5 | |||
6 | --- host/CMakeLists.txt.orig 2020-01-01 13:21:49.000000000 +0900 | 6 | Do 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 |