blob: cb9d798f100d708b7d7930695bad183afa2c58d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# $NetBSD: Makefile,v 1.42 2019/02/27 00:35:25 gdt Exp $
# 3.13.0.1 is missing *_firmware_burner, and it's not clear that is correct.
DISTNAME= uhd-3.11.1.0
PKGREVISION= 3
CATEGORIES= ham
MASTER_SITES= ${MASTER_SITE_GITHUB:=EttusResearch/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
#HOMEPAGE= http://code.ettus.com/redmine/ettus/projects/uhd/wiki
COMMENT= USRP (Universal Software Radio Peripheral) Hardware Drivers
LICENSE= gnu-gpl-v2
BUILD_DEPENDS+= ${PYPKGPREFIX}-cheetah-[0-9]*:../../devel/py-cheetah
BUILD_DEPENDS+= ${PYPKGPREFIX}-docutils>=0.12:../../textproc/py-docutils
BUILD_DEPENDS+= ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako
PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 37 # py-cheetah
CMAKE_ARGS+= -DRST2HTML_EXECUTABLE=${PREFIX}/bin/rst2html-${PYVERSSUFFIX}.py
CMAKE_ARGS+= -Wno-dev
# Upstream says C++11 is required, even though it is not documented.
# It is documented that gcc 4.8 is required, when using gcc.
# https://github.com/EttusResearch/uhd/issues/236
USE_LANGUAGES= c c++11
# c++11
GCC_REQD+= 4.8
USE_TOOLS= cmake pkg-config
USE_CMAKE= yes
# extra pax_global_header exists, and to avoid that:
EXTRACT_USING= gtar
#EXTRACT_ELEMENTS= uhd-${GITHUB_TAG}
# Please note distribution has many stuff under uhd/, but build itself
# needs under host/ only. Those uhd/ stuff will be handled post-{patch,install}:
WRKSRC= ${WRKDIR}/uhd-${PKGVERSION_NOREV}/host
# The files with their name uhd-xxxx, are moved down from uhd/xxxx for this process.
REPLACE_PYTHON= \
utils/latency/graph.py \
utils/latency/run_tests.py \
utils/uhd_images_downloader.py.in \
utils/usrp2_card_burner.py \
utils/usrp2_card_burner_gui.py \
utils/usrp_n2xx_net_burner.py \
utils/usrp_n2xx_net_burner_gui.py \
tests/devtest/benchmark_rate_test.py \
tests/devtest/run_testsuite.py \
tests/devtest/rx_samples_to_file_test.py \
tests/devtest/test_messages_test.py \
tests/devtest/test_pps_test.py \
tests/devtest/tx_bursts_test.py \
tests/devtest/uhd_test_base.py \
tests/devtest/usrp_probe.py \
tests/devtest/usrp_probe_test.py \
utils/converter_benchmark.py \
INSTALLATION_DIRS+= share/uhd
INSTALLATION_DIRS+= share/uhd/firmware
INSTALLATION_DIRS+= share/uhd/fpga
INSTALLATION_DIRS+= share/uhd/images
SUBST_CLASSES+= man
SUBST_MESSAGE.man= Convert share/man to man
SUBST_STAGE.man= pre-configure
SUBST_FILES.man= docs/CMakeLists.txt
SUBST_SED.man= -e '/UHD_INSTALL/s,$${PKG_MAN_DIR},${PREFIX}/${PKGMANDIR}/man1,'
# UHD_INSTALL(FILES ${gzfile} DESTINATION ${PKG_MAN_DIR} COMPONENT manpages)
# is it default ? and redundent ?
PLIST_SRC= ${PKGDIR}/PLIST
.include "options.mk"
.include "../../lang/python/application.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/libusb1/buildlink3.mk"
.include "../../devel/orc/buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|