1 |
commit: 36ec412420a5688b3b3141aacccbabd453fa2b24 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 3 22:06:35 2017 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 3 22:50:54 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36ec4124 |
7 |
|
8 |
media-libs/vulkan-loader: Add git ebuild. |
9 |
|
10 |
media-libs/vulkan-loader/vulkan-loader-9999.ebuild | 55 ++++++++++++++++++++++ |
11 |
1 file changed, 55 insertions(+) |
12 |
|
13 |
diff --git a/media-libs/vulkan-loader/vulkan-loader-9999.ebuild b/media-libs/vulkan-loader/vulkan-loader-9999.ebuild |
14 |
new file mode 100644 |
15 |
index 00000000000..3ffa6bfad76 |
16 |
--- /dev/null |
17 |
+++ b/media-libs/vulkan-loader/vulkan-loader-9999.ebuild |
18 |
@@ -0,0 +1,55 @@ |
19 |
+# Copyright 1999-2017 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+ |
22 |
+EAPI=6 |
23 |
+PYTHON_COMPAT=( python3_{4,5} ) |
24 |
+ |
25 |
+if [[ "${PV}" == "9999" ]]; then |
26 |
+ EGIT_REPO_URI="https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers.git" |
27 |
+ inherit git-r3 |
28 |
+else |
29 |
+ KEYWORDS="~amd64" |
30 |
+ SRC_URI="https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/archive/sdk-${PV}.tar.gz -> ${P}.tar.gz" |
31 |
+ S="${WORKDIR}/Vulkan-LoaderAndValidationLayers-sdk-${PV}" |
32 |
+fi |
33 |
+ |
34 |
+inherit python-any-r1 cmake-multilib |
35 |
+ |
36 |
+DESCRIPTION="Vulkan Installable Client Driver (ICD) Loader" |
37 |
+HOMEPAGE="https://www.khronos.org/vulkan/" |
38 |
+ |
39 |
+LICENSE="Apache-2.0" |
40 |
+SLOT="0" |
41 |
+IUSE="" |
42 |
+ |
43 |
+DEPEND="${PYTHON_DEPS}" |
44 |
+RDEPEND="" |
45 |
+ |
46 |
+DOCS=( README.md LICENSE.txt ) |
47 |
+ |
48 |
+multilib_src_configure() { |
49 |
+ local mycmakeargs=( |
50 |
+ -DCMAKE_SKIP_RPATH=True |
51 |
+ -DBUILD_TESTS=False |
52 |
+ -DBUILD_LAYERS=False |
53 |
+ -DBUILD_DEMOS=False |
54 |
+ -DBUILD_VKJSON=False |
55 |
+ -DBUILD_LOADER=True |
56 |
+ -DBUILD_WSI_MIR_SUPPORT=False |
57 |
+ ) |
58 |
+ cmake-utils_src_configure |
59 |
+} |
60 |
+ |
61 |
+multilib_src_install() { |
62 |
+ keepdir /etc/vulkan/icd.d |
63 |
+ |
64 |
+ cd "${BUILD_DIR}/loader" || die |
65 |
+ dolib libvulkan.so.1.* |
66 |
+ dosym libvulkan.so.1.* /usr/$(get_libdir)/libvulkan.so.1 |
67 |
+ dosym libvulkan.so.1.* /usr/$(get_libdir)/libvulkan.so |
68 |
+ |
69 |
+ cd "${S}" || die |
70 |
+ insinto /usr/include/vulkan |
71 |
+ doins include/vulkan/*.h |
72 |
+ einstalldocs |
73 |
+} |