| @@ -1,39 +1,41 @@ | | | @@ -1,39 +1,41 @@ |
1 | # $NetBSD: Makefile,v 1.68 2022/06/30 11:18:30 nia Exp $ | | 1 | # $NetBSD: Makefile,v 1.69 2022/07/08 14:26:11 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= uhd-4.1.0.5 | | 3 | DISTNAME= uhd-4.1.0.5 |
4 | PKGREVISION= 2 | | 4 | PKGREVISION= 3 |
5 | CATEGORIES= ham | | 5 | CATEGORIES= ham |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=EttusResearch/} | | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=EttusResearch/} |
7 | GITHUB_TAG= v${PKGVERSION_NOREV} | | 7 | GITHUB_TAG= v${PKGVERSION_NOREV} |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= https://github.com/EttusResearch/uhd | | 10 | HOMEPAGE= https://github.com/EttusResearch/uhd |
11 | COMMENT= USRP (Universal Software Radio Peripheral) Hardware Drivers | | 11 | COMMENT= USRP (Universal Software Radio Peripheral) Hardware Drivers |
12 | LICENSE= gnu-gpl-v3 | | 12 | LICENSE= gnu-gpl-v3 |
13 | | | 13 | |
14 | DEPENDS+= ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako | | 14 | DEPENDS+= ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako |
15 | DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests | | 15 | DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests |
16 | | | 16 | |
17 | CMAKE_ARGS+= -DLIB_SUFFIX="" | | 17 | CMAKE_ARGS+= -DLIB_SUFFIX="" |
18 | CMAKE_ARGS+= -DENABLE_MAN_PAGE_COMPRESSION=OFF | | 18 | CMAKE_ARGS+= -DENABLE_MAN_PAGE_COMPRESSION=OFF |
19 | CMAKE_ARGS+= -DPKG_MAN_DIR=${PKGMANDIR}/man1 | | 19 | CMAKE_ARGS+= -DPKG_MAN_DIR=${PKGMANDIR}/man1 |
20 | CMAKE_ARGS+= -DRST2HTML_EXECUTABLE=${PREFIX}/bin/rst2html-${PYVERSSUFFIX}.py | | 20 | CMAKE_ARGS+= -DRST2HTML_EXECUTABLE=${PREFIX}/bin/rst2html-${PYVERSSUFFIX}.py |
21 | CMAKE_ARGS+= -Wno-dev | | 21 | CMAKE_ARGS+= -Wno-dev |
| | | 22 | |
| | | 23 | PYTHON_VERSIONS_INCOMPATIBLE= 27 |
| | | 24 | |
22 | .include "../../lang/python/pyversion.mk" | | 25 | .include "../../lang/python/pyversion.mk" |
| | | 26 | |
23 | CMAKE_ARGS+= -DPYTHON_EXECUTABLE=${PYTHONBIN} | | 27 | CMAKE_ARGS+= -DPYTHON_EXECUTABLE=${PYTHONBIN} |
24 | .if !empty(_PYTHON_VERSION:M3*) | | | |
25 | CMAKE_ARGS+= -DENABLE_PYTHON3=ON | | 28 | CMAKE_ARGS+= -DENABLE_PYTHON3=ON |
26 | .endif | | | |
27 | | | 29 | |
28 | # Upstream says C++11 is required, even though it is not documented. | | 30 | # Upstream says C++11 is required, even though it is not documented. |
29 | # It is documented that gcc 4.8 is required, when using gcc. | | 31 | # It is documented that gcc 4.8 is required, when using gcc. |
30 | # https://github.com/EttusResearch/uhd/issues/236 | | 32 | # https://github.com/EttusResearch/uhd/issues/236 |
31 | # | | 33 | # |
32 | # Upstream does not seem to have any documentation that gnu++11 is | | 34 | # Upstream does not seem to have any documentation that gnu++11 is |
33 | # required, but it builds with tha and not with c++11 on netbsd-8. No | | 35 | # required, but it builds with tha and not with c++11 on netbsd-8. No |
34 | # ticket filed because #236 resulted in in-ticket clarification only | | 36 | # ticket filed because #236 resulted in in-ticket clarification only |
35 | # (and not a doc edit), and having experimented no clarification is | | 37 | # (and not a doc edit), and having experimented no clarification is |
36 | # needed. | | 38 | # needed. |
37 | USE_CMAKE= yes | | 39 | USE_CMAKE= yes |
38 | USE_LANGUAGES= c gnu++14 | | 40 | USE_LANGUAGES= c gnu++14 |
39 | USE_TOOLS+= pkg-config | | 41 | USE_TOOLS+= pkg-config |