pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/parallel add parallel/spirv-llvm-translator



details:   https://anonhg.NetBSD.org/pkgsrc/rev/656a250c428a
branches:  trunk
changeset: 454316:656a250c428a
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Jun 09 14:55:10 2021 +0000

description:
add parallel/spirv-llvm-translator

The LLVM/SPIR-V Bi-Directional Translator is a library and tool for translation
between LLVM IR and SPIR-V.

SPIR-V is a binary intermediate language for representing graphical-shader
stages and compute kernels for multiple Khronos APIs, including OpenCL,
OpenGL, and Vulkan. SPIR-V defines a new language and is a successor to the
original Khronos SPIR, which supported only OpenCL device programs.

diffstat:

 parallel/Makefile                                           |   3 +-
 parallel/spirv-llvm-translator/DESCR                        |   7 +++
 parallel/spirv-llvm-translator/Makefile                     |  23 +++++++++++++
 parallel/spirv-llvm-translator/PLIST                        |   7 +++
 parallel/spirv-llvm-translator/buildlink3.mk                |  15 ++++++++
 parallel/spirv-llvm-translator/distinfo                     |   7 +++
 parallel/spirv-llvm-translator/patches/patch-CMakeLists.txt |  15 ++++++++
 7 files changed, 76 insertions(+), 1 deletions(-)

diffs (115 lines):

diff -r 91f37772512f -r 656a250c428a parallel/Makefile
--- a/parallel/Makefile Wed Jun 09 14:21:28 2021 +0000
+++ b/parallel/Makefile Wed Jun 09 14:55:10 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2020/08/09 15:51:07 brook Exp $
+# $NetBSD: Makefile,v 1.30 2021/06/09 14:55:10 nia Exp $
 #
 
 COMMENT=       Applications dealing with parallelism in computing
@@ -25,6 +25,7 @@
 SUBDIR+=       py-billiard
 SUBDIR+=       sge
 SUBDIR+=       slurm-wlm
+SUBDIR+=       spirv-llvm-translator
 SUBDIR+=       threadingbuildingblocks
 
 .include "../mk/misc/category.mk"
diff -r 91f37772512f -r 656a250c428a parallel/spirv-llvm-translator/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/spirv-llvm-translator/DESCR      Wed Jun 09 14:55:10 2021 +0000
@@ -0,0 +1,7 @@
+The LLVM/SPIR-V Bi-Directional Translator is a library and tool for translation
+between LLVM IR and SPIR-V.
+
+SPIR-V is a binary intermediate language for representing graphical-shader
+stages and compute kernels for multiple Khronos APIs, including OpenCL,
+OpenGL, and Vulkan. SPIR-V defines a new language and is a successor to the
+original Khronos SPIR, which supported only OpenCL device programs.
diff -r 91f37772512f -r 656a250c428a parallel/spirv-llvm-translator/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/spirv-llvm-translator/Makefile   Wed Jun 09 14:55:10 2021 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2021/06/09 14:55:10 nia Exp $
+
+DISTNAME=      SPIRV-LLVM-Translator-v10.0.0
+PKGNAME=       ${DISTNAME:tl:S/-v/-/1}
+CATEGORIES=    parallel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=KhronosGroup/}
+GITHUB_PROJECT=        SPIRV-LLVM-Translator
+GITHUB_TAG=    ${DISTNAME:S/SPIRV-LLVM-Translator-//1}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/KhronosGroup/SPIRV-LLVM-Translator
+COMMENT=       Tool and library for translation between SPIR-V and LLVM IR
+LICENSE=       modified-bsd
+
+USE_CMAKE=     yes
+USE_LANGUAGES= c c++
+
+CMAKE_ARGS+=   -DBUILD_SHARED_LIBS=ON
+
+PKGCONFIG_OVERRIDE+=   LLVMSPIRVLib.pc.in
+
+.include "../../lang/llvm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 91f37772512f -r 656a250c428a parallel/spirv-llvm-translator/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/spirv-llvm-translator/PLIST      Wed Jun 09 14:55:10 2021 +0000
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2021/06/09 14:55:10 nia Exp $
+include/LLVMSPIRVLib/LLVMSPIRVExtensions.inc
+include/LLVMSPIRVLib/LLVMSPIRVLib.h
+include/LLVMSPIRVLib/LLVMSPIRVOpts.h
+lib/libLLVMSPIRVLib.so
+lib/libLLVMSPIRVLib.so.10
+lib/pkgconfig/LLVMSPIRVLib.pc
diff -r 91f37772512f -r 656a250c428a parallel/spirv-llvm-translator/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/spirv-llvm-translator/buildlink3.mk      Wed Jun 09 14:55:10 2021 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2021/06/09 14:55:10 nia Exp $
+
+BUILDLINK_TREE+=       spirv-llvm-translator
+
+.if !defined(SPIRV_LLVM_TRANSLATOR_BUILDLINK3_MK)
+SPIRV_LLVM_TRANSLATOR_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.spirv-llvm-translator+=  spirv-llvm-translator>=10.0.0
+BUILDLINK_PKGSRCDIR.spirv-llvm-translator?=    ../../parallel/spirv-llvm-translator
+
+.include "../../lang/llvm/buildlink3.mk"
+
+.endif # SPIRV_LLVM_TRANSLATOR_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -spirv-llvm-translator
diff -r 91f37772512f -r 656a250c428a parallel/spirv-llvm-translator/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/spirv-llvm-translator/distinfo   Wed Jun 09 14:55:10 2021 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2021/06/09 14:55:10 nia Exp $
+
+SHA1 (SPIRV-LLVM-Translator-v10.0.0.tar.gz) = 5cf0641ec14cf49cd440d2364d1de666ba62f789
+RMD160 (SPIRV-LLVM-Translator-v10.0.0.tar.gz) = 77990dd444a183e1bf46f8fda7c8051e958851cf
+SHA512 (SPIRV-LLVM-Translator-v10.0.0.tar.gz) = d6400bb3e4df780358b5d6d0af889e7654b7dfd472c8d41b77ff98e7ff1bd017c289ecacb59a3dd7bfddb1a5108e21028aa770bf645e06178610bb322de905be
+Size (SPIRV-LLVM-Translator-v10.0.0.tar.gz) = 535828 bytes
+SHA1 (patch-CMakeLists.txt) = 0ddc0228c5fd49cce32838954795fb03d3a7115d
diff -r 91f37772512f -r 656a250c428a parallel/spirv-llvm-translator/patches/patch-CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/spirv-llvm-translator/patches/patch-CMakeLists.txt       Wed Jun 09 14:55:10 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2021/06/09 14:55:10 nia Exp $
+
+We don't want the package finding ccache because pkgsrc handles
+ccache on its own.
+
+--- CMakeLists.txt.orig        2020-03-20 19:52:42.000000000 +0000
++++ CMakeLists.txt
+@@ -49,7 +49,6 @@ if(LLVM_SPIRV_BUILD_EXTERNAL)
+ 
+   message(STATUS "Found LLVM: ${LLVM_VERSION}")
+ 
+-  find_program(CCACHE_EXE_FOUND ccache)
+   if(CCACHE_EXE_FOUND)
+     message(STATUS "Found ccache: ${CCACHE_EXE_FOUND}")
+     set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)



Home | Main Index | Thread Index | Old Index