summaryrefslogtreecommitdiff
path: root/net-im/zoom/Makefile
blob: 31f4bfc4c8638fa802597032362419b8006f7948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

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>