From 1a68c2ca31f77dc6f87add786c286bece705859b Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Mon, 28 Sep 2020 23:30:42 +0000 Subject: [PATCH] net-im/zoom: Add options for OpenGL libraries to install for user convenience --- net-im/zoom/Makefile | 13 +++++++++++++ net-im/zoom/pkg-message | 2 ++ 2 files changed, 15 insertions(+) diff --git a/net-im/zoom/Makefile b/net-im/zoom/Makefile index 6f0e7bd4439b..58a8906e87f0 100644 --- a/net-im/zoom/Makefile +++ b/net-im/zoom/Makefile @@ -2,6 +2,7 @@ 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 @@ -21,6 +22,18 @@ 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} diff --git a/net-im/zoom/pkg-message b/net-im/zoom/pkg-message index e2320c65eb95..f7adf70436f1 100644 --- a/net-im/zoom/pkg-message +++ b/net-im/zoom/pkg-message @@ -17,6 +17,8 @@ In order to run Zoom you need: devfs /compat/linux/dev devfs rw 0 0 3. Have Linux OpenGL package for your video card is installed. It could be one of linux-nvidia-libs*, etc. + Enable a port option corresponding to your OpenGL driver, if applicable. + Try running with LIBGL_ALWAYS_SOFTWARE=1 if zoom crashes because of OpenGL. 4. Have multimedia/webcamd installed and running. The usual way to start webcamd is to have these two lines in /etc/rc.conf: webcamd_enable="YES"