aboutsummaryrefslogtreecommitdiff
path: root/x11/tofi/Makefile
blob: 64448cb69f6fa2270f780a578341a025a7ba5ded (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
PORTNAME=	tofi
DISTVERSIONPREFIX=	v
DISTVERSION=	0.9.1
PORTREVISION=	1
CATEGORIES=	x11 wayland

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Tiny dynamic menu for Wayland
WWW=		https://github.com/philj56/tofi

LICENSE=	MIT
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 \
		libfreetype.so:print/freetype2 \
		libharfbuzz.so:print/harfbuzz \
		libxkbcommon.so:x11/libxkbcommon

USES=		compiler:c11 gnome meson pkgconfig
USE_GITHUB=	yes
USE_GNOME=	cairo pango
GH_ACCOUNT=	philj56
PLIST_FILES=	bin/${PORTNAME} \
		bin/${PORTNAME}-drun \
		bin/${PORTNAME}-run \
		etc/xdg/${PORTNAME}/config \
		share/bash-completion/completions/${PORTNAME} \
		share/bash-completion/completions/${PORTNAME}-drun \
		share/bash-completion/completions/${PORTNAME}-run

OPTIONS_DEFINE=	MANPAGES
OPTIONS_DEFAULT=MANPAGES

MANPAGES_BUILD_DEPENDS=	scdoc:textproc/scdoc
MANPAGES_MESON_ENABLED=	man-pages
MANPAGES_PLIST_FILES=	share/man/man1/${PORTNAME}-drun.1.gz \
			share/man/man1/${PORTNAME}-run.1.gz \
			share/man/man1/${PORTNAME}.1.gz \
			share/man/man5/${PORTNAME}.5.gz

post-patch:
# Respect PREFIX for system config and *.desktop
	@${REINPLACE_CMD} -e 's,/etc,${PREFIX}&,' \
		-e 's,/usr/share,${DATADIR:H},' \
		${WRKSRC}/doc/${PORTNAME}.1.scd \
		${WRKSRC}/src/drun.c

.include <bsd.port.mk>