git: d2613ebb18c4 - 2023Q3 - x11/xdg-desktop-portal-hyprland: unbreak build after e602fc540b59

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Thu, 28 Sep 2023 01:43:49 UTC
The branch 2023Q3 has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d2613ebb18c4756dd5bd97f083bd55598b92aeb3

commit d2613ebb18c4756dd5bd97f083bd55598b92aeb3
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-09-28 01:41:29 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-09-28 01:42:47 +0000

    x11/xdg-desktop-portal-hyprland: unbreak build after e602fc540b59
    
    meson.build:1:0: ERROR: Unable to detect linker for compiler `c++ -Wl,--version -fstack-protector-strong -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fexperimental-library -nostdinc++ -isystem/wrkdirs/usr/ports/x11/xdg-desktop-portal-hyprland/work-qt5/libcxx_prefix/include/c++/v1`
    stdout:
    stderr: c++: error: unknown argument: '-fexperimental-library'
    
    Reported by:    pkg-fallout
    (direct commit to 2023Q3 as 4df0e66a3662 is missing on the branch)
---
 x11/xdg-desktop-portal-hyprland/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/x11/xdg-desktop-portal-hyprland/Makefile b/x11/xdg-desktop-portal-hyprland/Makefile
index 7681b0d0acab..875637935447 100644
--- a/x11/xdg-desktop-portal-hyprland/Makefile
+++ b/x11/xdg-desktop-portal-hyprland/Makefile
@@ -58,8 +58,11 @@ post-configure:
 .if ${CXX} == c++ && exists(/usr/lib/libc++.so)
 .if !exists(/usr/include/c++/v1/__ranges/as_rvalue_view.h) || make(makesum) || make(fetch)
 BUILD_DEPENDS+=	${CMAKE_BIN}:devel/cmake-core
-USES+=		llvm:min=16,build,export
+USES+=		llvm:min=16,build
 PATH:=		${LLVM_PREFIX}/bin:${PATH} # XXX _CMAKE_TOOLCHAIN_SUFFIX vs. devel/llvm*
+CC=		clang${LLVM_VERSION}
+CXX=		clang++${LLVM_VERSION}
+CPP=		clang-cpp${LLVM_VERSION}
 CONFIGURE_ENV+=	CC="${CC}" CXX="${CXX}" CPP="${CPP}"
 CMAKE_BIN=	${LOCALBASE}/bin/cmake