Files
ports/lang/opensycl/Makefile
T
Rene Ladan 2a7c056120 all: drop support for FreeBSD 13, mips and risc64sf
Reviewed by:            many (*)
Differential Revision:  https://reviews.freebsd.org/D55624
Differential Revision:  https://reviews.freebsd.org/D55642 (merged in from bofh)

many (*)
  acm arrowd brooks cmt dch decke dinoex eduardo fluffy fuz gahr garga
  jbeich joerg jrm kai kenrap martymac matthew mfechner michaelo mizhka
  nobutaka pkubaj se tagattie thj

  Anton Saietskii
  GenericRikka
  Gert Doering
  Jan Bramkamp
  Oleh Hushchenkov
  Oleksandr Kryvulia
  Ralf van der Enden
  Yamagi

  desktop kde python tcltk office
2026-05-07 23:47:29 +02:00

47 lines
1.3 KiB
Makefile

PORTNAME= opensycl
DISTVERSIONPREFIX= v
DISTVERSION= 0.9.4
CATEGORIES= lang
MAINTAINER= yuri@FreeBSD.org
COMMENT= Multi-backend implementation of SYCL for CPUs and GPUs
WWW= https://github.com/OpenSYCL/OpenSYCL
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_i386= fails to compile: error: static_assert failed due to requirement 'sizeof(hipsycl::glue::unique_id) == 2 * sizeof(void *)'
BUILD_DEPENDS= boost-libs>0:devel/boost-libs
USES= cmake python shebangfix
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= OpenSYCL
GH_PROJECT= OpenSYCL
SHEBANG_FILES= bin/syclcc-clang cmake/syclcc-launcher
.if !exists(/usr/include/omp.h)
USES+= compiler:gcc-c++11-lib llvm:15
.else
USES+= compiler:c++11-lang llvm:15
.endif
do-test: # many tests fail, see https://github.com/OpenSYCL/OpenSYCL/issues/996
@cd ${WRKSRC}/tests && \
mkdir -p build && \
cd build && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} \
-DCMAKE_PREFIX_PATH=${STAGEDIR}${PREFIX} \
-DOpenSYCL_DIR="${STAGEDIR}${PREFIX}/lib/cmake/OpenSYCL" \
-DOPENSYCL_TARGETS="omp;hip:gfx801" .. && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} && \
for f in device_compilation_tests rt_tests sycl_tests; do \
${ECHO} "==> running tests from $$f"; \
./$${f}; \
done
.include <bsd.port.mk>