summaryrefslogtreecommitdiff
path: root/x11/rofi/Makefile
blob: b3ebbe6423710198c4dd62f2b2a91093eabfd7b3 (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

PORTNAME=	rofi
DISTVERSION?=	1.6.1
PORTREVISION?=	0
CATEGORIES=	x11

MAINTAINER=	nomoo@nomoo.ru
COMMENT=	Window switcher, run dialog and dmenu replacement

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS+=	libstartup-notification-1.so:x11/startup-notification \
		libxcb-ewmh.so:x11/xcb-util-wm \
		libxcb-icccm.so:x11/xcb-util-wm \
		libxcb-util.so:x11/xcb-util \
		libxcb-xrm.so:x11/xcb-util-xrm \
		libxkbcommon-x11.so:x11/libxkbcommon

USES=		bison gnome meson pkgconfig shebangfix xorg
USE_GITHUB=	yes # required by rofi-wayland
USE_GNOME=	cairo gdkpixbuf2 librsvg2 pango
USE_XORG=	xcb
GH_ACCOUNT?=	davatorium
GH_TUPLE=	sardemff7:libgwater:e6faf48:libgwater/subprojects/libgwater \
		sardemff7:libnkutils:6164bac:libnkutils/subprojects/libnkutils
SHEBANG_FILES=	script/get_git_rev.sh \
		script/rofi-sensible-terminal
bash_CMD=	/bin/sh

CONFLICTS_INSTALL?=	${PORTNAME}-wayland

OPTIONS_DEFINE=	TEST

TEST_BUILD_DEPENDS=	checkmk:devel/check
TEST_MESON_ENABLED=	check

post-patch:
# Fix rofi-theme-selector which assumes we have GNU sed
	@${REINPLACE_CMD} 's|$${SED} -i |$${SED} -i "" |' \
		${WRKSRC}/script/rofi-theme-selector

.include <bsd.port.mk>