blob: 10b780258b31496b64b0e7e0478b37cb153212b9 (
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
|
PORTNAME= helvum
DISTVERSION= 0.5.1
CATEGORIES= multimedia
MAINTAINER= jbeich@FreeBSD.org
COMMENT= GTK patchbay for PipeWire
WWW= https://gitlab.freedesktop.org/ryuukyu/helvum
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libgraphene-1.0.so:graphics/graphene \
libpipewire-0.3.so:multimedia/pipewire
USES= cargo desktop-file-utils gnome llvm meson pkgconfig
USE_GITLAB= yes
USE_GNOME= cairo gtk40 libadwaita
GL_SITE= https://gitlab.freedesktop.org
GL_ACCOUNT= ryuukyu
MAKE_ENV= ${CARGO_ENV}
PLIST_FILES= bin/${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's,"llvm-config,"${LLVM_CONFIG},' \
${WRKSRC_crate_clang-sys}/build/common.rs \
${WRKSRC_crate_clang-sys}/src/support.rs
# Make each cargo subcommand very verbose
@${REINPLACE_CMD} -e "/cargo_options =/s/ '--/&verbose', &verbose', &/" \
${WRKSRC}/src/meson.build
# XXX Drop after FreeBSD 12.4 EOL around 2023-12-31
# https://cgit.freebsd.org/src/commit/?id=7a202823aa54
.if !exists(/usr/include/sys/eventfd.h)
LIB_DEPENDS+= libepoll-shim.so:devel/libepoll-shim
LDFLAGS+= -lepoll-shim
.endif
.include <bsd.port.mk>
|