vulkan-headers: add package
authorDaniel Golle <daniel@makrotopia.org>
Mon, 25 Nov 2024 21:34:24 +0000 (22:34 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 5 Dec 2024 01:19:32 +0000 (01:19 +0000)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libs/vulkan-headers/Makefile [new file with mode: 0644]

diff --git a/libs/vulkan-headers/Makefile b/libs/vulkan-headers/Makefile
new file mode 100644 (file)
index 0000000..bcdaa4f
--- /dev/null
@@ -0,0 +1,33 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=vulkan-headers
+PKG_VERSION:=1.3.302
+PKG_SOURCE:=Vulkan-Headers-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/KhronosGroup/Vulkan-Headers/tar.gz/v$(PKG_VERSION)?
+PKG_HASH:=996c3f4220971e3b3cd6b8933e9e81f0bc82b6d2d6449b6f02c66946d65bf944
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/Vulkan-Headers-$(PKG_VERSION)
+
+CMAKE_BINARY_SUBDIR:=build
+CMAKE_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+define Package/vulkan-headers
+  SECTION:=devel
+  CATEGORY:=Development
+  TITLE:=Vulkan Headers
+  URL:=https://github.com/KhronosGroup/Vulkan-Headers
+  BUILDONLY:=1
+endef
+
+define Package/vulkan-headers/description
+Vulkan header files and API registry.
+endef
+
+define Package/vulkan-headers/install
+true
+endef
+
+$(eval $(call BuildPackage,vulkan-headers))