blob: fb4d7b3e38f9794926c2965998d8301621179728 (
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
39
40
41
42
43
|
PORTNAME= xdg-desktop-portal-luminous
DISTVERSIONPREFIX= v
DISTVERSION= 0.1.4
PORTREVISION= 1
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
BROKEN_FreeBSD_12= ld: error: undefined symbol: memfd_create
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>
|