diff options
Diffstat (limited to 'media-libs/vulkan-layers')
4 files changed, 76 insertions, 2 deletions
diff --git a/media-libs/vulkan-layers/Manifest b/media-libs/vulkan-layers/Manifest index 5086d5436356..11376f7e331c 100644 --- a/media-libs/vulkan-layers/Manifest +++ b/media-libs/vulkan-layers/Manifest @@ -1,5 +1,7 @@ AUX vulkan-layers-1.3.239-Build-shared-libs.patch 754 BLAKE2B fb86f678b9b2b76642ec3fccdd3068b9f4da2dd55f884fe4adb83b02090adb1c992a2aca853cf7b716a0006f8ff2cb2660070220b54c450f5333d5436c4b93a4 SHA512 d82a8b4ddb542b52a49c6fc83aac5af5b598371df58699838f5c646efcbd10b0ba54dd163e3c223b54f276f2209f942d65d7d32aef42d395a154cfb7aadd5b33 +AUX vulkan-layers-1.3.239-Export-symbols.patch 436 BLAKE2B 0e9f86d8d64844fe42d0e438e2c1e3ae5b53b92acaf3f458ef335904a78fb9c6947dbdbfc6217b87d961ab82b75f46bd7fc0b120afba064a577b7ba5a1619a73 SHA512 ef8a653bb66f8224cf94dfe77ad2988f9b3d53001961998be3567f917db696a5a05ba892365f049837a21aa3831c4d196f7a1c623eeeac27ee6eabd83e81c928 DIST vulkan-layers-1.3.239.tar.gz 4549587 BLAKE2B b5ac5afade60b048414a336dc130ae2e7c332e1a9e4b86448be9c86f17f7705990b27908721ee2f62e3425f117d3941f47525f8fa0d07e79bc3c68f7e4e48f14 SHA512 4b96951874e5b7c7abbab83b0b85cfe10b13d3ced20148ddcdd9b6e79db5d083b9ee00ae1c3605a72bcea4c3b8f1ab42ed284eb2cbc8f7e98d377108970e884c +EBUILD vulkan-layers-1.3.239-r1.ebuild 1525 BLAKE2B dfb26d17837db94b629d3f4a024e2dc4893f2a273cce48689befe740aac8cd74c1fc08dbd25745626192d4debb7b0c85f0721a3a22b231bcc7f67609ac437774 SHA512 8ba9fcc8788520716524aceaa9bd98d895d72962e0051b8e169e4e51faf76daf434ddd9f553a62d295ac25878d006a0991773ad7f8141474d264ea436e690ddd EBUILD vulkan-layers-1.3.239.ebuild 1479 BLAKE2B 830d065c5956333c011b567ad9910b20a7c847d4eb59afee1f3219495a602a91a023a3e1e8d71b08bf2b0f5990a50b5126e41a5cc8917f2bb6cfcaf40bb9b3c1 SHA512 ecf247f0f9ce12744ba0db4f4bc378ed939a912ceea8341776a7553377d9260de36454c3f60195814e16ac6c20fd6400e7fe24e1a68a0be576ddde2d014caa09 -EBUILD vulkan-layers-9999.ebuild 1497 BLAKE2B f26dd0190f0de2852f4010cca9ee73d13b45d35254ef37812aed1f6efced6c0c2014ec1ce2627344b72e61d0a2ea0d37413614406db91113e0f037de4c9bbba2 SHA512 fa5cfaadf3bedc0894afdacf5f9552f3782119e4fb3974a9bc8ee3d34929232b92b629239faeac3a91982b32e2e7a4c79e6b920677334d82d16818dc76bbfd6e +EBUILD vulkan-layers-9999.ebuild 1545 BLAKE2B f2b26623ef55b877668d064005ca2ed22d608e391ede93d6428a548dbf647137a0fc5c08cc55a101fb917817c9ac3648e8ab44c272952b0cfbd8adf6e3f47ee9 SHA512 2b15a39150ce333f18aa0937143c584fdb92a004d1f153ce58868d2ed8921b2bf97794582d88c8477c8715a78e5cc5f46ddf83d12d00703566884687eb884f4a MISC metadata.xml 441 BLAKE2B d2183b70060e05054bd1fa93696ab04b5487fb8cc6b6af72520a47d0490b066c8ecdf10c9717cfaec7463668d7f639cfe8d05e5aa3ad860dbce3f4316122cd02 SHA512 c6c9c42f4cdd6c08cff6259c24ae05fe0755792f77078741e60594cd083a198b5575def4544a85162a7120578416c95b76d4b5847b9b781e16e9b826dcb5d095 diff --git a/media-libs/vulkan-layers/files/vulkan-layers-1.3.239-Export-symbols.patch b/media-libs/vulkan-layers/files/vulkan-layers-1.3.239-Export-symbols.patch new file mode 100644 index 000000000000..54a1f5f8393c --- /dev/null +++ b/media-libs/vulkan-layers/files/vulkan-layers-1.3.239-Export-symbols.patch @@ -0,0 +1,13 @@ +diff --git a/layers/CMakeLists.txt b/layers/CMakeLists.txt +index 640ac8471..043d313fd 100644 +--- a/layers/CMakeLists.txt ++++ b/layers/CMakeLists.txt +@@ -24,7 +24,7 @@ + add_compile_definitions(XXH_NO_LONG_LONG) + + add_library(VkLayer_utils SHARED) +-target_sources(VkLayer_utils PRIVATE ++target_sources(VkLayer_utils PUBLIC + generated/vk_format_utils.h + generated/vk_format_utils.cpp + generated/vk_validation_error_messages.h diff --git a/media-libs/vulkan-layers/vulkan-layers-1.3.239-r1.ebuild b/media-libs/vulkan-layers/vulkan-layers-1.3.239-r1.ebuild new file mode 100644 index 000000000000..77df77e94be3 --- /dev/null +++ b/media-libs/vulkan-layers/vulkan-layers-1.3.239-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN=Vulkan-ValidationLayers +PYTHON_COMPAT=( python3_{9..11} ) +inherit cmake-multilib python-any-r1 + +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="https://github.com/KhronosGroup/${MY_PN}.git" + EGIT_SUBMODULES=() + inherit git-r3 +else + SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/sdk-${PV}.0.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" + S="${WORKDIR}"/${MY_PN}-sdk-${PV}.0 +fi + +DESCRIPTION="Vulkan Validation Layers" +HOMEPAGE="https://github.com/KhronosGroup/Vulkan-ValidationLayers" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="wayland X" + +RDEPEND="~dev-util/spirv-tools-${PV}:=[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + >=dev-cpp/robin-hood-hashing-3.11.5 + ~dev-util/glslang-${PV}:=[${MULTILIB_USEDEP}] + ~dev-util/vulkan-headers-${PV} + wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] ) + X? ( + x11-libs/libX11:=[${MULTILIB_USEDEP}] + x11-libs/libXrandr:=[${MULTILIB_USEDEP}] + ) +" + +PATCHES="${FILESDIR}/${P}-Build-shared-libs.patch + ${FILESDIR}/${P}-Export-symbols.patch +" + +multilib_src_configure() { + local mycmakeargs=( + -DCMAKE_C_FLAGS="${CFLAGS} -DNDEBUG" + -DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG" + -DCMAKE_SKIP_RPATH=ON + -DBUILD_LAYER_SUPPORT_FILES=ON + -DBUILD_WERROR=OFF + -DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland) + -DBUILD_WSI_XCB_SUPPORT=$(usex X) + -DBUILD_WSI_XLIB_SUPPORT=$(usex X) + -DBUILD_TESTS=OFF + ) + cmake_src_configure +} diff --git a/media-libs/vulkan-layers/vulkan-layers-9999.ebuild b/media-libs/vulkan-layers/vulkan-layers-9999.ebuild index 2a018ab0cf3c..3bdb7b185bb7 100644 --- a/media-libs/vulkan-layers/vulkan-layers-9999.ebuild +++ b/media-libs/vulkan-layers/vulkan-layers-9999.ebuild @@ -37,7 +37,9 @@ DEPEND="${RDEPEND} ) " -PATCHES="${FILESDIR}/${PN}-1.3.239-Build-shared-libs.patch" +PATCHES="${FILESDIR}/${PN}-1.3.239-Build-shared-libs.patch +${FILESDIR}/${PN}-1.3.239-Export-symbols.patch +" multilib_src_configure() { local mycmakeargs=( |