summaryrefslogtreecommitdiff
path: root/x11/mako/Makefile
blob: 90ee554be7fa2b441ce409b2fb21cb965e4687f8 (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
50
51
52
PORTNAME=	mako
DISTVERSIONPREFIX=	v
DISTVERSION=	1.8.0
CATEGORIES=	x11 wayland

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Lightweight Wayland notification daemon
WWW=		https://github.com/emersion/mako

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	evdev-proto>0:devel/evdev-proto \
		wayland-protocols>=1.21:graphics/wayland-protocols
LIB_DEPENDS=	libbasu.so:devel/basu \
		libepoll-shim.so:devel/libepoll-shim \
		libwayland-client.so:graphics/wayland

USES=		compiler:c11 gnome meson pkgconfig
USE_GITHUB=	yes
USE_GNOME=	cairo pango
GH_ACCOUNT=	emersion
MESON_ARGS=	-Dsd-bus-provider=basu
PLIST_FILES=	bin/${PORTNAME} \
		bin/${PORTNAME}ctl \
		share/dbus-1/services/fr.emersion.mako.service

OPTIONS_DEFINE=	MANPAGES PIXBUF
OPTIONS_DEFAULT=MANPAGES PIXBUF

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

PIXBUF_USE=		GNOME=gdkpixbuf2
PIXBUF_MESON_ENABLED=	icons

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400097
CFLAGS+=	-D__BSD_VISIBLE -D__XSI_VISIBLE
.endif

post-patch:
# Respect PREFIX for icons
	@${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},g' \
		${WRKSRC}/icon.c \
		${WRKSRC}/${PORTNAME}.5.scd

.include <bsd.port.mk>