aboutsummaryrefslogtreecommitdiff
path: root/x11/wofi/Makefile
blob: 930d8c91962c1cf72f634830dd9466a730da8ae4 (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
# $FreeBSD$

PORTNAME=	wofi
DISTVERSIONPREFIX=	v
DISTVERSION=	1.2.2
PORTREVISION=	1
CATEGORIES=	x11
#MASTER_SITES=	https://hg.sr.ht/~scoopta/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
MASTER_SITES+=	LOCAL/jbeich # https://todo.sr.ht/~sircmpwn/hg.sr.ht/33

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Launcher/menu program for wlroots-based compositors

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING.md

LIB_DEPENDS=	libwayland-client.so:graphics/wayland

USES=		gnome meson pkgconfig
USE_GNOME=	cairo gdkpixbuf2 gtk30

post-patch:
	@${REINPLACE_CMD} 's,/usr/local,${PREFIX},g' \
		${WRKSRC}/man/${PORTNAME}.7 \
		${WRKSRC}/modes/drun.c
# Extract (snapshot) version from the port instead of meson.build
	@${REINPLACE_CMD} -i .nohg -e 's/hg.found()/false/' \
		-e "s/' + version + '/${DISTVERSIONFULL}/" \
		${WRKSRC}/meson.build

.include <bsd.port.mk>