aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/gtk4-layer-shell/Makefile
blob: 6405071ba497d42580fef7ef0a61a087de25dd2a (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
PORTNAME=	gtk4-layer-shell
DISTVERSIONPREFIX=	v
DISTVERSION=	1.2.0
CATEGORIES=	x11-toolkits

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	GTK4 library for the Wayland layer-shell protocol
WWW=		https://github.com/wmww/gtk4-layer-shell

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	wayland-protocols>=1.16:graphics/wayland-protocols
LIB_DEPENDS=	libwayland-client.so:graphics/wayland
TEST_DEPENDS=	evdev-proto>0:devel/evdev-proto

USES=		compiler:c11 gnome meson pkgconfig vala:build
USE_GNOME=	gtk40 introspection:build
USE_GITHUB=	yes
USE_LDCONFIG=	yes
GH_ACCOUNT=	wmww
MESON_ARGS=	-Dsmoke-tests=false # Need luajit flavor of devel/lua-lgi
PLIST_SUB=	VERSION=${PORTVERSION}

OPTIONS_DEFINE=	DOCS EXAMPLES

DOCS_BUILD_DEPENDS=	gtk-doc>0:textproc/gtk-doc
DOCS_MESON_TRUE=	docs

EXAMPLES_MESON_TRUE=	examples

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>