aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/wayfire-plugins-extra/Makefile
blob: c14b4017334d4c46154d81426995033b0ccdd052 (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
PORTNAME=	wayfire-plugins-extra
DISTVERSIONPREFIX=	v
DISTVERSION=	0.8.0
PORTREVISION=	1
CATEGORIES=	x11-wm wayland

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Additional plugins for Wayfire
WWW=		https://wayfire.org/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	evdev-proto>0:devel/evdev-proto \
		wayland-scanner:graphics/wayland \
		wayland-protocols>0:graphics/wayland-protocols \
		wayfire>0:x11-wm/wayfire
LIB_DEPENDS=	libwf-config.so:devel/wf-config \
		libwayland-server.so:graphics/wayland \
		libwlroots.so:x11-toolkits/wlroots

USES=		compiler:c++17-lang gnome meson pkgconfig
USE_GITHUB=	yes
USE_GITLAB=	nodefault
USE_GNOME=	cairo glibmm
GH_ACCOUNT=	WayfireWM
GH_TUPLE=	timgott:wayfire-shadows:de32395:wayfire_shadows/subprojects/wayfire-shadows
GL_TUPLE=	wayfireplugins:focus-request:bc41d54:focus_request/subprojects/focus-request \
		wayfireplugins:windecor:f609ac0:windecor/subprojects/windecor
MESON_ARGS=	-Denable_focus_request=true -Denable_wayfire_shadows=true

OPTIONS_DEFINE=	LIBRSVG2
OPTIONS_DEFAULT=LIBRSVG2
OPTIONS_SUB=	yes

LIBRSVG2_USE=		GNOME=librsvg2
LIBRSVG2_MESON_TRUE=	enable_windecor

post-patch:
# Respect PREFIX for icons
	@${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \
		${WRKSRC}/subprojects/windecor/deco-icontheme.cpp

.include "${.CURDIR:H:H}/x11-toolkits/wlroots016/override.mk"
.include <bsd.port.mk>