freebsd-ports/x11/xdg-desktop-portal-luminous/Makefile
2024-02-19 12:59:23 +01:00

41 lines
1.3 KiB
Makefile

PORTNAME= xdg-desktop-portal-luminous
DISTVERSIONPREFIX= v
DISTVERSION= 0.1.4
PORTREVISION= 4
CATEGORIES= x11 wayland
MAINTAINER= jbeich@FreeBSD.org
COMMENT= xdg-desktop-portal backend for wlroots
WWW= https://github.com/waycrate/xdg-desktop-portal-luminous
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libpipewire-0.3.so:multimedia/pipewire \
libxkbcommon.so:x11/libxkbcommon
RUN_DEPENDS= slurp:x11/slurp
USES= cargo llvm meson pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= waycrate
MAKE_ENV= ${CARGO_ENV}
CARGO_BUILD= no
CARGO_INSTALL= no
CARGO_TEST= no
PLIST_FILES= lib/systemd/user/${PORTNAME}.service \
libexec/${PORTNAME} \
share/dbus-1/services/org.freedesktop.impl.portal.desktop.luminous.service \
share/xdg-desktop-portal/portals/luminous.portal
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
# Add explicit <triple> subdir for --target from USES=cargo
# Adjust for CARGO_TARGET_DIR outside of meson.global_source_root()
@${REINPLACE_CMD} -e "/cargo.*build/s/$$/ '--verbose', '--verbose',/" \
-e "/cp/s,'target','..' / & / '${CARGO_BUILD_TARGET}'," \
${WRKSRC}/meson.build
.include <bsd.port.mk>