aboutsummaryrefslogtreecommitdiff
path: root/x11/swaync/Makefile
blob: 28f6fd2a0eb08503cea7ee83937d691053c1b5bf (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
PORTNAME=	swaync
DISTVERSIONPREFIX=	v
PORTVERSION=	0.4
CATEGORIES=	x11

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Simple Wayland notification daemon with GTK panel

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

BUILD_DEPENDS=	valac:lang/vala
LIB_DEPENDS=	libjson-glib-1.0.so:devel/json-glib \
		libgtk-layer-shell.so:x11-toolkits/gtk-layer-shell \
		libhandy-1.so:x11-toolkits/libhandy

USES=		compiler:c11 gnome localbase:ldflags meson pkgconfig
USE_GITHUB=	yes
USE_GNOME=	gdkpixbuf2 gtk30 introspection:build
GH_ACCOUNT=	ErikReider
GH_PROJECT=	SwayNotificationCenter

post-patch:
# Extract (snapshot) version from the port instead of meson.build
	@${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \
		-e '/project_version/s/@0@/${DISTVERSIONFULL}/' \
		${WRKSRC}/src/meson.build
# Let @sample handle default files under etc/
	@${REINPLACE_CMD} -e "s,'/',get_option('prefix')," \
		-e "/output.*json/s/'[^']*/&.sample/" \
		-e "/inst.*css/s/'[^']*/&', rename: &.sample/1" \
		${WRKSRC}/src/meson.build

.include <bsd.port.mk>