diff options
author | Matt Turner <mattst88@gentoo.org> | 2016-11-02 14:04:11 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2016-11-14 17:25:09 -0800 |
commit | 57af98d0165435bae03b4a067502c608107ba022 (patch) | |
tree | fedba8e7d2c17c82917457a4e2a2f1541b541e5c /media-libs/vulkan-loader | |
parent | media-libs/mesa: Add Vulkan support. (diff) | |
download | gentoo-57af98d0165435bae03b4a067502c608107ba022.tar.gz gentoo-57af98d0165435bae03b4a067502c608107ba022.tar.bz2 gentoo-57af98d0165435bae03b4a067502c608107ba022.zip |
media-libs/vulkan-loader: New package.
Diffstat (limited to 'media-libs/vulkan-loader')
-rw-r--r-- | media-libs/vulkan-loader/Manifest | 1 | ||||
-rw-r--r-- | media-libs/vulkan-loader/metadata.xml | 11 | ||||
-rw-r--r-- | media-libs/vulkan-loader/vulkan-loader-1.0.30.0.ebuild | 55 |
3 files changed, 67 insertions, 0 deletions
diff --git a/media-libs/vulkan-loader/Manifest b/media-libs/vulkan-loader/Manifest new file mode 100644 index 000000000000..af2a0b8afcc7 --- /dev/null +++ b/media-libs/vulkan-loader/Manifest @@ -0,0 +1 @@ +DIST vulkan-loader-1.0.30.0.tar.gz 2525490 SHA256 c72586930967dd815bbd6d1cf8a20378e360c06814c78c8c8e6896d97c9541dc SHA512 0dd35aa1203b5420c7edd5bc56d8fca13472674dfe126702e09c2776f2bf68c18b762e551d9d5fd2def1200c7c757c9e590dd8e08adbcb064401d327b9a42960 WHIRLPOOL 634595ca53faac69f3eb5cb25cec4e044577fb3ac69b131e8cfd411c576e15ded0a4e1f4a683c23a12fd4e1ab7c73d490ffa0cefa6653eedb8e5a993fc74d9f1 diff --git a/media-libs/vulkan-loader/metadata.xml b/media-libs/vulkan-loader/metadata.xml new file mode 100644 index 000000000000..1c806f32b436 --- /dev/null +++ b/media-libs/vulkan-loader/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>x11@gentoo.org</email> + <name>X11</name> + </maintainer> + <upstream> + <remote-id type="github">KhronosGroup/Vulkan-LoaderAndValidationLayers</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-libs/vulkan-loader/vulkan-loader-1.0.30.0.ebuild b/media-libs/vulkan-loader/vulkan-loader-1.0.30.0.ebuild new file mode 100644 index 000000000000..c8b0993e39bc --- /dev/null +++ b/media-libs/vulkan-loader/vulkan-loader-1.0.30.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +PYTHON_COMPAT=( python3_{4,5} ) + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers.git" + inherit git-r3 +else + KEYWORDS="~amd64" + SRC_URI="https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/archive/sdk-${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/Vulkan-LoaderAndValidationLayers-sdk-${PV}" +fi + +inherit python-any-r1 cmake-multilib + +DESCRIPTION="Vulkan Installable Client Driver (ICD) Loader" +HOMEPAGE="https://www.khronos.org/vulkan/" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="" + +DOCS=( README.md LICENSE.txt ) + +multilib_src_configure() { + local mycmakeargs=( + -DCMAKE_SKIP_RPATH=True + -DBUILD_TESTS=False + -DBUILD_LAYERS=True + -DBUILD_DEMOS=False + -DBUILD_VKJSON=False + -DBUILD_LOADER=True + ) + cmake-utils_src_configure +} + +multilib_src_install() { + keepdir /etc/vulkan/icd.d + + cd "${BUILD_DIR}/loader" + dolib libvulkan.so.1.* + dosym libvulkan.so.1.* /usr/$(get_libdir)/libvulkan.so.1 + dosym libvulkan.so.1.* /usr/$(get_libdir)/libvulkan.so + + cd "${S}" + insinto /usr/include/vulkan + doins include/vulkan/*.h + einstalldocs +} |