summaryrefslogtreecommitdiff
path: root/x11/ashell/Makefile
blob: 5886647b7b884ceb406d7a7ec723e0b465f8550c (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=	ashell
DISTVERSION=	0.6.0
CATEGORIES=	x11 wayland

MAINTAINER=	tagattie@FreeBSD.org
COMMENT=	Ready to go Wayland status bar for Hyprland
WWW=		https://malpenzibo.github.io/ashell/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libpulse.so:audio/pulseaudio \
		libinotify.so:devel/libinotify \
		libudev.so:devel/libudev-devd \
		libpipewire-0.3.so:multimedia/pipewire \
		libxkbcommon.so:x11/libxkbcommon

USES=		cargo llvm localbase:ldflags

USE_GITHUB=	yes
GH_ACCOUNT=	MalpenZibo

LDFLAGS+=	-linotify

PORTSCOUT=	limit:^[0-9]\.

PLIST_FILES=	bin/${PORTNAME}
PORTDOCS=	CHANGELOG.md README.md

OPTIONS_DEFINE=	DOCS

post-patch:
	@${BSDMAKE} PATCHDIR=${PATCHDIR}/iced WRKSRC=${WRKSRC_crate_iced} \
		do-patch
# https://github.com/RazrFalcon/fontdb/issues/61
	@${REINPLACE_CMD} -e 's|/etc|${LOCALBASE}&|g' \
		${WRKSRC_crate_fontdb-0.18.0}/src/lib.rs \
		${WRKSRC_crate_fontdb-0.23.0}/src/lib.rs
# temporary hack to avoid the following error in configure phase
# error: failed to select a version for the requirement `redox_syscall = "^0.4.1"`
	@${REINPLACE_CMD} -E '/redox_syscall =/s/0\.4(\.[0-9])?/0\.5/' \
		${WRKSRC_crate_softbuffer}/Cargo.toml \
		${WRKSRC_crate_winit}/Cargo.toml

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>