1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/net/wayvnc/Makefile

44 lines
1.0 KiB
Makefile

# $FreeBSD$
PORTNAME= wayvnc
DISTVERSIONPREFIX= v
DISTVERSION= 0.2.0
CATEGORIES= net
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= 72dd8a159c44.patch:-p1 # https://github.com/any1/wayvnc/pull/59
MAINTAINER= jbeich@FreeBSD.org
COMMENT= VNC server for wlroots-based compositors
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto
LIB_DEPENDS= libaml.so:devel/aml \
libdrm.so:graphics/libdrm \
libwayland-client.so:graphics/wayland \
libneatvnc.so:net/neatvnc \
libxkbcommon.so:x11/libxkbcommon
USES= compiler:c11 meson pkgconfig xorg
USE_GITHUB= yes
USE_XORG= pixman
USE_LDCONFIG= yes
GH_ACCOUNT= any1
PLIST_FILES= bin/${PORTNAME}
OPTIONS_DEFINE= OPENGL
OPENGL_USES= gl
OPENGL_USE= GL=gbm
OPENGL_MESON_ENABLED= screencopy-dmabuf
post-patch:
# Extract (snapshot) version from the port instead of meson.build
@${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \
-e '/project_version/s/@0@/${DISTVERSIONFULL}/' \
${WRKSRC}/meson.build
.include <bsd.port.mk>