forked from Lainports/freebsd-ports
It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)
86 lines
3.1 KiB
Makefile
86 lines
3.1 KiB
Makefile
PORTNAME= uhd
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 4.2.0.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= comms hamradio
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= mr@FreeBSD.org
|
|
COMMENT= Ettus Research UHD driver framework
|
|
WWW= https://www.ettus.com/sdr-software/uhd-usrp-hardware-driver/
|
|
|
|
# See https://www.ettus.com/sdr-software/licenses/. Dual license
|
|
# under GPLv3 and and "Alternate License" whose terms are not documented
|
|
# on the web site (contact info@ettus.com). Mark as GPLv3 for now
|
|
# until terms of the "Alternate License" are made clear. When that
|
|
# is understood and if appropriate, we can add that license here.
|
|
LICENSE= GPLv3
|
|
|
|
LIB_DEPENDS= ${PY_BOOST} \
|
|
libboost_system.so:devel/boost-libs
|
|
BUILD_DEPENDS= orcc:devel/orc \
|
|
cheetah-analyze:devel/py-cheetah3@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako@${PY_FLAVOR} \
|
|
rst2html:textproc/py-docutils@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0:devel/py-ruamel.yaml@${PY_FLAVOR}
|
|
|
|
USES= compiler:c++14-lang cmake ncurses pkgconfig \
|
|
dos2unix python:3.7+ shebangfix
|
|
USE_LDCONFIG= yes
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= EttusResearch
|
|
|
|
CONFLICTS= usrp
|
|
|
|
BROKEN_FreeBSD_12_aarch64= fails to configure: Could not find standard set_new_handler function
|
|
BROKEN_FreeBSD_12_armv6= fails to configure: Could not find standard set_new_handler function
|
|
BROKEN_FreeBSD_12_armv7= fails to configure: Could not find standard set_new_handler function
|
|
BROKEN_FreeBSD_13_aarch64= fails to configure: Could not find standard set_new_handler function
|
|
BROKEN_FreeBSD_13_armv6= fails to configure: Could not find standard set_new_handler function
|
|
BROKEN_FreeBSD_13_armv7= fails to configure: Could not find standard set_new_handler function
|
|
|
|
CMAKE_SOURCE_PATH= ${WRKSRC}/host
|
|
#CXXFLAGS_amd64= -msse2 -std=c++11
|
|
CXXFLAGS_i386= -msse2
|
|
|
|
LDFLAGS+= ${LDFLAGS_${CHOSEN_COMPILER_TYPE}}
|
|
LDFLAGS_gcc= -latomic
|
|
|
|
SHEBANG_GLOB= *.py *.py.in *_bist usrp_update*
|
|
|
|
CMAKE_ARGS+= -DPKG_LIB_DIR:STRING="share/uhd" -DUHD_TXRX_DEBUG_PRINTS="yes"
|
|
# for excruciating debug use this -db
|
|
#CMAKE_ARGS+= --debug-output --trace
|
|
|
|
OPTIONS_DEFINE= DOCS DOXYGEN
|
|
OPTIONS_DEFAULT= DOCS
|
|
|
|
OPTIONS_SUB= yes
|
|
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
|
|
DOXYGEN_CMAKE_ON= -DENABLE_DOXYGEN:STRING="ON"
|
|
DOXYGEN_CMAKE_OFF= -DENABLE_DOXYGEN:STRING="OFF" \
|
|
-DENABLE_MANUAL:STRING="OFF"
|
|
|
|
PORTDOCS= *
|
|
|
|
do-install:
|
|
# install host component
|
|
# hack the install prefix now
|
|
@${REINPLACE_CMD} -e 's|"${LOCALBASE}"|"${STAGEDIR}${PREFIX}"|g' \
|
|
${CONFIGURE_WRKSRC}/cmake_install.cmake
|
|
cd ${CONFIGURE_WRKSRC} && ${MAKE_CMD} install
|
|
#.for subdir in images
|
|
# ${CP} -Rp ${WRKDIR}/uhd-ef1576780bc927b8611640091b15f3d051cb97ad/share/uhd/${subdir} ${STAGEDIR}${DATADIR}
|
|
#.endfor
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${DATADIR}/utils/b2xx_fx3_utils
|
|
${STRIP_CMD} ${STAGEDIR}${DATADIR}/utils/usrp_burn_mb_eeprom
|
|
${STRIP_CMD} ${STAGEDIR}${DATADIR}/utils/usrp_burn_db_eeprom
|
|
${STRIP_CMD} ${STAGEDIR}${DATADIR}/utils/query_gpsdo_sensors
|
|
${STRIP_CMD} ${STAGEDIR}${DATADIR}/utils/octoclock_burn_eeprom
|
|
${STRIP_CMD} ${STAGEDIR}${DATADIR}/utils/latency/responder
|
|
${STRIP_CMD} ${STAGEDIR}${DATADIR}/utils/fx2_init_eeprom
|
|
${STRIP_CMD} ${STAGEDIR}${DATADIR}/utils/converter_benchmark
|
|
|
|
.include <bsd.port.mk>
|