aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/wayfire-plugins-extra/Makefile
blob: 6e0f580088757fbeb3764ab5c55460de3fc6dd42 (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
46
47
48
49
PORTNAME=	wayfire-plugins-extra
DISTVERSIONPREFIX=	v
DISTVERSION=	0.7.0
PORTREVISION=	3
CATEGORIES=	x11-wm

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Additional plugins for Wayfire

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

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

USES=		compiler:c++17-lang gnome meson pkgconfig shebangfix
USE_GITHUB=	yes
USE_GITLAB=	nodefault
USE_GNOME=	cairo glibmm
GH_ACCOUNT=	WayfireWM
GH_TUPLE=	damianatorrpm:wayfire-plugin_dbus_interface:c705bf1:dbus/subprojects/dbus
GL_TUPLE=	wayfireplugins:windecor:6ad31bfc10c5d39c0da7c68fa435064effad6381:windecor/subprojects/windecor
SHEBANG_FILES=	subprojects/dbus/compile-schemas.sh
bash_CMD=	${SH}

OPTIONS_DEFINE=	DBUS LIBRSVG2
OPTIONS_DEFAULT=DBUS LIBRSVG2
OPTIONS_SUB=	yes

DBUS_BUILD_DEPENDS=	evdev-proto>0:devel/evdev-proto
DBUS_USES=		xorg
DBUS_USE=		XORG=xcb
DBUS_MESON_TRUE=	enable_dbus
DBUS_VARS=		GLIB_SCHEMAS+=org.wayland.compositor.dbus.gschema.xml

LIBRSVG2_BUILD_DEPENDS=	evdev-proto>0:devel/evdev-proto
LIBRSVG2_USES=		xorg
LIBRSVG2_USE=		GNOME=librsvg2 XORG=pixman
LIBRSVG2_MESON_TRUE=	enable_windecor

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

.include <bsd.port.mk>