4c6df6f5f1
Changes: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/tag/v16.0.0 Reported by: GitHub (watch releases)
58 lines
2 KiB
Makefile
58 lines
2 KiB
Makefile
PORTNAME= spirv-llvm-translator
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= ${DISTVERSION_${FLAVOR}}
|
|
DISTVERSION_llvm16= 16.0.0
|
|
DISTVERSION_llvm15= 15.0.0
|
|
DISTVERSION_llvm14= 14.0.0
|
|
DISTVERSION_llvm13= 13.0.0
|
|
DISTVERSION_llvm12= 12.0.0
|
|
DISTVERSION_llvm11= 11.0.0
|
|
CATEGORIES= devel
|
|
PKGNAMESUFFIX= -${FLAVOR}
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT= Bi-directional translation between SPIR-V and LLVM IR
|
|
WWW= https://github.com/KhronosGroup/SPIRV-LLVM-Translator
|
|
|
|
LICENSE= NCSA
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
|
|
|
|
LIB_DEPENDS= libLLVM-${FLAVOR:S/llvm//}.so:devel/${FLAVOR}
|
|
|
|
FLAVORS= ${16 15 14 13 12 11:L:S/^/llvm/}
|
|
|
|
USES= cmake compiler:c++11-lib
|
|
USE_GITHUB= yes
|
|
USE_LDCONFIG= ${PREFIX}/${FLAVOR}/lib
|
|
GH_ACCOUNT= KhronosGroup
|
|
GH_PROJECT= SPIRV-LLVM-Translator
|
|
GH_TUPLE= ${GH_TUPLE_${FLAVOR}}
|
|
GH_TUPLE_llvm16=KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-219-g36c7694:headers/projects/SPIRV-Headers
|
|
GH_TUPLE_llvm15=KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-168-g5a12186:headers/projects/SPIRV-Headers
|
|
GH_TUPLE_llvm14=KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-124-g20b02de:headers/projects/SPIRV-Headers
|
|
GH_TUPLE_llvm13=KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-83-gddf3230:headers/projects/SPIRV-Headers
|
|
DISTINFO_FILE= ${.CURDIR}/distinfo.${FLAVOR}
|
|
CMAKE_ON= BUILD_SHARED_LIBS LLVM_BUILD_TOOLS LLVM_TOOL_SPIRV_HEADERS_BUILD
|
|
CMAKE_ARGS= -DLLVM_DIR:PATH="${LOCALBASE}/${FLAVOR}"
|
|
CMAKE_INSTALL_PREFIX= ${PREFIX}/${FLAVOR}
|
|
_PLIST_FILES= bin/llvm-spirv \
|
|
include/LLVMSPIRVLib/LLVMSPIRVExtensions.inc \
|
|
include/LLVMSPIRVLib/LLVMSPIRVLib.h \
|
|
include/LLVMSPIRVLib/LLVMSPIRVOpts.h \
|
|
lib/libLLVMSPIRVLib.so \
|
|
lib/libLLVMSPIRVLib.so.${DISTVERSION:R:R} \
|
|
libdata/pkgconfig/LLVMSPIRVLib.pc
|
|
PLIST_FILES= ${_PLIST_FILES:S,^,${FLAVOR}/,}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/pkgconfig/s/lib/&data/' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
.if !defined(DEFAULT_MAKESUM)
|
|
makesum:
|
|
. for f in ${FLAVORS}
|
|
${MAKE} -C${.CURDIR} FLAVOR=$f DEFAULT_MAKESUM=1 ${.TARGET}
|
|
. endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|