summaryrefslogtreecommitdiff
path: root/x11/eww/Makefile
blob: 3832ee9a2b1c46c894bbab06d44f50c14a5cc37c (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
PORTNAME=	eww
DISTVERSIONPREFIX=	v
DISTVERSION=	0.4.0
PORTREVISION=	8
CATEGORIES=	x11 wayland
PKGNAMESUFFIX=	-${FLAVOR}

MAINTAINER=	DtxdF@disroot.org
COMMENT=	ElKowars wacky widgets
WWW=		https://elkowar.github.io/eww

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BROKEN_armv7=	mismatched types: expected \`i32\`, found \`i64\`

FLAVORS=			x11 wayland
wayland_LIB_DEPENDS=		libgtk-layer-shell.so:x11-toolkits/gtk-layer-shell
wayland_CONFLICTS_INSTALL=	${PORTNAME}-x11
x11_CONFLICTS_INSTALL=		${PORTNAME}-wayland

USES=		cargo gnome
USE_GITHUB=	yes
GH_ACCOUNT=	elkowar
USE_GNOME=	cairo gdkpixbuf2 gtk30

CARGO_FEATURES=		--no-default-features ${FLAVOR}
CARGO_INSTALL_PATH=	crates/${PORTNAME}
CARGO_ENV=	RUSTC_BOOTSTRAP=1

PLIST_FILES=	bin/${PORTNAME}

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>