git: 7fa88acfabc2 - main - lang/opensycl: Fix warning messages with `make describe`

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Sat, 17 Aug 2024 00:40:46 UTC
The branch main has been updated by yasu:

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

commit 7fa88acfabc2fd1ff166356976dcfce15f49ad09
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2024-08-17 00:34:27 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2024-08-17 00:40:36 +0000

    lang/opensycl: Fix warning messages with `make describe`
    
    % pwd
    /usr/ports/lang/opensycl
    % make describe
    sh: /usr/local/llvm15/bin/clang: not found
    make: "/usr/ports/Mk/Uses/compiler.mk" line 83: warning: "/usr/local/llvm15/bin/clang --version" returned non-zero status
    make: "/usr/ports/Mk/Uses/compiler.mk" line 131: warning: "/usr/local/llvm15/bin/clang++ -### /dev/null 2>&1" returned non-zero status
    opensycl-0.9.4|/usr/ports/lang/opensycl|/usr/local|Multi-backend implementation of SYCL for CPUs and GPUs|/usr/ports/lang/opensycl/pkg-descr|yuri@FreeBSD.org|lang||||/usr/ports/devel/boost-libs /usr/ports/devel/cmake-core /usr/ports/devel/llvm15 /usr/ports/devel/ninja /usr/ports/lang/python311|/usr/ports/lang/python311|https://github.com/OpenSYCL/OpenSYCL
    %
    
    Approved by:    portmgr (implicit, just fix it)
    Fixes:          230ffdc7852d lang/opensycl: fix build without libomp
---
 lang/opensycl/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lang/opensycl/Makefile b/lang/opensycl/Makefile
index 0d553d18ec2e..0ab23c62bc65 100644
--- a/lang/opensycl/Makefile
+++ b/lang/opensycl/Makefile
@@ -15,7 +15,7 @@ BROKEN_FreeBSD_13_armv7=	configure fails: Cannot run simple program using std::f
 
 BUILD_DEPENDS=	boost-libs>0:devel/boost-libs
 
-USES=		cmake llvm:15 python shebangfix
+USES=		cmake python shebangfix
 USE_LDCONFIG=	yes
 
 USE_GITHUB=	yes
@@ -25,9 +25,9 @@ GH_PROJECT=	OpenSYCL
 SHEBANG_FILES=	bin/syclcc-clang cmake/syclcc-launcher
 
 .if !exists(/usr/include/omp.h)
-USES+=	compiler:gcc-c++11-lib
+USES+=	compiler:gcc-c++11-lib llvm:15
 .else
-USES+=	compiler:c++11-lang
+USES+=	compiler:c++11-lang llvm:15
 .endif
 
 do-test: # many tests fail, see https://github.com/OpenSYCL/OpenSYCL/issues/996