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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7A5041382C5 for ; Fri, 29 May 2020 12:34:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 743ABE08EC; Fri, 29 May 2020 12:34:46 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 50691E08EC for ; Fri, 29 May 2020 12:34:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AD7E434F05B for ; Fri, 29 May 2020 12:34:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 72A26232 for ; Fri, 29 May 2020 12:34:42 +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: <1590755599.587dd4833b5bf1d60b8405a1f49c4390997b83ad.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-2020.2.4.ebuild X-VCS-Directories: media-libs/amdvlk/ X-VCS-Committer: RarogCmex X-VCS-Committer-Name: Denis Reva X-VCS-Revision: 587dd4833b5bf1d60b8405a1f49c4390997b83ad X-VCS-Branch: dev Date: Fri, 29 May 2020 12:34:42 +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: 98c68daf-e932-4bbd-81ee-19c3f001452a X-Archives-Hash: e1f315027431f29d0ec590d2c0000f66 commit: 587dd4833b5bf1d60b8405a1f49c4390997b83ad Author: Denis Reva gmail com> AuthorDate: Fri May 29 12:33:19 2020 +0000 Commit: Denis Reva gmail com> CommitDate: Fri May 29 12:33:19 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=587dd483 media-libs/amdvlk: bumped to 2020.2.4 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Denis Reva gmail.com> media-libs/amdvlk/Manifest | 8 ++ media-libs/amdvlk/amdvlk-2020.2.4.ebuild | 125 +++++++++++++++++++++++++++++++ 2 files changed, 133 insertions(+) diff --git a/media-libs/amdvlk/Manifest b/media-libs/amdvlk/Manifest index d625de7..e1a61f2 100644 --- a/media-libs/amdvlk/Manifest +++ b/media-libs/amdvlk/Manifest @@ -1,19 +1,27 @@ DIST AMDVLK-v-2020.Q2.1.tar.gz 30353 BLAKE2B f324ee4d5e4b57d8ca71f8dded5902ebad45442fd1915de165afac127a6339cdc2c7a855a9ff150a58f7ff3bf280a5dd5b6fd8d36a88e39eab98ce1e62670739 SHA512 daa3ce7402651a5f4ea6f932485650286d5658f95cb119a3c572b9a4cad642f6b35dd3cd07fbfc6927b9bbb0a7bd9d52c2f04b60c7d08f976b64cf10ec4d91a2 DIST AMDVLK-v-2020.Q2.2.tar.gz 30279 BLAKE2B ee6f8613d85258af31c15fc6cbe7564d04fe5a8645827312bb84b803adab29a50c8074e609c11cda74786af623dd13a17c74202c47812781e2fd7149d12eb9e6 SHA512 1fdbd3b83493e0303acac4987c3770e0fec2912c13eb404895471456e3d74e7a600d63a1c191d979299d869051bdb11a643b70d2a8acaa9af24cb766093c295f DIST AMDVLK-v-2020.Q2.3.tar.gz 30324 BLAKE2B 1060a9d7d62fb066ed79d9cbf47c83999d79b3e386ebe0a5ebf55ffa2e028d8c238f61438313d60de3f1cc69138d3236ae025362c0080b6c906a2765ad0807a4 SHA512 be6e3a12ad6f2cea531ad16f918d4688c96ea10b6b118faddfe3e3be7b58daa39226a42c88be266ff24949e724c5ffd1b7cec3b40d4566bfa7b0165b575cfb47 +DIST AMDVLK-v-2020.Q2.4.tar.gz 30423 BLAKE2B ac22e46cc94e818f9072d940174f2d51acc08db004df445adfa0be609bdfd21781517d3bb5628e7c76ae75e2abecb1610c6973c3798c7c454da97a880f6c0b4f SHA512 dd57bfbeb23744b730342720054a96f486a10e17cf41472cdd9c0d4ee9a0d2bdcb8b7e16e5a5f725b55d174827d2568826db31527793304aa22760d060e4e92e +DIST CWPack-7387247eb9889ddcabbc1053b9c2052e253b088e.tar.gz 24538 BLAKE2B 76c4da32ea06df355f7e8f77a14c185b2ccab2ce2762988f04a04d65b674e089d4fc27206e744f89b4bd84c9d7226d324414a31941303290e7f574e9d64756cf SHA512 38378ef325e42a7356511c2fc06b6c896581968079e85c4b924a1768d895feecaf1eb8fd65afb59bed0f66e0547104d67c2deb9f82a86f4b9fa65b36e57cd47d DIST CWPack-b601c88aeca7a7b08becb3d32709de383c8ee428.tar.gz 24538 BLAKE2B b30ddc4cf6e307864c77308faeb5a41a8ed9e708b668dac25989cfbe528422d70ffc17b54109c52abdf5da5c426a3d143cd19b4a3577459d5cce72a85e71284d SHA512 cc544f361ced841525041d6d31678698946362338cbd49ccfda6836f2dcfa4ce495d09b7ce191699364fd5101c671a6734aa4fb3ce447b9e8f1e75f7ea13c766 DIST MetroHash-2b6fee002db6cc92345b02aeee963ebaaf4c0e2f.tar.gz 11762 BLAKE2B 4210468564233b0d49572bef5046479123e7597fa69d5a62d8e2b39b3898e89ae044ea2e58cce21f5034fd06c6178b9dbbee25d8f5ad5f3da18ac762b54400cb SHA512 565f98cb44af81c43096eabeaba269ea9cdc3ecfb06868fedf663a0d6f88f3c49251192de43cb30a5172b2ac60580f58fc2bacbd4cbefbc42283efccdfa8a87f +DIST MetroHash-712f76fee75d69b23a1ea8f6465752c3ccaaf9a2.tar.gz 11754 BLAKE2B c08cc66b169e818d31b563ce25d903e81d029e8f869d6fd6bf44f21e36374721c991000d11d30f917fa829f51561ff51f09be88571803ff2395f371fd256bc77 SHA512 7a8dd0a91b95bcbc738d9d15d19fd25e4f7eeb5aee8bfb93ff185ed29ba0bdd29ffbe6629ebd4c3d0e48ecacdbe6dd26adee630f4cbf3c02d6829c64d7f461c9 DIST llpc-3864fc733e437a6e6ae729c6858b92b39194eada.tar.gz 1889074 BLAKE2B 5a92b85e1f5cb8c6d38a5494fe0b0ed9506e08595b4bd60ce660c654f8efe4411f9239c8413ba32138fb9b81093674c0afb97b88c3a8051d4a3ea49d2daa6f84 SHA512 6def126e9c73cf19a62810b0bb8b095bd1b6e8a89d606e24f8d70bd9dca92834c72fc6795612194b46aea73ffb0ab851e6cdcbf9e0343a4dff1adebecd6d4f12 DIST llpc-61b5d58e8891dc37e473064d429f0496d5254e52.tar.gz 1897849 BLAKE2B 86cea7f1503468a1598d05d2514c47e98f6841c5b189e73b3483a185af18fc32a0ec2b3f907764e62c0f196198f19349ac6e15154a540d97908ce9be6feeff48 SHA512 06b3afe61cab46687a6344331a60d76676679b47f24d6719bdf516b06253c0336ce0effbddb2f67292ca14adefb3aa5a831b70a418a7e0f538691552f5f7b82b DIST llpc-9889f54c9a31743b48f3dafcb8ca0c106ed15da4.tar.gz 1882348 BLAKE2B 1e05d12dd3890604adc5d7dab6ed0645c977985157f86984e8dfa23fd65bdd42dc0df4b8154a6e153849ed14eed279bd08258e058449c1ee178c173d97bf7608 SHA512 c1cbe0a005a2e4b5b35baed51f1531e12456ac18c110d4c7f8fbe4e3dbc51920cdf1ec262b81d42c4c7af28523fc051ca5fb12ffd084bf483bb7bd9b4d06ce83 +DIST llpc-9b4d0a4c3e146ea898d4bb3e86fb4170f75c3daa.tar.gz 1905709 BLAKE2B 4333d25ef6e6ad24cadc38024c5639edc21b3d5e59953b8754dcf4766782eefe2fbf93d3c05294294b68c87458d073e2076931b482376f93867ffa756a39730e SHA512 e7200dac8ce8e87ee022ca94e57bded00ef8e9860d937e1b9eee4b46c123bd72c45a232aca563b3bbb556a6f0ddbb03b98d71789f88fec32766b8af01493600a DIST llvm-project-50077fcc15e5844dacd820dcdb02edb23fc00330.tar.gz 116114571 BLAKE2B 3eac7f4646100a5e3d1f57e5524c2bfaf62aa119d24d34d9145d060dcb1cef6243eacc7ffa154760741f0597b6ebe2c56ca1f636f1f2e26f79fdd476c46ab20b SHA512 efb9898687315a2105383f47c2175335097815a66377b048b82fc910fa0be937da101de5f97c22f132c95ffaa08db68aa6f7d5b4516d1e94623138e27263e4b1 DIST llvm-project-53692d985a53a336e07907c2d4b86bf2deb66908.tar.gz 118308755 BLAKE2B 23ce6c4d5fc521272d943377c421c18dcec5593588c95548514764d6ca4fc75a661811560fe92e7c7f6ca50903052179a89879aca4705c2dd25644f44c462eb3 SHA512 d014b9f380251c6df94f17d3d8313035c7d4541e86b41c384dcbc44afeb6fed45cf452e1798602510732687a033bb06d1b34fa0507e8c086aaccce54c26bf865 DIST llvm-project-a1299ba9c8e2337f00bdec73e2031144d9811ed7.tar.gz 118371040 BLAKE2B 04166ff744ff4b61b9420abe9161f417856b8ae680f1021a94f42f6ef97c4d43a91655c2fec1201d2e323e35da2faa7125a9e9710e2705919477f09206c89e62 SHA512 a4f6df3522805ce56fb852ce067e3b6b36e0a3816629981b076710e7db8a6194a3ee023c0f79ecb2070236874f3c2d67cdafc96d888e1e66684333b51a541d52 +DIST llvm-project-c57487b76215ee74b1038039f47b210a28cad65e.tar.gz 118301225 BLAKE2B 8f3b53d8eda602ad3c4b444166cddc6d90fdf95b781cb9c52e57a01b41d03c82bf3d6a944488a87a948e097bb12bd18c2f6fd46fa21402713e7a2b76744a5620 SHA512 3b4706041919bae446f0b5362f7133e04f2d9a16518dc6c3e2dd0e33b7d1f640f85cf825d4c1ec0e9c5618a384be521ac8da876978fe1ea1ad9b09d81c1a7a32 +DIST pal-13b6271de2f72f62adf098e681c5000f47db2a6c.tar.gz 7440115 BLAKE2B 326d24b2b5739697cbd84f6eb9076aff10d668f8ce4985ef03428b3b6e0cb07ff52480287928b7d43acb5a757f0ec1a75a88ab6d21b108e5223eadf32c00adec SHA512 4b170696379da94101fa5c6813c705d2f5dea3f613cda54e70e84762296090201b419570e0e6e3b8cc62d81f519e21f76c2daafcf9c523aeaed7651c2476cc27 DIST pal-8b2381a1d05cd2c9c4e7cc2eeda053e76d8c9a4a.tar.gz 7405161 BLAKE2B 530ac292eb7eff44a039ea4f0ea6a8a18318f31acede526884ea8ebd2bdcf3beac096904ce395079493b94e010e01843b3cd476b894aae0021e9dc9973fc01c4 SHA512 81fb7a59e692f50c3b3ebb26102064659625d2ee93f3c1e50e42036b3f85ab9cb6085ea64c82cb6df98dbba5f30e2c63d7932878e7371de2389987358ec1a5bd DIST pal-a83f67db9f0d2f16bbc698aeefa9c5e9476c993a.tar.gz 7415912 BLAKE2B 586513239be7d50b3c8a6111cb761dde3f67271e02a69aff0973fa7df3767438977b94ce74f015e1c607389692243a78c9c879b1a04f9016a7d23ce58fb61ea6 SHA512 00a3828a47d3dad542265b535ca3bd915339ab23d167a6ace330e6faaba716f8be7393ae680b1094c629858143937128561641d1c3ef1febac7932e3bff8a138 DIST pal-e1b2dde021a2efd34da6593994f87317a803b065.tar.gz 7408718 BLAKE2B 87bc402f34ef671c9736dcc22e4989eee9934caa98b6c5a619eea19219bc9f62decf2c39cf5272306a169a9d1182a7346c3f637f3bbc291321079f79769984de SHA512 c3aea11091ce22ee4e9b0dce0eea43ce9e9b3c2462293ebe820b83c728db229275ceaeef0d6f0cec53eeb66f50256d966c90b600f4b2fadb62c8fd2d1e6677dd +DIST spvgen-2f679769a8491f423f5cf2f06adfa2870a82935d.tar.gz 17809 BLAKE2B c32014f2464a92863f4eba15bcf378edc6b813bacb991713fe62e04fece6c9569bd3695d36e2a338fb6202fa49b7e15fc0fdec42d78cb990c5263828f938f60f SHA512 7cfb10420ca4b23a874aaa02637dc64a65061ed98faa35492be0abb0de755628662c1afedb814aaf53e9aa6f60cf26092839e9b4446cb39c098dd20adaf11933 DIST spvgen-a223c8636f8306697f6fdc86f742b99fbd8c5dbd.tar.gz 17695 BLAKE2B d1d81400cd8fd411a4828d206b54444f24486e0079c176a2ce2a6b1d359cd4f8b9e08a65b666d6d448e883ae15285a1ba4f4c8fb18e9c513a69afd6438e52d62 SHA512 25608f761f9d6ea1e1980698ade737a85a5ea552649ffb0b2928d1f1c0e4252696078ea1f37ee08c12e538148cf1a7a4c6d5edbdd636d0c2b3a03992cf180dd2 DIST spvgen-d4817ab957f79762da83b7fc1d3f2816dbdc13fd.tar.gz 17687 BLAKE2B 2e451252f037994373c48e960016cc844ecbd43a539a74cbc02ea91d063f67079f48be29c56fe70531dd07d20f72cde6903cd01c4150631bab7c04573a956e0d SHA512 7099dce061a64760f023b23eaf5100093dcdbb890100b3a4815e8a67ae85efa2f2534508aa247a1aebba10d26e4e582cf0d0ffde7d9c3193927dead5b0023690 +DIST xgl-116d28a446eba3a9f8e6f577bab34fc07e090993.tar.gz 781417 BLAKE2B c5fe7359c091f4d910bea1b9478a6666a2f461870e70d5ed6b0d640079fbc23ad0de9206a8d35a5a9de55313fb45f1f78592098b74ed13391e62a4687c03ae29 SHA512 60bdc263f68f031f66e50746b64c8774596dcd83dbdab1a0660ee618df34bee24d4b24f89821e7b3952f7bbe040741fe2ebb3665b12156ee56585b64938effc6 DIST xgl-1f6143fb951622e06fe7b9396957976fc9feddc7.tar.gz 755327 BLAKE2B 1b57a66988dd4c33f21babca9d5cb18b39204fd6c37b66c32b2078c506221f33fea47b7787a55af4042a7c8fea9fca3e64a4f60ac4e560c24e38732af5fb42a0 SHA512 aada4d716d837356fed7ff6dbadf49d148245e33616441c6648b6cd687412017f6aa8bd0db2829436709d6bf8454470d8adced20053f07b93ffe6d7ea054d35f DIST xgl-877b773000248dffa025c42d9c4074d1a07b9e47.tar.gz 777782 BLAKE2B 7d7f8bf471a3a45180a83ba80a21280f0254fe7d80b2b1325aa7fef1dcf3a8de5552a6b930e884e0c7ed5936c9268a05d74398589089e3565b4375ac3dc59aa5 SHA512 8189ccb08c6e6ae33d36a6ee691afb60f0c1ea010c15e2883d2bc8a2e68c794bd7a70e48ecf3038d128e1c5894d4fed26a777bc9c4bea3ddeddc0b4c239993fd DIST xgl-d8c926b86b1245badc67e5d55b0eaa45d4a910a0.tar.gz 775410 BLAKE2B fcce5189b11cb104e43a4b8e100f751e8d3d326327670b446f531d6a8e08340e4f26eda744cdeb2a463cb975c75ff0c06334d5224beaf580c9e05c59508d7ed5 SHA512 77aa54a2a74e81d94461c6b6fd4d6c502ca397bb0a4c6cc33714a6e2b80b2f4d6de60676fcc24836f378d1d20306681ff20d3c4a20cc9af340becc414c78ab6a diff --git a/media-libs/amdvlk/amdvlk-2020.2.4.ebuild b/media-libs/amdvlk/amdvlk-2020.2.4.ebuild new file mode 100644 index 0000000..a4243a6 --- /dev/null +++ b/media-libs/amdvlk/amdvlk-2020.2.4.ebuild @@ -0,0 +1,125 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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.2.137" +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.2.137[${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="116d28a446eba3a9f8e6f577bab34fc07e090993" +PAL_COMMIT="13b6271de2f72f62adf098e681c5000f47db2a6c" +LLPC_COMMIT="9b4d0a4c3e146ea898d4bb3e86fb4170f75c3daa" +SPVGEN_COMMIT="2f679769a8491f423f5cf2f06adfa2870a82935d" +LLVM_PROJECT_COMMIT="c57487b76215ee74b1038039f47b210a28cad65e" +METROHASH_COMMIT="712f76fee75d69b23a1ea8f6465752c3ccaaf9a2" +CWPACK_COMMIT="7387247eb9889ddcabbc1053b9c2052e253b088e" +## 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" + ##Installing rule + cat << EOF > "${T}/10-amdvlk-dri3.conf" || die +Section "Device" +Identifier "AMDgpu" +Option "DRI" "3" +EndSection +EOF + 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/" + mv "${BUILD_DIR}/icd/amdvlk64.so" "${D}/usr/lib64/" + insinto /usr/share/vulkan/icd.d + doins "${S}/AMDVLK/json/Redhat/amd_icd64.json" + else + mkdir -p "${D}/usr/lib/" + mv "${BUILD_DIR}/icd/amdvlk32.so" "${D}/usr/lib/" + insinto /usr/share/vulkan/icd.d + doins "${S}/AMDVLK/json/Redhat/amd_icd32.json" + fi +} + +multilib_src_install_all() { + insinto /usr/share/X11/xorg.conf.d/ + doins "${T}/10-amdvlk-dri3.conf" + einfo "AMDVLK requires DRI3 mode so config file is istalled in /usr/share/X11/xorg.conf.d/10-amdvlk-dri3.conf" + einfo "It's safe to double xorg configuration files if you have already had ones" +} + +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 "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\"" +}