summaryrefslogtreecommitdiff
path: root/x11/lavalauncher/Makefile
blob: 3f5489cde30278dfab33979672b0b2b80836de6a (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
49

PORTNAME=	lavalauncher
DISTVERSIONPREFIX=	v
DISTVERSION=	2.0.0
PORTREVISION=	3
CATEGORIES=	x11
MASTER_SITES=	https://git.sr.ht/~leon_plickat/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/

PATCH_SITES=	https://git.sr.ht/~leon_plickat/${PORTNAME}/commit/
PATCHFILES+=	542e8c948889.patch:-p1

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Simple launcher panel for Wayland desktops

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/LICENSE

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

USES=		compiler:c11 gnome meson pkgconfig
USE_GNOME=	cairo
PLIST_FILES=	bin/${PORTNAME}

OPTIONS_DEFINE=	EPOLL INOTIFY LIBRSVG2 MANPAGES
OPTIONS_DEFAULT=EPOLL INOTIFY LIBRSVG2 MANPAGES

EPOLL_DESC=		Handle signals via epoll-shim
EPOLL_LIB_DEPENDS=	libepoll-shim.so:devel/libepoll-shim
EPOLL_MESON_ENABLED=	handle-signals

INOTIFY_DESC=		Watch configuration file via libinotify
INOTIFY_LIB_DEPENDS=	libinotify.so:devel/libinotify
INOTIFY_MESON_ENABLED=	watch-config

LIBRSVG2_USE=		GNOME=librsvg2
LIBRSVG2_MESON_ENABLED=	librsvg

MANPAGES_BUILD_DEPENDS=	scdoc:textproc/scdoc
MANPAGES_MESON_ENABLED=	man-pages
MANPAGES_PLIST_FILES=	man/man1/${PORTNAME}.1.gz

post-patch:
# Respect PREFIX when looking for system .conf files
	@${REINPLACE_CMD} 's,/usr/local,${PREFIX},' \
		${WRKSRC}/src/lavalauncher.c

.include <bsd.port.mk>