1 |
commit: fd501b4794ea8e04f5acc373e8192f36370af94a |
2 |
Author: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 2 01:03:24 2022 +0000 |
4 |
Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 01:15:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd501b47 |
7 |
|
8 |
media-libs/vulkan-loader: add 1.3.224 |
9 |
|
10 |
Signed-off-by: Nick Sarnie <sarnex <AT> gentoo.org> |
11 |
|
12 |
media-libs/vulkan-loader/Manifest | 1 + |
13 |
.../vulkan-loader/vulkan-loader-1.3.224.ebuild | 65 ++++++++++++++++++++++ |
14 |
2 files changed, 66 insertions(+) |
15 |
|
16 |
diff --git a/media-libs/vulkan-loader/Manifest b/media-libs/vulkan-loader/Manifest |
17 |
index 10e1fd128482..f7dbde283f8b 100644 |
18 |
--- a/media-libs/vulkan-loader/Manifest |
19 |
+++ b/media-libs/vulkan-loader/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST vulkan-loader-1.3.216.tar.gz 1587902 BLAKE2B e51b3b2d49b2beb6272988d7a821dcbadd6e0c162a258c214dafe52b9ea041ad1e1bc014a72a86f2212c97ae5f6fd635fc649311c1437b7ffd110b02c7b8218e SHA512 92e2de415ae4e94b8c02abf77bbb41d2887c2fee6bb4fee75415bbaf7161cef2bfe245665acc47027ae08706a83e8aeb01656ded3d337252b5c84852ca94c9cc |
22 |
+DIST vulkan-loader-1.3.224.tar.gz 1594886 BLAKE2B a2b548c1b2ce4b5a700dca2708fc628ebc6ae248b5c1750cc2fe33d24e3f8260007f1fd04f2f3f55984889708354ebebf21bcce73e24f1da23aba426718f053a SHA512 e75f0d399703606fc89a08783c5cc9a542d7e14073039d63df4aac673d2b246a5c5b0ac4acab5e0f276b533c47645af11606de96460066fd70ccaa6de1888b37 |
23 |
|
24 |
diff --git a/media-libs/vulkan-loader/vulkan-loader-1.3.224.ebuild b/media-libs/vulkan-loader/vulkan-loader-1.3.224.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..873df8148a72 |
27 |
--- /dev/null |
28 |
+++ b/media-libs/vulkan-loader/vulkan-loader-1.3.224.ebuild |
29 |
@@ -0,0 +1,65 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+MY_PN=Vulkan-Loader |
36 |
+inherit flag-o-matic cmake-multilib toolchain-funcs |
37 |
+ |
38 |
+if [[ ${PV} == *9999* ]]; then |
39 |
+ EGIT_REPO_URI="https://github.com/KhronosGroup/${MY_PN}.git" |
40 |
+ EGIT_SUBMODULES=() |
41 |
+ inherit git-r3 |
42 |
+else |
43 |
+ SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/sdk-${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" |
45 |
+ S="${WORKDIR}"/${MY_PN}-sdk-${PV} |
46 |
+fi |
47 |
+ |
48 |
+DESCRIPTION="Vulkan Installable Client Driver (ICD) Loader" |
49 |
+HOMEPAGE="https://github.com/KhronosGroup/Vulkan-Loader" |
50 |
+ |
51 |
+LICENSE="Apache-2.0" |
52 |
+SLOT="0" |
53 |
+IUSE="layers wayland X" |
54 |
+ |
55 |
+BDEPEND=">=dev-util/cmake-3.10.2" |
56 |
+DEPEND=" |
57 |
+ ~dev-util/vulkan-headers-${PV} |
58 |
+ wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] ) |
59 |
+ X? ( |
60 |
+ x11-libs/libX11:=[${MULTILIB_USEDEP}] |
61 |
+ x11-libs/libXrandr:=[${MULTILIB_USEDEP}] |
62 |
+ ) |
63 |
+" |
64 |
+PDEPEND="layers? ( media-libs/vulkan-layers:=[${MULTILIB_USEDEP}] )" |
65 |
+ |
66 |
+multilib_src_configure() { |
67 |
+ # Integrated clang assembler doesn't work with x86 - Bug #698164 |
68 |
+ if tc-is-clang && [[ ${ABI} == x86 ]]; then |
69 |
+ append-cflags -fno-integrated-as |
70 |
+ fi |
71 |
+ |
72 |
+ local mycmakeargs=( |
73 |
+ -DCMAKE_C_FLAGS="${CFLAGS} -DNDEBUG" |
74 |
+ -DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG" |
75 |
+ -DCMAKE_SKIP_RPATH=ON |
76 |
+ -DBUILD_TESTS=OFF |
77 |
+ -DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland) |
78 |
+ -DBUILD_WSI_XCB_SUPPORT=$(usex X) |
79 |
+ -DBUILD_WSI_XLIB_SUPPORT=$(usex X) |
80 |
+ -DVULKAN_HEADERS_INSTALL_DIR="${ESYSROOT}/usr" |
81 |
+ ) |
82 |
+ cmake_src_configure |
83 |
+} |
84 |
+ |
85 |
+multilib_src_install() { |
86 |
+ keepdir /etc/vulkan/icd.d |
87 |
+ |
88 |
+ cmake_src_install |
89 |
+} |
90 |
+ |
91 |
+pkg_postinst() { |
92 |
+ einfo "USE=demos has been dropped as per upstream packaging" |
93 |
+ einfo "vulkaninfo is now available in the dev-util/vulkan-tools package" |
94 |
+} |