diff options
author | maya <maya@pkgsrc.org> | 2021-01-24 18:57:46 +0000 |
---|---|---|
committer | maya <maya@pkgsrc.org> | 2021-01-24 18:57:46 +0000 |
commit | 76a34464329764eebec23ca5a88d0c2c8294c0e0 (patch) | |
tree | ad7f7a845127ce33022b1c57cbe0afa5f7d81bae | |
parent | bef4b59c0ef5303f4c94801f0abb551759c319fa (diff) | |
download | pkgsrc-76a34464329764eebec23ca5a88d0c2c8294c0e0.tar.gz |
Add vulkan-headers version 1.1.126.0
Headers for the Vulkan graphics API.
-rw-r--r-- | graphics/Makefile | 3 | ||||
-rw-r--r-- | graphics/vulkan-headers/DESCR | 1 | ||||
-rw-r--r-- | graphics/vulkan-headers/Makefile | 22 | ||||
-rw-r--r-- | graphics/vulkan-headers/PLIST | 29 | ||||
-rw-r--r-- | graphics/vulkan-headers/buildlink3.mk | 16 | ||||
-rw-r--r-- | graphics/vulkan-headers/distinfo | 8 | ||||
-rw-r--r-- | graphics/vulkan-headers/patches/patch-CMakeLists.txt | 17 | ||||
-rw-r--r-- | graphics/vulkan-headers/patches/patch-include_vulkan_vulkan.hpp | 15 |
8 files changed, 110 insertions, 1 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index f8601e8d593..125e20e86ef 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.916 2021/01/01 17:19:09 pin Exp $ +# $NetBSD: Makefile,v 1.917 2021/01/24 18:57:46 maya Exp $ # COMMENT= Graphics tools and libraries @@ -798,6 +798,7 @@ SUBDIR+= vp SUBDIR+= vtk SUBDIR+= vtk-data SUBDIR+= vtk-docs +SUBDIR+= vulkan-headers SUBDIR+= wcslib SUBDIR+= wld SUBDIR+= wm-icons diff --git a/graphics/vulkan-headers/DESCR b/graphics/vulkan-headers/DESCR new file mode 100644 index 00000000000..f63aa02396e --- /dev/null +++ b/graphics/vulkan-headers/DESCR @@ -0,0 +1 @@ +Headers for the Vulkan graphics API. diff --git a/graphics/vulkan-headers/Makefile b/graphics/vulkan-headers/Makefile new file mode 100644 index 00000000000..0f26750eff3 --- /dev/null +++ b/graphics/vulkan-headers/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2021/01/24 18:57:46 maya Exp $ + +GITHUB_PROJECT= Vulkan-Headers +DISTNAME= sdk-1.1.126.0 +PKGNAME= ${GITHUB_PROJECT:tl}-${DISTNAME:S/sdk-//} +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_GITHUB:=KhronosGroup/} +DIST_SUBDIR= ${GITHUB_PROJECT} +GITHUB_TAG= ${DISTNAME} +EXTRACT_USING= bsdtar + +MAINTAINER= nros@NetBSD.org +HOMEPAGE= https://github.com/KhronosGroup/Vulkan-Headers/ +COMMENT= Headers for Vulkan Graphics API +LICENSE= apache-2.0 + +USE_CMAKE= yes + +REPLACE_PYTHON= registry/*.py + +.include "../../lang/python/application.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/vulkan-headers/PLIST b/graphics/vulkan-headers/PLIST new file mode 100644 index 00000000000..b22fce8cf5c --- /dev/null +++ b/graphics/vulkan-headers/PLIST @@ -0,0 +1,29 @@ +@comment $NetBSD: PLIST,v 1.1 2021/01/24 18:57:46 maya Exp $ +include/vulkan/vk_icd.h +include/vulkan/vk_layer.h +include/vulkan/vk_platform.h +include/vulkan/vk_sdk_platform.h +include/vulkan/vulkan.h +include/vulkan/vulkan.hpp +include/vulkan/vulkan_android.h +include/vulkan/vulkan_core.h +include/vulkan/vulkan_fuchsia.h +include/vulkan/vulkan_ggp.h +include/vulkan/vulkan_ios.h +include/vulkan/vulkan_macos.h +include/vulkan/vulkan_metal.h +include/vulkan/vulkan_vi.h +include/vulkan/vulkan_wayland.h +include/vulkan/vulkan_win32.h +include/vulkan/vulkan_xcb.h +include/vulkan/vulkan_xlib.h +include/vulkan/vulkan_xlib_xrandr.h +share/vulkan/registry/cgenerator.py +share/vulkan/registry/conventions.py +share/vulkan/registry/generator.py +share/vulkan/registry/genvk.py +share/vulkan/registry/reg.py +share/vulkan/registry/spec_tools/util.py +share/vulkan/registry/validusage.json +share/vulkan/registry/vk.xml +share/vulkan/registry/vkconventions.py diff --git a/graphics/vulkan-headers/buildlink3.mk b/graphics/vulkan-headers/buildlink3.mk new file mode 100644 index 00000000000..8709b2ea944 --- /dev/null +++ b/graphics/vulkan-headers/buildlink3.mk @@ -0,0 +1,16 @@ +# $NetBSD: buildlink3.mk,v 1.1 2021/01/24 18:57:46 maya Exp $ + +BUILDLINK_TREE+= vulkan-headers + +.if !defined(VULKAN_HEADERS_BUILDLINK3_MK) +VULKAN_HEADERS_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.vulkan-headers+= vulkan-headers>=1.1.126.0 +BUILDLINK_PKGSRCDIR.vulkan-headers?= ../../graphics/vulkan-headers +.endif # VULKAN_HEADERS_BUILDLINK3_MK + +.include "../../x11/liboldXrandr/buildlink3.mk" +.include "../../x11/libX11/buildlink3.mk" +.include "../../x11/libxcb/buildlink3.mk" + +BUILDLINK_TREE+= -vulkan-headers diff --git a/graphics/vulkan-headers/distinfo b/graphics/vulkan-headers/distinfo new file mode 100644 index 00000000000..43016370465 --- /dev/null +++ b/graphics/vulkan-headers/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1 2021/01/24 18:57:46 maya Exp $ + +SHA1 (Vulkan-Headers/sdk-1.1.126.0.tar.gz) = a68e99a5eb1f6c4de97877718dba0fbeeccb07ff +RMD160 (Vulkan-Headers/sdk-1.1.126.0.tar.gz) = 9656c621304750488da54a1dd8ebc4953d35023c +SHA512 (Vulkan-Headers/sdk-1.1.126.0.tar.gz) = b050e0d17ad7b143c59a401a4a75ef97afdbc94f1cbfd4571ce1b83380927879cb05b7b62b81c7da8b501ebe0fbe70dc3acacaab3656da465b4bc06559266d3f +Size (Vulkan-Headers/sdk-1.1.126.0.tar.gz) = 665900 bytes +SHA1 (patch-CMakeLists.txt) = f7364dcc20799db2e9a5b3f7b14ecea2c1bceea5 +SHA1 (patch-include_vulkan_vulkan.hpp) = 3ba0c40361b4358a63036174373b787ec86cc9e7 diff --git a/graphics/vulkan-headers/patches/patch-CMakeLists.txt b/graphics/vulkan-headers/patches/patch-CMakeLists.txt new file mode 100644 index 00000000000..5e57126b02e --- /dev/null +++ b/graphics/vulkan-headers/patches/patch-CMakeLists.txt @@ -0,0 +1,17 @@ +$NetBSD: patch-CMakeLists.txt,v 1.1 2021/01/24 18:57:46 maya Exp $ + +* don't install pkgsrc generated files + +--- CMakeLists.txt.orig 2019-12-02 18:11:46.793667657 +0000 ++++ CMakeLists.txt +@@ -45,8 +45,8 @@ add_library(Vulkan-Registry INTERFACE) + target_include_directories(Vulkan-Registry INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/registry") + add_library(Vulkan::Registry ALIAS Vulkan-Registry) + +-install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/vulkan" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) +-install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/registry" DESTINATION ${CMAKE_INSTALL_DATADIR}/vulkan) ++install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/vulkan" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} PATTERN "*.orig" EXCLUDE) ++install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/registry" DESTINATION ${CMAKE_INSTALL_DATADIR}/vulkan PATTERN "*.orig" EXCLUDE) + + # uninstall target + if(NOT TARGET uninstall) diff --git a/graphics/vulkan-headers/patches/patch-include_vulkan_vulkan.hpp b/graphics/vulkan-headers/patches/patch-include_vulkan_vulkan.hpp new file mode 100644 index 00000000000..4ad80d58864 --- /dev/null +++ b/graphics/vulkan-headers/patches/patch-include_vulkan_vulkan.hpp @@ -0,0 +1,15 @@ +$NetBSD: patch-include_vulkan_vulkan.hpp,v 1.1 2021/01/24 18:57:46 maya Exp $ + +* add NetBSD support +* +--- include/vulkan/vulkan.hpp.orig 2019-12-02 17:52:14.520273368 +0000 ++++ include/vulkan/vulkan.hpp +@@ -56,7 +56,7 @@ + # define VULKAN_HPP_ASSERT assert + #endif + +-#if defined(__linux__) || defined(__APPLE__) ++#if defined(__linux__) || defined(__APPLE__) || defined(__NetBSD__) + # include <dlfcn.h> + #endif + |