1 |
commit: 3c713645a0c679996bd74717f99ff9f08ef129b1 |
2 |
Author: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 26 22:42:25 2018 +0000 |
4 |
Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 26 22:58:30 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c713645 |
7 |
|
8 |
media-libs/vulkan-tools: Initial version |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
media-libs/vulkan-tools/Manifest | 1 + |
13 |
.../vulkan-tools-Use-usr-for-vulkan-headers.patch | 35 ++++++++++++++++ |
14 |
media-libs/vulkan-tools/metadata.xml | 16 +++++++ |
15 |
.../vulkan-tools/vulkan-tools-0_p20180526.ebuild | 49 ++++++++++++++++++++++ |
16 |
media-libs/vulkan-tools/vulkan-tools-9999.ebuild | 49 ++++++++++++++++++++++ |
17 |
5 files changed, 150 insertions(+) |
18 |
|
19 |
diff --git a/media-libs/vulkan-tools/Manifest b/media-libs/vulkan-tools/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000000..c0732f87ba3 |
22 |
--- /dev/null |
23 |
+++ b/media-libs/vulkan-tools/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST vulkan-tools-0_p20180526.tar.gz 437094 BLAKE2B 95e738567ee041730ce94aaf02e543cbb3d1e838af2de41cd0bd56069703f5b8250ca4e45c2bd3d9c4314b388b7aa6379b4778c52c01f3de43789d3b84a8fe8d SHA512 b9319f1baaa8e9ae42579608dabaeee3c0503192e3469d82cbad2a550f9fa78b3a19b37426e0391d2ce308a44e63b6a2deff32917995edc07c5cd65f87465222 |
26 |
|
27 |
diff --git a/media-libs/vulkan-tools/files/vulkan-tools-Use-usr-for-vulkan-headers.patch b/media-libs/vulkan-tools/files/vulkan-tools-Use-usr-for-vulkan-headers.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..b9797e19ad2 |
30 |
--- /dev/null |
31 |
+++ b/media-libs/vulkan-tools/files/vulkan-tools-Use-usr-for-vulkan-headers.patch |
32 |
@@ -0,0 +1,35 @@ |
33 |
+From 9498942c820525dc531f643696b7938d3f5fa482 Mon Sep 17 00:00:00 2001 |
34 |
+From: Nick Sarnie <sarnex@g.o> |
35 |
+Date: Tue, 22 May 2018 19:55:59 -0400 |
36 |
+Subject: [PATCH] Use usr for vulkan headers |
37 |
+ |
38 |
+Signed-off-by: Nick Sarnie <sarnex@g.o> |
39 |
+--- |
40 |
+ CMakeLists.txt | 6 ++++-- |
41 |
+ 1 file changed, 4 insertions(+), 2 deletions(-) |
42 |
+ |
43 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
44 |
+index fa9a3d3b..2998edfa 100644 |
45 |
+--- a/CMakeLists.txt |
46 |
++++ b/CMakeLists.txt |
47 |
+@@ -29,13 +29,15 @@ endif() |
48 |
+ set_property(GLOBAL PROPERTY USE_FOLDERS ON) |
49 |
+ set(TOOLS_TARGET_FOLDER lvl_cmake_targets) |
50 |
+ |
51 |
++set(HEADERS_DIR "/usr") |
52 |
++ |
53 |
+ # Output warning if vulkan headers submodule contents are not present |
54 |
+-if (NOT EXISTS "${PROJECT_SOURCE_DIR}/Vulkan-Headers/include/vulkan/vulkan_core.h") |
55 |
++if (NOT EXISTS "${HEADERS_DIR}/include/vulkan/vulkan_core.h") |
56 |
+ message(FATAL_ERROR "Please run 'git submodule update --init' before running cmake") |
57 |
+ endif() |
58 |
+ |
59 |
+ # Header file for CMake settings |
60 |
+-include_directories("${PROJECT_SOURCE_DIR}/Vulkan-Headers/include") |
61 |
++include_directories("${HEADERS_DIR}/include") |
62 |
+ |
63 |
+ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") |
64 |
+ set(COMMON_COMPILE_FLAGS "-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers") |
65 |
+-- |
66 |
+2.17.0 |
67 |
+ |
68 |
|
69 |
diff --git a/media-libs/vulkan-tools/metadata.xml b/media-libs/vulkan-tools/metadata.xml |
70 |
new file mode 100644 |
71 |
index 00000000000..a670686d9eb |
72 |
--- /dev/null |
73 |
+++ b/media-libs/vulkan-tools/metadata.xml |
74 |
@@ -0,0 +1,16 @@ |
75 |
+<?xml version="1.0" encoding="UTF-8"?> |
76 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
77 |
+<pkgmetadata> |
78 |
+ <maintainer type="project"> |
79 |
+ <email>x11@g.o</email> |
80 |
+ <name>X11</name> |
81 |
+ </maintainer> |
82 |
+ <maintainer type="person"> |
83 |
+ <email>sarnex@g.o</email> |
84 |
+ <name>Nick Sarnie</name> |
85 |
+ </maintainer> |
86 |
+ <upstream> |
87 |
+ <remote-id type="github">KhronosGroup/Vulkan-Tools</remote-id> |
88 |
+ </upstream> |
89 |
+</pkgmetadata> |
90 |
+ |
91 |
|
92 |
diff --git a/media-libs/vulkan-tools/vulkan-tools-0_p20180526.ebuild b/media-libs/vulkan-tools/vulkan-tools-0_p20180526.ebuild |
93 |
new file mode 100644 |
94 |
index 00000000000..2e4086150cd |
95 |
--- /dev/null |
96 |
+++ b/media-libs/vulkan-tools/vulkan-tools-0_p20180526.ebuild |
97 |
@@ -0,0 +1,49 @@ |
98 |
+# Copyright 1999-2018 Gentoo Foundation |
99 |
+# Distributed under the terms of the GNU General Public License v2 |
100 |
+ |
101 |
+EAPI=6 |
102 |
+PYTHON_COMPAT=( python3_{4,5,6} ) |
103 |
+ |
104 |
+if [[ "${PV}" == "9999" ]]; then |
105 |
+ EGIT_REPO_URI="https://github.com/KhronosGroup/Vulkan-Tools.git" |
106 |
+ EGIT_SUBMODULES=() |
107 |
+ inherit git-r3 |
108 |
+else |
109 |
+ EGIT_COMMIT="5e1623ca6860f3e393b1dabbdd19ba216871fa61" |
110 |
+ KEYWORDS="~amd64" |
111 |
+ SRC_URI="https://github.com/KhronosGroup/Vulkan-Tools/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
112 |
+ S="${WORKDIR}/Vulkan-Tools-${EGIT_COMMIT}" |
113 |
+fi |
114 |
+ |
115 |
+inherit python-any-r1 cmake-multilib |
116 |
+ |
117 |
+DESCRIPTION="Official Vulkan Tools and Utilities for Windows, Linux, Android, and MacOS" |
118 |
+HOMEPAGE="https://github.com/KhronosGroup/Vulkan-Tools" |
119 |
+ |
120 |
+LICENSE="Apache-2.0" |
121 |
+SLOT="0" |
122 |
+IUSE="X wayland" |
123 |
+ |
124 |
+RDEPEND="" |
125 |
+DEPEND="${PYTHON_DEPS} |
126 |
+ dev-util/glslang:=[${MULTILIB_USEDEP}] |
127 |
+ dev-util/vulkan-headers |
128 |
+ wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] ) |
129 |
+ X? ( |
130 |
+ x11-libs/libX11:=[${MULTILIB_USEDEP}] |
131 |
+ x11-libs/libXrandr:=[${MULTILIB_USEDEP}] |
132 |
+ )" |
133 |
+ |
134 |
+PATCHES=( "${FILESDIR}/${PN}-Use-usr-for-vulkan-headers.patch" ) |
135 |
+ |
136 |
+multilib_src_configure() { |
137 |
+ local mycmakeargs=( |
138 |
+ -DCMAKE_SKIP_RPATH=True |
139 |
+ -DBUILD_WSI_MIR_SUPPORT=False |
140 |
+ -DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland) |
141 |
+ -DBUILD_WSI_XCB_SUPPORT=$(usex X) |
142 |
+ -DBUILD_WSI_XLIB_SUPPORT=$(usex X) |
143 |
+ -DGLSLANG_INSTALL_DIR="/usr" |
144 |
+ ) |
145 |
+ cmake-utils_src_configure |
146 |
+} |
147 |
|
148 |
diff --git a/media-libs/vulkan-tools/vulkan-tools-9999.ebuild b/media-libs/vulkan-tools/vulkan-tools-9999.ebuild |
149 |
new file mode 100644 |
150 |
index 00000000000..d009fa4f314 |
151 |
--- /dev/null |
152 |
+++ b/media-libs/vulkan-tools/vulkan-tools-9999.ebuild |
153 |
@@ -0,0 +1,49 @@ |
154 |
+# Copyright 1999-2018 Gentoo Foundation |
155 |
+# Distributed under the terms of the GNU General Public License v2 |
156 |
+ |
157 |
+EAPI=6 |
158 |
+PYTHON_COMPAT=( python3_{4,5,6} ) |
159 |
+ |
160 |
+if [[ "${PV}" == "9999" ]]; then |
161 |
+ EGIT_REPO_URI="https://github.com/KhronosGroup/Vulkan-Tools.git" |
162 |
+ EGIT_SUBMODULES=() |
163 |
+ inherit git-r3 |
164 |
+else |
165 |
+ EGIT_COMMIT="51dfb7b8a19820d6716190dd7e45cd6e861e1f1a" |
166 |
+ KEYWORDS="~amd64" |
167 |
+ SRC_URI="https://github.com/KhronosGroup/Vulkan-Tools/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
168 |
+ S="${WORKDIR}/Vulkan-Tools-${EGIT_COMMIT}" |
169 |
+fi |
170 |
+ |
171 |
+inherit python-any-r1 cmake-multilib |
172 |
+ |
173 |
+DESCRIPTION="Official Vulkan Tools and Utilities for Windows, Linux, Android, and MacOS" |
174 |
+HOMEPAGE="https://github.com/KhronosGroup/Vulkan-Tools" |
175 |
+ |
176 |
+LICENSE="Apache-2.0" |
177 |
+SLOT="0" |
178 |
+IUSE="X wayland" |
179 |
+ |
180 |
+RDEPEND="" |
181 |
+DEPEND="${PYTHON_DEPS} |
182 |
+ dev-util/glslang:=[${MULTILIB_USEDEP}] |
183 |
+ dev-util/vulkan-headers |
184 |
+ wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] ) |
185 |
+ X? ( |
186 |
+ x11-libs/libX11:=[${MULTILIB_USEDEP}] |
187 |
+ x11-libs/libXrandr:=[${MULTILIB_USEDEP}] |
188 |
+ )" |
189 |
+ |
190 |
+PATCHES=( "${FILESDIR}/${PN}-Use-usr-for-vulkan-headers.patch" ) |
191 |
+ |
192 |
+multilib_src_configure() { |
193 |
+ local mycmakeargs=( |
194 |
+ -DCMAKE_SKIP_RPATH=True |
195 |
+ -DBUILD_WSI_MIR_SUPPORT=False |
196 |
+ -DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland) |
197 |
+ -DBUILD_WSI_XCB_SUPPORT=$(usex X) |
198 |
+ -DBUILD_WSI_XLIB_SUPPORT=$(usex X) |
199 |
+ -DGLSLANG_INSTALL_DIR="/usr" |
200 |
+ ) |
201 |
+ cmake-utils_src_configure |
202 |
+} |