aboutsummaryrefslogtreecommitdiff
path: root/x11/wapanel/Makefile
blob: ef764a08acf81f482c7b1e6c95cfa8abfe7de9ab (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
PORTNAME=	wapanel
DISTVERSION=	1.1.0
PORTREVISION=	1
CATEGORIES=	x11 wayland

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Desktop bar for Wayfire and other wlroots compositors
WWW=		https://firstbober.github.io/wapanel/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	toml11>0:devel/toml11 \
		wayland-protocols>0:graphics/wayland-protocols
LIB_DEPENDS=	libwayland-client.so:graphics/wayland \
		libgtk-layer-shell.so:x11-toolkits/gtk-layer-shell

USES=		compiler:c++17-lang gnome meson pkgconfig
USE_GITHUB=	yes
USE_GNOME=	gdkpixbuf2 gtk30
GH_ACCOUNT=	Firstbober
MESON_ARGS=	-Dsystem_toml11=true

OPTIONS_DEFINE=	PULSEAUDIO
OPTIONS_DEFAULT=PULSEAUDIO
OPTIONS_SUB=	yes

PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
PULSEAUDIO_MESON_TRUE=	volume-control

post-patch:
# Respect PREFIX for *.desktop
	@${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \
		${WRKSRC}/src/applets/task-switcher/task_switcher.cc \
		${WRKSRC}/thirdparty/xdgpp/xdg.hpp

.include <bsd.port.mk>