freebsd-ports/net-im/uTox/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
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)
2022-09-07 23:10:59 +02:00

64 lines
1.8 KiB
Makefile

PORTNAME= uTox
DISTVERSION= 0.17.2
DISTVERSIONSUFFIX= -full
PORTREVISION= 2
CATEGORIES= net-im net-p2p
MASTER_SITES= https://github.com/uTox/uTox/releases/download/v${DISTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Lightweight Tox client
WWW= https://utox.io/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto \
${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat
LIB_DEPENDS= libfilteraudio.so:audio/libfilteraudio \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libopus.so:audio/opus \
libsodium.so:security/libsodium \
libtoxcore.so:net-im/tox \
libv4lconvert.so:multimedia/libv4l \
libvpx.so:multimedia/libvpx
TEST_DEPENDS= check>=0:devel/check
USES= cmake compiler:c11 desktop-file-utils openal pkgconfig xorg
USE_XORG= ice sm x11 xext xrender
CMAKE_OFF= ENABLE_LTO ENABLE_TESTS
WRKSRC= ${WRKDIR}/uTox
OPTIONS_DEFINE= DBUS
OPTIONS_DEFAULT= DBUS
DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus
DBUS_CMAKE_BOOL= ENABLE_DBUS
.if ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld
# ld.lld lacks default output emulation. Using -b binary without
# explicit -m will fail. Mapping taken from lld/ELF/Driver.cpp.
_LLD_EMUL_aarch64= aarch64elf_fbsd
_LLD_EMUL_amd64= elf_x86_64_fbsd
_LLD_EMUL_armv6= armelf_fbsd
_LLD_EMUL_armv7= armelf_fbsd
_LLD_EMUL_i386= elf_i386_fbsd
_LLD_EMUL_powerpc= elf32ppc_fbsd
_LLD_EMUL_powerpc64= elf64ppc_fbsd
_LLD_EMUL_powerpc64le= elf64lppc_fbsd
post-patch:
@${REINPLACE_CMD} 's,[[:<:]]ld[[:>:]],ld -m${_LLD_EMUL_${ARCH}},' \
${WRKSRC}/src/xlib/CMakeLists.txt
.endif
do-test:
@cd ${TEST_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} \
-DENABLE_TESTS:BOOL=yes ${CMAKE_SOURCE_PATH} && \
${DO_MAKE_BUILD}
@${TEST_WRKSRC}/run_tests.sh
.include <bsd.port.mk>