From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 09A5C158020 for ; Wed, 12 Oct 2022 08:46:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 330A5E09AD; Wed, 12 Oct 2022 08:46:09 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0C37BE09AD for ; Wed, 12 Oct 2022 08:46:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 06E7733BEBE for ; Wed, 12 Oct 2022 08:46:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 993335B5 for ; Wed, 12 Oct 2022 08:46:06 +0000 (UTC) From: "Denis Reva" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Denis Reva" Message-ID: <1665564355.9ebf02cb8db16a568fd684976ac004db6c422357.RarogCmex@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-libs/amdvlk/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-libs/amdvlk/Manifest media-libs/amdvlk/amdvlk-2022.3.1.ebuild media-libs/amdvlk/amdvlk-2022.3.4.ebuild X-VCS-Directories: media-libs/amdvlk/ X-VCS-Committer: RarogCmex X-VCS-Committer-Name: Denis Reva X-VCS-Revision: 9ebf02cb8db16a568fd684976ac004db6c422357 X-VCS-Branch: dev Date: Wed, 12 Oct 2022 08:46:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d9155585-e5d3-45cb-ac24-b26eac63e5fe X-Archives-Hash: c009fb084970a28c94c8ffbed629b29d commit: 9ebf02cb8db16a568fd684976ac004db6c422357 Author: Denis Reva gmail com> AuthorDate: Wed Oct 12 08:45:55 2022 +0000 Commit: Denis Reva gmail com> CommitDate: Wed Oct 12 08:45:55 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9ebf02cb media-libs/amdvlk: Removing obsolete versions of amdvlk Signed-off-by: Denis Reva gmail.com> media-libs/amdvlk/Manifest | 13 ---- media-libs/amdvlk/amdvlk-2022.3.1.ebuild | 121 ------------------------------- media-libs/amdvlk/amdvlk-2022.3.4.ebuild | 110 ---------------------------- 3 files changed, 244 deletions(-) diff --git a/media-libs/amdvlk/Manifest b/media-libs/amdvlk/Manifest index bd3709874..11df523cf 100644 --- a/media-libs/amdvlk/Manifest +++ b/media-libs/amdvlk/Manifest @@ -1,20 +1,7 @@ -DIST AMDVLK-v-2022.Q3.1.tar.gz 30017 BLAKE2B 4abbdb709d6d61331185f7cef3e78228a9a7ad633ddf96e4ca18870fb9f7b04c1dd393864d6f85e349c56d20bffded81d95556f6625d7a8be7dc2ef6ed78de10 SHA512 e8a1662e14861fbb90ca4bad3dcff15932ce0e43b27e2fc0bfefd5f7eff359e1c46acedb6e168583646237e030da6948ef8640fe6b4ff1693f9a7ba16f1081a4 -DIST CWPack-4f8cf0584442a91d829d269158567d7ed926f026.tar.gz 39633 BLAKE2B d5b2a88f0d563eef5beb42a8304cf6cdd825e75242c22acc360c5bb9cbd1d02a4f891b6b2f3a4803e1e6b48a4d176aad40f8bdeca92847f2fbf53674dedeaff3 SHA512 06d56baaba1f1224a5266f4a63c1abf70edba7cc16cc4e62f2f5b1ec94fc2c1cfc4c6f11a9c6ef42c23b29be8d07921caad5e919357c0bd82cf714783eee0bcc -DIST MetroHash-18893fb28601bb9af1154cd1a671a121fff6d8d3.tar.gz 11729 BLAKE2B b0e3de885e50c317141d62c885b421c7fd2e1ac783733704342bbed3109bff36a9209ab276f534a2231531483539221bbb1014bd39528a91124161bafc5646eb SHA512 8f12f95e80d594c8bd87a852c67a2d6777ce89d1a13e1a87ee17bbb876a0702c14ffe7a7fd65a244620f2043ad5d22ae8eb863d69f1dc5494d985733bbfb7bf9 DIST amdvlk-CWPack-4f8cf0584442a91d829d269158567d7ed926f026.tar.gz 39633 BLAKE2B d5b2a88f0d563eef5beb42a8304cf6cdd825e75242c22acc360c5bb9cbd1d02a4f891b6b2f3a4803e1e6b48a4d176aad40f8bdeca92847f2fbf53674dedeaff3 SHA512 06d56baaba1f1224a5266f4a63c1abf70edba7cc16cc4e62f2f5b1ec94fc2c1cfc4c6f11a9c6ef42c23b29be8d07921caad5e919357c0bd82cf714783eee0bcc DIST amdvlk-MetroHash-18893fb28601bb9af1154cd1a671a121fff6d8d3.tar.gz 11729 BLAKE2B b0e3de885e50c317141d62c885b421c7fd2e1ac783733704342bbed3109bff36a9209ab276f534a2231531483539221bbb1014bd39528a91124161bafc5646eb SHA512 8f12f95e80d594c8bd87a852c67a2d6777ce89d1a13e1a87ee17bbb876a0702c14ffe7a7fd65a244620f2043ad5d22ae8eb863d69f1dc5494d985733bbfb7bf9 DIST amdvlk-gpurt-b89f22aadd0a335be632055434a7f8ba152fcb37.tar.gz 278191 BLAKE2B 9774616f6875601136108f2e9d6336f18c5d58a98cd9dc01839df210cc5d484bcd0b6a754cec8660216ab92275aa88fa20bcc4d5b36fa727e258abd7d2e23a7f SHA512 9fa3ac42ec8ac416a1fe92ece3573f4a3ba874f6c3e8fce42754b89aace825f4ee680789ddd7e5ab3cac83b5eb04934d2e659a7543925b5ecdb7d8dbb91c4b92 -DIST amdvlk-gpurt-c1df7354336aba18d54c0e32a95b58eac0d44c07.tar.gz 273130 BLAKE2B ae88ac12ab34f6f9934bb5f151812a5f4a8c055e0f3665754608344fba85c4fc2fd743eb9d770f741ebb4392b364ca8bcd57d43a35ab0710bca52c92c437f46b SHA512 078cc01979c4b8944f6a4196317ab6de7d8aea24df6b7882d258e72fbf85559a2260042eb65e82143e3af41ee154adb5fe54e767b074d46d302d82fa88fa07e4 -DIST amdvlk-llpc-58214602f9bc8583795d60c21bf2f122df02d6b5.tar.gz 2444994 BLAKE2B 941ec7e7e4538dfe84ff14382389b20757276105f6d3d1744b55beb6ab5af809a525b77be14087f28797ca5ba623e65d18fe3d6db738c1276ea7559cae6ee9cc SHA512 f27a5cc61121d61cfc58b4e0c28435d678c9dc1e0b9839462ee746ef4089d49aa599ad852b2f5df01746db38589e306fb029e098f4dd60cf74e021362c4243a2 DIST amdvlk-llpc-7857f2e209fc65374f2891be52e3a4a22fbae483.tar.gz 2467228 BLAKE2B 9715d5721770725371c1faa2d33f0217e998b5fc77aeb6a665d0a200db54d337fdfb3d9561abf54cf035009fb1dfd41b3e2e0ecf78eaceb5890877303d67a3ab SHA512 8a5a18ad64ee97d36aa7ae87c31112985c49c6755ae850fea141710cf54ff1610828eb5d35ea8f2a0148be9090f0c04099c94948e0c2489f68b0b58966847d03 DIST amdvlk-llvm-project-5c82ef808fd269c95f5bd166d1846149e3afadc2.tar.gz 167121209 BLAKE2B 7a3da40252e68a58588a5b8e640f324f89ab750f98e4d5d58ba164ba4fa9a19561100b1e84cc75d93347101837e50a70c8d33bc3bca211990134fefd11e31a12 SHA512 d2b68885737ab77e976b6cddce733ad1ca5295e390b6900765b54d82b6d5d9fe9099d5c16dbb2e8c8e1c266c9e22e1c6298be2b41e7d48ecfc5521f3d960a692 -DIST amdvlk-llvm-project-f5023e507645c8178128891b96bf463f9a1a81a0.tar.gz 165884582 BLAKE2B d59d58ef37526690bf691f84915ab8353277c14241d097af82fddb225a37fd664c67711d572d02ab17eb9222e53d000f1e7e73a53db9afeefe65f42a705e3764 SHA512 57a48854b118a8204b06c7bd48417856708353eee36a6bdf0b7b98111a7fd5f6e6650f7a4e81d1646c6c12ba0e26bbb1fbcd2b477e17f16db35054400392b446 -DIST amdvlk-pal-9078fd5c95e2afd5331b414c07464efd37e4e0fb.tar.gz 11671512 BLAKE2B 2b796a10869cdb22b31944912866b01dfde49cf97446ab9711f98a6028caf54f7a16c88a173c57c57c5538e29d21a572852cc663b59633abc8f9aaab0e707791 SHA512 aefda31b77afdda11e8e0f8597fb159b5701a7f56f25a5b865185e81238fa45a7426af49ebfad57c0b3ec299cda417bd2a570d04e8c6f8e0d493d7c71a46bbea DIST amdvlk-pal-ae55b19b7553bf204b4945de9c11c5b05bc0e167.tar.gz 11241268 BLAKE2B f2fc5db1070493e3d79342143ec5005880d6a71669b8d741bde5d1c0f40b54b60f9e2f68a8092d6a398606ec97a95d0c7ab79ecbfe6568fee335e5a99b6631f1 SHA512 249ceb603a2f18391419053f11606a14483a2bbb097ce6b270b50a723a209db8125f08c719d61891f75cf9edbbaac20217bdcf4f820e35e933ea84594094d6e9 DIST amdvlk-xgl-4118707939c2f4783d28ce2a383184a3794ca477.tar.gz 1188889 BLAKE2B 7e51c1fb954c2eca42544f6a890e996cbfb196cc3ad216d43a56feacbe16242240b1e2eefc8ebc13cb1c43d5541151e15369541a59abcef83c15daf15dedc14a SHA512 8735d6e0d008a066d2ac1ac9c7bdb31e162380a08c06e8f57c6d3e0c4a768b7a11484a5542c4b60c0ce91e560ea6d38c784ae8a6af25a72adcbefd7d95c88152 -DIST amdvlk-xgl-6a26878147ab246a8885ab5b4b8897626870c1cd.tar.gz 1177671 BLAKE2B 30b857230adf2174d6c51367ffb407bd347e3d8299d56e902dddc3129514376b564f48f06f4659ed558f5631d3f4c83d00d3e423f9d7aacd88578511b9c634a8 SHA512 06600624542ca549892fde15286102d8cdcbe0cb9bdba5b83da2ab19c05774b62990d73fae6a29ce623a7ce54d2bf4ab248743cbd3f41ee899bde941b71c5d79 -DIST llpc-d4763a9dcab538955bc5ad4b5c6e0139d8fe8949.tar.gz 2344266 BLAKE2B 30243cef585f77a9a7edaa162696926c5f4ee0c9612e0339b2e28d06968f57760f3ab31ddfd028bab8d0f4c78e3e46cc23a1139b244f21860af067c3a363e2af SHA512 51e17e92ab6ed9ba10d974326f9c25cd9bb994a305c781851c48cca48a868eb5977f5b733f5bd57ee22863a93a695fab2a527badf9eb46b7e16c284bdfa98b3d -DIST llvm-project-48f1931b2b7afd7e0800fa084b7c0c2176dabfd4.tar.gz 165520733 BLAKE2B a1cdcbf9fef341e50b640fd27f0c3c86b926df4fd165615a6c35462bb61cf42d5c559fde0d92569cf697e7346de9f080db479e85c27ead331a8cd2fe5d61b99f SHA512 92d68c73ef7bdec96fc1eff351019b95791240d3c7d1862888fa7f584106453dccdfe243d053e09128717cd1b0257956b4cdedb1fc53525f7bdbb88091e26ea9 -DIST pal-8a99ffaa533ee561af7075d413f6052ea37a1a04.tar.gz 9107352 BLAKE2B eef5aa21f9fa2b121362848f0ca21e7c0ac8455a75502d9b8e6eb0d608ea1a39c843f5a0af9e3726264f8abe98b03027de7d87a82fe5550ccad7366c3fbf8aa7 SHA512 edb9fba33ca8a75d9f9cc5e89ed36c9f4a7914dc8e04564e7bad12113faa2bbd773fc94a2f9d34dc52ff22f5595f0b30c59408f869a654aa819bee97720c71d8 -DIST spvgen-3b61d0ce836d3832e19931be198f6f619206de4c.tar.gz 19986 BLAKE2B 3719d480dcc7a9751fd6ed7d0cf50a206eafac5ce53159758f7363ce13571daa2d95b4c61c2ba04b5d2520824f392f735abe9237b19bfd0d3ab204a01af9e149 SHA512 b3d5c71a0d801f21864fdd8b558adfc6ef048c0fc7368586d956112e6ed11779e09a583c4c8cb4593e3242043ee15230b122711e8abe837a9032dc88d1f6e353 -DIST xgl-394cbffcf388482354c7874a841a30d386d9abc8.tar.gz 1082157 BLAKE2B 956cf15de7a9027d954afa4ce43e7e68ec1cfae0bb0ed50250ea7bb73cf5ce2670591bc8963256b481ee08094177057caaaa4fba5350b3b211bc1081822c0e91 SHA512 88d867aa3a958206c3c1416ecde64dd1193f6b232d79e5f4658e9da13c8e2b5ef838ba5c56c79cfad4bfa43caee4abe5bd92b64448958e23ae7e856e54716089 diff --git a/media-libs/amdvlk/amdvlk-2022.3.1.ebuild b/media-libs/amdvlk/amdvlk-2022.3.1.ebuild deleted file mode 100644 index 5af901592..000000000 --- a/media-libs/amdvlk/amdvlk-2022.3.1.ebuild +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -MULTILIB_COMPAT=( abi_x86_{32,64} ) - -inherit multilib-minimal check-reqs - -#inherit cmake-multilib and cmake-utils build doesn't support https://github.com/GPUOpen-Drivers/AMDVLK/issues/151 -DESCRIPTION="AMD Open Source Driver for Vulkan" -HOMEPAGE="https://github.com/GPUOpen-Drivers/AMDVLK" -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="debug wayland" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )" -###DEPENDS -BUNDLED_LLVM_DEPEND="sys-libs/zlib:0=[${MULTILIB_USEDEP}]" -DEPEND="wayland? ( dev-libs/wayland[${MULTILIB_USEDEP}] ) - ${BUNDLED_LLVM_DEPEND} - >=dev-util/vulkan-headers-1.3.210" -BDEPEND="${BUNDLED_LLVM_DEPEND} - dev-util/cmake" -RDEPEND=" ${DEPEND} - x11-libs/libdrm[${MULTILIB_USEDEP}] - x11-libs/libXrandr[${MULTILIB_USEDEP}] - x11-libs/libxcb[${MULTILIB_USEDEP}] - x11-libs/libxshmfence[${MULTILIB_USEDEP}] - >=media-libs/vulkan-loader-1.3.210[${MULTILIB_USEDEP}]" - -CHECKREQS_MEMORY="4G" -CHECKREQS_DISK_BUILD="2G" -S="${WORKDIR}" -CMAKE_USE_DIR="${S}/xgl" - -###SOURCE CODE VARIABLES -FETCH_URI="https://github.com/GPUOpen-Drivers" -CORRECT_AMDVLK_PV="v-$(ver_rs 1 '.Q')" #Works only for amdvlk source code: transforming version 2019.2.2 to v-2019.Q2.2. Any other commits should be updated manually -##For those who wants update ebuild: check https://github.com/GPUOpen-Drivers/AMDVLK/blob/master/default.xml -##and place commits in the desired variables -## EXAMPLE: XGL_COMMIT="80e5a4b11ad2058097e77746772ddc9ab2118e07" -## SRC_URI="... ${FETCH_URI}/$PART/archive/$COMMIT.zip -> $PART-$COMMIT.zip ..." -XGL_COMMIT="394cbffcf388482354c7874a841a30d386d9abc8" -PAL_COMMIT="8a99ffaa533ee561af7075d413f6052ea37a1a04" -LLPC_COMMIT="d4763a9dcab538955bc5ad4b5c6e0139d8fe8949" -SPVGEN_COMMIT="3b61d0ce836d3832e19931be198f6f619206de4c" -LLVM_PROJECT_COMMIT="48f1931b2b7afd7e0800fa084b7c0c2176dabfd4" -METROHASH_COMMIT="18893fb28601bb9af1154cd1a671a121fff6d8d3" -CWPACK_COMMIT="4f8cf0584442a91d829d269158567d7ed926f026" -## SRC_URI -SRC_URI=" ${FETCH_URI}/AMDVLK/archive/${CORRECT_AMDVLK_PV}.tar.gz -> AMDVLK-${CORRECT_AMDVLK_PV}.tar.gz -${FETCH_URI}/xgl/archive/${XGL_COMMIT}.tar.gz -> xgl-${XGL_COMMIT}.tar.gz -${FETCH_URI}/pal/archive/${PAL_COMMIT}.tar.gz -> pal-${PAL_COMMIT}.tar.gz -${FETCH_URI}/llpc/archive/${LLPC_COMMIT}.tar.gz -> llpc-${LLPC_COMMIT}.tar.gz -${FETCH_URI}/spvgen/archive/${SPVGEN_COMMIT}.tar.gz -> spvgen-${SPVGEN_COMMIT}.tar.gz -${FETCH_URI}/llvm-project/archive/${LLVM_PROJECT_COMMIT}.tar.gz -> llvm-project-${LLVM_PROJECT_COMMIT}.tar.gz -${FETCH_URI}/MetroHash/archive/${METROHASH_COMMIT}.tar.gz -> MetroHash-${METROHASH_COMMIT}.tar.gz -${FETCH_URI}/CWPack/archive/${CWPACK_COMMIT}.tar.gz -> CWPack-${CWPACK_COMMIT}.tar.gz" - -###EBUILD FUNCTIONS -src_prepare() { - ##moving src to proper directories - mkdir -p "${S}" - mkdir -p "${S}/third_party" - mv AMDVLK-${CORRECT_AMDVLK_PV}/ "${S}/AMDVLK" - mv xgl-${XGL_COMMIT}/ "${S}/xgl" - mv pal-${PAL_COMMIT}/ "${S}/pal" - mv llpc-${LLPC_COMMIT}/ "${S}/llpc" - mv spvgen-${SPVGEN_COMMIT}/ "${S}/spvgen" - mv llvm-project-${LLVM_PROJECT_COMMIT}/ "${S}/llvm-project" - mv MetroHash-${METROHASH_COMMIT}/ "${S}/third_party/metrohash" - mv CWPack-${CWPACK_COMMIT}/ "${S}/third_party/cwpack" - cd "${S}/xgl" - default -} - -multilib_src_configure() { - local mycmakeargs=( - -DBUILD_WAYLAND_SUPPORT=$(usex wayland ) - -DCMAKE_BUILD_TYPE="$(usex debug "Debug" "Release")" - -B"${BUILD_DIR}" ) - cd "${S}"/xgl - cmake -H. "${mycmakeargs[@]}" -} - -multilib_src_install() { - if use abi_x86_64 && multilib_is_native_abi; then - mkdir -p "${D}/usr/lib64/" - cp "${BUILD_DIR}/icd/amdvlk64.so" "${D}/usr/lib64/" - insinto /usr/share/vulkan/icd.d - doins "${S}/build-abi_x86_64.amd64/icd/amd_icd64.json" - insinto /usr/share/vulkan/implicit_layer.d - doins "${S}/build-abi_x86_64.amd64/icd/amd_icd64.json" - else - mkdir -p "${D}/usr/lib/" - cp "${BUILD_DIR}/icd/amdvlk32.so" "${D}/usr/lib/" - insinto /usr/share/vulkan/icd.d - doins "${S}/build-abi_x86_32.x86/icd/amd_icd32.json" - insinto /usr/share/vulkan/implicit_layer.d - doins "${S}/build-abi_x86_32.x86/icd/amd_icd32.json" - fi -} - -pkg_postinst() { - elog "More information about the configuration can be found here:" - elog " https://github.com/GPUOpen-Drivers/AMDVLK" - ewarn "Make sure the following line is NOT included in the any Xorg configuration section:" - ewarn "| Driver \"modesetting\"" - ewarn "and make sure you use DRI3 mode for Xorg (not revelant for wayland)" - ewarn "Else AMDVLK breaks things" - ewarn "With some games AMDVLK is still not stable. Use it at you own risk" - elog "You may want to disable default vulkan mesa provider in package.use \"media-libs/mesa -vulkan\"" - elog "or perform export in /etc/env.d/ variable VK_ICD_FILENAMES=vulkanprovidername:vulkanprovidername2 " - elog "exampe| VK_ICD_FILENAMES=\"/usr/share/vulkan/icd.d/amd_icd64.json:/usr/share/vulkan/icd.d/amd_icd64.json\"" - elog "For DXVK: use DXVK_FILTER_DEVICE_NAME= variable" - elog "" - elog "You can also use AMD_VULKAN_ICD to switch to the required driver." - elog "AMD_VULKAN_ICD=RADV application - for using radv." - elog "AMD_VULKAN_ICD=AMDVLK application - for using amdvlk." -} diff --git a/media-libs/amdvlk/amdvlk-2022.3.4.ebuild b/media-libs/amdvlk/amdvlk-2022.3.4.ebuild deleted file mode 100644 index 05624b9ba..000000000 --- a/media-libs/amdvlk/amdvlk-2022.3.4.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -MULTILIB_COMPAT=( abi_x86_{32,64} ) -PYTHON_COMPAT=( python3_{8..11} ) - -inherit check-reqs python-any-r1 cmake-multilib - -DESCRIPTION="AMD Open Source Driver for Vulkan" -HOMEPAGE="https://github.com/GPUOpen-Drivers/AMDVLK" -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="wayland" -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )" - -BUNDLED_LLVM_DEPEND="sys-libs/zlib:0=[${MULTILIB_USEDEP}]" -DEPEND="wayland? ( dev-libs/wayland[${MULTILIB_USEDEP}] ) - ${BUNDLED_LLVM_DEPEND} - >=dev-util/vulkan-headers-1.3.224" -BDEPEND="${BUNDLED_LLVM_DEPEND} - ${PYTHON_DEPS} - dev-util/cmake - virtual/linux-sources" -RDEPEND=" ${DEPEND} - x11-libs/libdrm[${MULTILIB_USEDEP}] - x11-libs/libXrandr[${MULTILIB_USEDEP}] - x11-libs/libxcb[${MULTILIB_USEDEP}] - x11-libs/libxshmfence[${MULTILIB_USEDEP}] - >=media-libs/vulkan-loader-1.3.224[${MULTILIB_USEDEP}] - dev-util/glslang[${MULTILIB_USEDEP}] - dev-util/DirectXShaderCompiler" - -CHECKREQS_MEMORY="16G" -CHECKREQS_DISK_BUILD="4G" -S="${WORKDIR}" -CMAKE_USE_DIR="${S}/xgl" - -###SOURCE CODE PER_VERSION VARIABLES -FETCH_URI="https://github.com/GPUOpen-Drivers" -##For those who wants update ebuild: check https://github.com/GPUOpen-Drivers/AMDVLK/blob/${VERSION}/default.xml , e.g. https://github.com/GPUOpen-Drivers/AMDVLK/blob/v-2022.Q3.5/default.xml -##and place commits in the desired variables -## EXAMPLE: XGL_COMMIT="80e5a4b11ad2058097e77746772ddc9ab2118e07" -## SRC_URI="... ${FETCH_URI}/$PART/archive/$COMMIT.zip -> $PART-$COMMIT.zip ..." -XGL_COMMIT="6a26878147ab246a8885ab5b4b8897626870c1cd" -PAL_COMMIT="9078fd5c95e2afd5331b414c07464efd37e4e0fb" -LLPC_COMMIT="58214602f9bc8583795d60c21bf2f122df02d6b5" -GPURT_COMMIT="c1df7354336aba18d54c0e32a95b58eac0d44c07" -LLVM_PROJECT_COMMIT="f5023e507645c8178128891b96bf463f9a1a81a0" -METROHASH_COMMIT="18893fb28601bb9af1154cd1a671a121fff6d8d3" -CWPACK_COMMIT="4f8cf0584442a91d829d269158567d7ed926f026" -# end of variables -SRC_URI="${FETCH_URI}/xgl/archive/${XGL_COMMIT}.tar.gz -> amdvlk-xgl-${XGL_COMMIT}.tar.gz -${FETCH_URI}/pal/archive/${PAL_COMMIT}.tar.gz -> amdvlk-pal-${PAL_COMMIT}.tar.gz -${FETCH_URI}/llpc/archive/${LLPC_COMMIT}.tar.gz -> amdvlk-llpc-${LLPC_COMMIT}.tar.gz -${FETCH_URI}/gpurt/archive/${GPURT_COMMIT}.tar.gz -> amdvlk-gpurt-${GPURT_COMMIT}.tar.gz -${FETCH_URI}/llvm-project/archive/${LLVM_PROJECT_COMMIT}.tar.gz -> amdvlk-llvm-project-${LLVM_PROJECT_COMMIT}.tar.gz -${FETCH_URI}/MetroHash/archive/${METROHASH_COMMIT}.tar.gz -> amdvlk-MetroHash-${METROHASH_COMMIT}.tar.gz -${FETCH_URI}/CWPack/archive/${CWPACK_COMMIT}.tar.gz -> amdvlk-CWPack-${CWPACK_COMMIT}.tar.gz" - -src_prepare() { - einfo "moving src to proper directories" - mkdir -p "${S}" - mkdir -p "${S}/third_party" - mv xgl-${XGL_COMMIT}/ "${S}/xgl" - mv pal-${PAL_COMMIT}/ "${S}/pal" - mv llpc-${LLPC_COMMIT}/ "${S}/llpc" - mv gpurt-${GPURT_COMMIT}/ "${S}/gpurt" - mv llvm-project-${LLVM_PROJECT_COMMIT}/ "${S}/llvm-project" - mv MetroHash-${METROHASH_COMMIT}/ "${S}/third_party/metrohash" - mv CWPack-${CWPACK_COMMIT}/ "${S}/third_party/cwpack" - cmake_src_prepare -} - -multilib_src_configure() { - local mycmakeargs=( - -DBUILD_WAYLAND_SUPPORT=$(usex wayland) - -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/amdvlk" - -DLLVM_VERSION_SUFFIX="-$(get_libdir)-amdvlk" - -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON - -Wno-dev - ) - cmake_src_configure -} -multilib_src_install(){ - cmake_src_install - rm -r "${D}"/var/ || die "can't remove incorrect temporary files of amdvlk" - einfo "Correcting permissions of amdvlk $(get_libdir) libraries" - fperms -R 775 /usr/lib/llvm/amdvlk/$(get_libdir) -} - -multilib_src_install_all() { - cat > "99${PN}" <<-EOF - LDPATH="${EPREFIX}/usr/lib/llvm/amdvlk/lib:${EPREFIX}/usr/lib/llvm/amdvlk/lib64" - EOF - doenvd "99${PN}" -} - -pkg_postinst() { - ewarn "Make sure the following line is NOT included in the any Xorg configuration section:" - ewarn "| Driver \"modesetting\"" - ewarn "and make sure you use DRI3 mode for Xorg (not revelant for wayland)" - elog "More information about the configuration can be found here:" - elog "https://github.com/GPUOpen-Drivers/AMDVLK" - elog "You can use AMD_VULKAN_ICD variable to switch to the required driver." - elog "AMD_VULKAN_ICD=RADV application - for using radv." - elog "AMD_VULKAN_ICD=AMDVLK application - for using amdvlk." -}