blob: 211ce5f857f99c6f2dc350507c39474d8337d0f6 (
plain) (
blame)
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
49
50
51
52
53
54
55
56
|
PORTNAME= wayvnc
DISTVERSIONPREFIX= v
DISTVERSION= 0.9.1
PORTREVISION= 1
CATEGORIES= net wayland
MAINTAINER= jbeich@FreeBSD.org
COMMENT= VNC server for wlroots-based compositors
WWW= https://github.com/any1/wayvnc
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto
LIB_DEPENDS= libaml.so:devel/aml \
libjansson.so:devel/jansson \
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} \
bin/${PORTNAME}ctl
MESON_ARGS= -Dtests=false
OPTIONS_DEFINE= MANPAGES OPENGL
OPTIONS_DEFAULT=MANPAGES OPENGL
MANPAGES_BUILD_DEPENDS= scdoc:textproc/scdoc
MANPAGES_MESON_ENABLED= man-pages
MANPAGES_PLIST_FILES= share/man/man1/${PORTNAME}.1.gz \
share/man/man1/${PORTNAME}ctl.1.gz
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
pre-test:
@if [ ! -e ${WRKDIR}/.meson_build_tests ]; then \
${RM} ${CONFIGURE_COOKIE} ${BUILD_COOKIE}; \
${MAKE} -C${.CURDIR} build MESON_ARGS="${MESON_ARGS} --reconfigure -Dtests=true"; \
${TOUCH} ${WRKDIR}/.meson_build_tests; \
fi
.include <bsd.port.mk>
|