forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-libs/vulkan-loader: Version bump
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Nick Sarnie <[email protected]>
- Loading branch information
Showing
3 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DIST vulkan-loader-1.2.182.tar.gz 1469024 BLAKE2B d180154bd0878c45327b1ad06a8efcc637b73fd75ad5ca349740d7f8d6944b2974828cb055a32150c4db4eb94f1b420d94852228d91e46bd8340229fa0ad30fd SHA512 06cf308caae1fd1992b279e8130b8f40bdcc7df44294c73e221d537950c689e552afeda4ae9406645b1d773693fa27c7727ab012daecbcff2793c4995c7f0db0 | ||
DIST vulkan-loader-1.2.189.tar.gz 1508029 BLAKE2B d889c398d886e2bd6082bdd4f728078986b15610da478634475c2b17f860bf127fa5b81d409f1298d4d3705a1b9274bb982447a425a930ac5ac3fe44de6aaa08 SHA512 358bda8081bf86b0cc119c15ed791d63e4fc7273d95e550dac11dfadf3d3f9b709936207a9b0fc3b53595b9f46c41d47f573613c5d57e789b58405a5a5cd5b14 | ||
DIST vulkan-loader-1.2.198.tar.gz 1440922 BLAKE2B 5048a85155f94cd13f36fae48414ae3a0ea5f120a22f8b199fd43a2813b7168a9c5310ac6298ec2dee6488012d17d06043cf37dee38de265924e408f36498ed7 SHA512 92fc0cfa872e286abe4aa26a68a2bb90683b68425abbe001a62ac511c76850ad08102634e64ac06a88cf8ab225e60ddaf5bc80aa2c4bf68c25c0c47e5782f4fc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Copyright 1999-2021 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
MY_PN=Vulkan-Loader | ||
CMAKE_ECLASS="cmake" | ||
inherit flag-o-matic cmake-multilib toolchain-funcs | ||
|
||
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 ~ppc ~ppc64 ~riscv ~x86" | ||
S="${WORKDIR}"/${MY_PN}-sdk-${PV}.0 | ||
fi | ||
|
||
DESCRIPTION="Vulkan Installable Client Driver (ICD) Loader" | ||
HOMEPAGE="https://github.com/KhronosGroup/Vulkan-Loader" | ||
|
||
LICENSE="Apache-2.0" | ||
SLOT="0" | ||
IUSE="layers wayland X" | ||
|
||
BDEPEND=">=dev-util/cmake-3.10.2" | ||
DEPEND=" | ||
~dev-util/vulkan-headers-${PV} | ||
wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] ) | ||
X? ( | ||
x11-libs/libX11:=[${MULTILIB_USEDEP}] | ||
x11-libs/libXrandr:=[${MULTILIB_USEDEP}] | ||
) | ||
" | ||
PDEPEND="layers? ( media-libs/vulkan-layers:=[${MULTILIB_USEDEP}] )" | ||
|
||
multilib_src_configure() { | ||
# Integrated clang assembler doesn't work with x86 - Bug #698164 | ||
if tc-is-clang && [[ ${ABI} == x86 ]]; then | ||
append-cflags -fno-integrated-as | ||
fi | ||
|
||
local mycmakeargs=( | ||
-DCMAKE_C_FLAGS="${CFLAGS} -DNDEBUG" | ||
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG" | ||
-DCMAKE_SKIP_RPATH=ON | ||
-DBUILD_TESTS=OFF | ||
-DBUILD_LOADER=ON | ||
-DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland) | ||
-DBUILD_WSI_XCB_SUPPORT=$(usex X) | ||
-DBUILD_WSI_XLIB_SUPPORT=$(usex X) | ||
-DVULKAN_HEADERS_INSTALL_DIR="${ESYSROOT}/usr" | ||
) | ||
cmake_src_configure | ||
} | ||
|
||
multilib_src_install() { | ||
keepdir /etc/vulkan/icd.d | ||
|
||
cmake_src_install | ||
} | ||
|
||
pkg_postinst() { | ||
einfo "USE=demos has been dropped as per upstream packaging" | ||
einfo "vulkaninfo is now available in the dev-util/vulkan-tools package" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters