freebsd-ports/net-im/zoom/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

49 lines
1.9 KiB
Makefile

PORTNAME= zoom
DISTVERSION= 5.3.465578.0920
PORTREVISION= 1
CATEGORIES= net-im net-p2p
MASTER_SITES= https://zoom.us/client/${DISTVERSION}/
PKGNAMESUFFIX= -video-conferencing-client
DISTNAME= zoom_x86_64.pkg
MAINTAINER= yuri@FreeBSD.org
COMMENT= Zoom videoconferencing client (CAVEAT: Sound doesn't yet work)
WWW= https://zoom.us/
RUN_DEPENDS= linux-c7-xcb-util-image>0:x11/linux-c7-xcb-util-image \
linux-c7-xcb-util-keysyms>0:x11/linux-c7-xcb-util-keysyms \
linux-c7-xcb-util>0:x11/linux-c7-xcb-util
USES= cpe desktop-file-utils linux tar:xz
USE_LINUX= alsalib alsa-plugins-oss atk cairo-gobject dbuslibs fontconfig freetype gdkpixbuf2 gtk3 libdrm libglvnd pango xorglibs # pulseaudio-libs (asserts under the linux emulator)
NO_BUILD= yes
PLIST_SUB= LINUXBASE=${LINUXBASE}
LINUX_NVIDIA_LIBS_AVAILABLE= linux-nvidia-libs linux-nvidia-libs-304 linux-nvidia-libs-340 linux-nvidia-libs-390
OPTIONS_RADIO= PREINSTALL_GL_DRIVER
OPTIONS_RADIO_PREINSTALL_GL_DRIVER= ${LINUX_NVIDIA_LIBS_AVAILABLE:tu:S/-/_/g}
PREINSTALL_GL_DRIVER_DESC= Install OpenGL libraries for your system:
.for p in ${LINUX_NVIDIA_LIBS_AVAILABLE}
${p:tu:S/-/_/g}_DESC= NVidia libraries x11/${p}
${p:tu:S/-/_/g}_RUN_DEPENDS= ${p}>0:x11/${p}
.endfor
do-install:
${MKDIR} ${STAGEDIR}${LINUXBASE}
cd ${WRKDIR} && ${CP} -r opt ${STAGEDIR}${LINUXBASE}
(echo "#!/bin/sh"; \
echo ""; \
echo "LD_LIBRARY_PATH=${LINUXBASE}/opt/zoom ${LINUXBASE}/opt/zoom/zoom \"$$"@"\"" \
) > ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_DATA} ${WRKDIR}/usr/share/applications/Zoom.desktop ${STAGEDIR}${PREFIX}/share/applications
${REINPLACE_CMD} -i '' -e 's|/usr/bin/zoom|${LOCALBASE}/bin/zoom|' ${STAGEDIR}${PREFIX}/share/applications/Zoom.desktop
${INSTALL_DATA} ${WRKDIR}/usr/share/pixmaps/Zoom.png ${STAGEDIR}${PREFIX}/share/pixmaps/Zoom.png
.include <bsd.port.mk>