Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147429414
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/devel/intel-graphics-compiler/Makefile b/devel/intel-graphics-compiler/Makefile
index f1dfd1805a1d..fa498c47df01 100644
--- a/devel/intel-graphics-compiler/Makefile
+++ b/devel/intel-graphics-compiler/Makefile
@@ -1,50 +1,52 @@
PORTNAME= intel-graphics-compiler
DISTVERSIONPREFIX= igc-
DISTVERSION= 1.0.8365
CATEGORIES= devel
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= ef9a69ee4723.patch:-p1 # https://github.com/intel/intel-graphics-compiler/pull/189
PATCHFILES+= 8888a28132ac.patch:-p1 # https://github.com/intel/intel-graphics-compiler/pull/189
PATCHFILES+= b926d2c2f490.patch:-p1 # https://github.com/intel/intel-graphics-compiler/pull/189
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Intel Graphics Compiler for OpenCL
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= Only Intel GPUs on x86 are supported
# llvm10 is unstable, see https://github.com/intel/compute-runtime/issues/431
BUILD_DEPENDS= vc-intrinsics-llvm11>=s20210730:devel/vc-intrinsics@llvm11
LIB_DEPENDS= libopencl-clang.so.11:devel/opencl-clang@llvm11
USES= bison cmake compiler:c++17-lang python:build
USE_GITHUB= yes
USE_LDCONFIG= yes
GH_ACCOUNT= intel
CMAKE_OFF= INSTALL_SPIRVDLL
CMAKE_ARGS= -DCMAKE_PREFIX_PATH:PATH="${LOCALBASE}/${LIB_DEPENDS:M*@llvm*:C/.*@//}" \
-DIGC_OPTION__LLVM_PREFERRED_VERSION:STRING="${LIB_DEPENDS:M*@llvm*:C/.*so\.//:C/:.*//}"
CFLAGS+= -Wno-macro-redefined # __fastcall
PLIST_SUB= ARCH_SUFX=${ARCH:S/i386/32/:S/amd//:S/x86_//}
post-patch:
# lang/python* don't install unsuffixed symlinks
@${REINPLACE_CMD} -i .python \
-e '/EXECUTABLE/s/"python"/"${PYTHON_CMD:T}"/' \
-e '/IGC_PYTHON/s/"python"/"${PYTHON_CMD:T}"/' \
${WRKSRC}/IGC/CMakeLists.txt \
${WRKSRC}/IGC/BiFModule/linux/CMakeLists.txt
# devel/llvm* have different naming from upstream under PATH
@${REINPLACE_CMD} -e '/clang-\$$/s//clang$$/' \
-e '/llvm-\$$/s//llvm$$/' \
${WRKSRC}/IGC/cmake/igc_find_liblldELF.cmake \
${WRKSRC}/IGC/cmake/igc_find_opencl_clang.cmake
# No need to abort on every benign warning enabled by default
+# Disable debug symbols unless WITH_DEBUG passed via CXXFLAGS
@${REINPLACE_CMD} -e 's/"-Werror"//; /-Werror/d' \
+ -e 's/"-g"//' \
${WRKSRC}/IGC/CMakeLists.txt
.include <bsd.port.mk>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Jul 7, 2:37 PM (2 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29019888
Default Alt Text
(2 KB)
Attached To
Mode
R11 FreeBSD ports repository
Attached
Detach File
Event Timeline
Log In to Comment