Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile « tofi « x11 - github.com/freebsd/freebsd-ports.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8464b1d23de92e29ae7bb2c7ca362c49bc44e923 (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
PORTNAME=	tofi
DISTVERSIONPREFIX=	v
DISTVERSION=	0.6.0
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=	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=	man/man1/${PORTNAME}-drun.1.gz \
			man/man1/${PORTNAME}-run.1.gz \
			man/man1/${PORTNAME}.1.gz \
			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>