mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
50 lines
1.8 KiB
Makefile
50 lines
1.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
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)
|
|
|
|
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= 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>
|