PORTNAME=	virtboard
DISTVERSIONPREFIX=	v
DISTVERSION=	0.0.6
PORTREVISION=	1
CATEGORIES=	x11 wayland

PATCH_SITES=	${GL_SITE}/jbeich/${GL_PROJECT}/-/commit/
PATCHFILES+=	42e698964e42.patch:-p1 # https://source.puri.sm/Librem5/virtboard/-/merge_requests/35
PATCHFILES+=	86e6915d4920.patch:-p1 # https://source.puri.sm/Librem5/virtboard/-/merge_requests/35
PATCHFILES+=	2d30762e546b.patch:-p1 # https://source.puri.sm/Librem5/virtboard/-/merge_requests/36

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Basic keyboard, blazing the path of modern Wayland keyboards
WWW=		https://source.puri.sm/Librem5/virtboard

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	evdev-proto>0:devel/evdev-proto \
		wayland-protocols>=1.14:graphics/wayland-protocols
LIB_DEPENDS=	libepoll-shim.so:devel/libepoll-shim \
		libpng.so:graphics/png \
		libwayland-client.so:graphics/wayland \
		libxkbcommon.so:x11/libxkbcommon
RUN_DEPENDS=	gsettings-desktop-schemas>0:devel/gsettings-desktop-schemas

USES=		compiler:c11 gettext-tools gnome meson pkgconfig xorg
USE_GITLAB=	yes
USE_GNOME=	cairo glib20
USE_XORG=	pixman
GL_SITE=	https://source.puri.sm
GL_ACCOUNT=	Librem5
PLIST_FILES=	bin/${PORTNAME} \
		share/applications/sm.puri.Virtboard.desktop \
		share/dbus-1/interfaces/sm.puri.OSK0.xml

.include <bsd.port.mk>
