mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
2322b66100
PR: 278834
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
PORTNAME= helvum
|
|
DISTVERSION= 0.5.1
|
|
PORTREVISION= 7
|
|
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 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}
|
|
CARGO_BUILD= no
|
|
CARGO_INSTALL= no
|
|
CARGO_TEST= no
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
share/applications/org.pipewire.Helvum.desktop \
|
|
share/icons/hicolor/scalable/apps/org.pipewire.Helvum.svg \
|
|
share/icons/hicolor/symbolic/apps/org.pipewire.Helvum-symbolic.svg \
|
|
share/metainfo/org.pipewire.Helvum.metainfo.xml
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,"llvm-config,"${LLVM_CONFIG},' \
|
|
${WRKSRC_crate_clang-sys}/build/common.rs \
|
|
${WRKSRC_crate_clang-sys}/src/support.rs
|
|
@${REINPLACE_CMD} -e '/update_desktop_database/d' \
|
|
${WRKSRC}/meson.build
|
|
# Make each cargo subcommand very verbose
|
|
# Add explicit <triple> subdir for --target from USES=cargo
|
|
@${REINPLACE_CMD} -e "/cargo_options =/s/ '--/&verbose', &verbose', &/" \
|
|
-e "/cp/s,'src',& / '${CARGO_BUILD_TARGET}'," \
|
|
${WRKSRC}/src/meson.build
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
.include <bsd.port.mk>
|