diff options
Diffstat (limited to 'media-libs/amdgpu-pro-vulkan')
6 files changed, 249 insertions, 0 deletions
diff --git a/media-libs/amdgpu-pro-vulkan/Manifest b/media-libs/amdgpu-pro-vulkan/Manifest new file mode 100644 index 000000000000..be73bf6d68a4 --- /dev/null +++ b/media-libs/amdgpu-pro-vulkan/Manifest @@ -0,0 +1,9 @@ +AUX icd_amd64.patch 330 BLAKE2B 6911c451ee96d68e91f5ca8a8536b758f8ecf81bcc1b19681a3eb960c1c0e06808560bd339b9d44395b58eb0794355670dddaa55eaddcc55b301f2c0c3090ea5 SHA512 3d1e4401be88302d4d5058082eada58f5ac8bbd9fc875c494d30407d1e2ab28319968f7fca96b7afb6d82ecf19c9a6a408bd06f9fa1d755d1e1fe7b906a76257 +AUX icd_x86.patch 322 BLAKE2B 823d90dadb6f4791937ebcd28cc2ce5045a1a713cc4b5b58201e9ee6b57be8568a1ff63724e1fc16c29446e85e8dd1d533248ccf41acbd1355fccbff62239285 SHA512 c39fa60fa116ee92bf613dd8cab08b464cd35b9e63cb0ccc568cc0024b93652ce556b8823edf987498d72309ba841085434481fffa4cabd5de1494851cbcd4d3 +DIST amdgpu-pro-vulkan-21.50.1.1376756-amd64.deb 8342920 BLAKE2B a99ba48ded384e39beca0f7321ee6cc77f751843c7ee5d9b45e284740ac1a0932497e3029e95e6f7f6bc1a0d3772619be01a0bc22b4b3857bf24a47f1cfa7b2d SHA512 ff9479652c6b7d359e3b1b1c8f5038f4e447fe2f5f5f186414ecae30ed99be75373bacb599045b23d530c93a78d8049d2bedf129e655c198c9e9e9f8b528d951 +DIST amdgpu-pro-vulkan-21.50.1.1376756-i386.deb 8124604 BLAKE2B 5d325d2b6fe0b22c227df41049330f394315f17aa97203c7032131d5932e75d494539eac4d5e7ea89193a2736068e3a8e5f7a60de9a1a94b8af0b7fba757da21 SHA512 11480ebec72408a5727f99055c32d979912f838256d622c77c7efec37735d2805cf5c52e78d3c86dc0420d29ad52df2d65cd788b67cef1b2df1cfaa5a30c4bc2 +DIST amdgpu-pro-vulkan-21.50.2.1384496-amd64.deb 8320356 BLAKE2B 1a5997ee983bf4729c429dae7d333fd49f8bb24a5022238299fd87e4ad8a7579c0535a8198fc3869db3b8079634b1e06e9bb90ff761239486cb4ffb7ea6ead4a SHA512 16299cb567d9573080d6e3b83124e931692392c5282a3be5f39638682b2c8d4aa9395787382e0145d61dc5a5df3f3e143d9f01b1710ad11e940f3e8ea5137c7a +DIST amdgpu-pro-vulkan-21.50.2.1384496-i386.deb 8124180 BLAKE2B 697899e40cedc584d8507c3c4c908c54db3676d47d720fb7b7fcab6e1f542e1d1e5efedb5b46231d4cd6974d3d03a19816d6ab4cc6d2f0279547058b5e4143e3 SHA512 8662efb65f14172f4261401115737f3c7eebbe071a9660f5146eaee9a1d4684c30174b18bea94d31686dbe679d66ab77f252192c1cda27ed57784cc9a57e5fdf +EBUILD amdgpu-pro-vulkan-21.50.1.1376756.ebuild 2788 BLAKE2B 7137c459e6dacd9ac3b469fa4003c8b9ed833c94d00d384cf18ecb53906045e05911093a9665e5bbcad9b64ef9bf18cab358b9285cc2b73ec3bf0e78796d4af4 SHA512 a719c0e865209fa4017497655593b9286b4e241cdfbfe5b5966709ec1b91d2089b906c64116ee20bb5954b1adb3ac934bce5b300a8e41b7fa5227f453346270c +EBUILD amdgpu-pro-vulkan-21.50.2.1384496.ebuild 2788 BLAKE2B 7137c459e6dacd9ac3b469fa4003c8b9ed833c94d00d384cf18ecb53906045e05911093a9665e5bbcad9b64ef9bf18cab358b9285cc2b73ec3bf0e78796d4af4 SHA512 a719c0e865209fa4017497655593b9286b4e241cdfbfe5b5966709ec1b91d2089b906c64116ee20bb5954b1adb3ac934bce5b300a8e41b7fa5227f453346270c +MISC metadata.xml 401 BLAKE2B c46c3e3729fe8721b57a97a504997e1dd773fceb8ba0ff302f985eca3053abba5ac5f1103d6e4437074b854a3c4c55f7fc6991def0054fb768c8db9eec27ce16 SHA512 08ef778f6f5675ec9848b8f0a8e9296d41a4f21f18a344ba5a0f915a5933280dbd21e66692aaee5ca854785b3a639707d41c0912fdbe43373b51aa173c751383 diff --git a/media-libs/amdgpu-pro-vulkan/amdgpu-pro-vulkan-21.50.1.1376756.ebuild b/media-libs/amdgpu-pro-vulkan/amdgpu-pro-vulkan-21.50.1.1376756.ebuild new file mode 100644 index 000000000000..db6883188d30 --- /dev/null +++ b/media-libs/amdgpu-pro-vulkan/amdgpu-pro-vulkan-21.50.1.1376756.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit unpacker + +MY_PV_HIGH=$(ver_cut 1) +MY_PV_MIDDLE=$(ver_cut 2) +MY_PV_LOW=$(ver_cut 3) +MY_PV_REV=$(ver_cut 4) + +MY_PV="${MY_PV_HIGH}.${MY_PV_MIDDLE}.${MY_PV_LOW}" +MY_PV_FULL="${MY_PV}-${MY_PV_REV}" + +MY_PN="vulkan-amdgpu-pro" + +MY_LINK="https://repo.radeon.com/amdgpu/${MY_PV}/ubuntu/pool/proprietary/v/${MY_PN}" + +DESCRIPTION="AMD's closed source vulkan driver, from Radeon Software for Linux" +HOMEPAGE="https://www.amd.com/en/support" +SRC_URI=" + abi_x86_64? ( ${MY_LINK}/${MY_PN}_${MY_PV_FULL}_amd64.deb -> ${P}-amd64.deb ) + abi_x86_32? ( ${MY_LINK}/${MY_PN}_${MY_PV_FULL}_i386.deb -> ${P}-i386.deb ) +" +S="${WORKDIR}" + +RESTRICT="bindist mirror" + +LICENSE="AMD-GPU-PRO-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="abi_x86_32 abi_x86_64" + +BDEPEND="dev-util/patchelf" + +QA_PREBUILT=" + usr/lib64/amdvlkpro64.so* + usr/lib/amdvlkpro32.so* +" + +src_unpack() { + if use abi_x86_64 ; then + mkdir "${S}/${PN}-amd64" || die + cd "${S}/${PN}-amd64" || die + unpack_deb "${DISTDIR}/${P}-amd64.deb" + fi + + if use abi_x86_32 ; then + mkdir "${S}/${PN}-i386" || die + cd "${S}/${PN}-i386" || die + unpack_deb "${DISTDIR}/${P}-i386.deb" + fi +} + +src_prepare() { + if use abi_x86_64 ; then + cd "${S}/${PN}-amd64/opt/amdgpu-pro/lib/x86_64-linux-gnu/" || die + mv amdvlk64.so.1.0 amdvlkpro64.so.1.0 || die + patchelf --set-soname amdvlkpro64.so.1.0 "${PWD}"/amdvlkpro64.so.1.0 || die + + cd "${S}/${PN}-amd64/opt/amdgpu-pro/etc/vulkan/icd.d/" || die + eapply "${FILESDIR}"/icd_amd64.patch + mv amd_icd64.json amd_pro_icd64.json || die + fi + + if use abi_x86_32 ; then + cd "${S}/${PN}-i386/opt/amdgpu-pro/lib/i386-linux-gnu/" || die + mv amdvlk32.so.1.0 amdvlkpro32.so.1.0 || die + patchelf --set-soname amdvlkpro32.so.1.0 "${PWD}"/amdvlkpro32.so.1.0 || die + + cd "${S}/${PN}-i386/opt/amdgpu-pro/etc/vulkan/icd.d/" || die + eapply "${FILESDIR}"/icd_x86.patch + mv amd_icd32.json amd_pro_icd32.json || die + fi + + default +} + +src_install() { + if use abi_x86_64 ; then + insinto /usr/lib64 + + # Vulkan + doins "${S}"/"${PN}"-amd64/opt/amdgpu-pro/lib/x86_64-linux-gnu/amdvlkpro64.so.1.0 + dosym amdvlkpro64.so.1.0 /usr/lib64/amdvlkpro64.so + dosym amdvlkpro64.so.1.0 /usr/lib64/amdvlkpro64.so.1 + + # ICD loader + insinto /usr/share/vulkan/icd.d + doins "${S}"/"${PN}"-amd64/opt/amdgpu-pro/etc/vulkan/icd.d/amd_pro_icd64.json + fi + + if use abi_x86_32 ; then + insinto /usr/lib + + # Vulkan + doins "${S}"/"${PN}"-i386/opt/amdgpu-pro/lib/i386-linux-gnu/amdvlkpro32.so.1.0 + dosym amdvlkpro32.so.1.0 /usr/lib/amdvlkpro32.so + dosym amdvlkpro32.so.1.0 /usr/lib/amdvlkpro32.so.1 + + # ICD loader + insinto /usr/share/vulkan/icd.d + doins "${S}"/"${PN}"-i386/opt/amdgpu-pro/etc/vulkan/icd.d/amd_pro_icd32.json + fi +} diff --git a/media-libs/amdgpu-pro-vulkan/amdgpu-pro-vulkan-21.50.2.1384496.ebuild b/media-libs/amdgpu-pro-vulkan/amdgpu-pro-vulkan-21.50.2.1384496.ebuild new file mode 100644 index 000000000000..db6883188d30 --- /dev/null +++ b/media-libs/amdgpu-pro-vulkan/amdgpu-pro-vulkan-21.50.2.1384496.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit unpacker + +MY_PV_HIGH=$(ver_cut 1) +MY_PV_MIDDLE=$(ver_cut 2) +MY_PV_LOW=$(ver_cut 3) +MY_PV_REV=$(ver_cut 4) + +MY_PV="${MY_PV_HIGH}.${MY_PV_MIDDLE}.${MY_PV_LOW}" +MY_PV_FULL="${MY_PV}-${MY_PV_REV}" + +MY_PN="vulkan-amdgpu-pro" + +MY_LINK="https://repo.radeon.com/amdgpu/${MY_PV}/ubuntu/pool/proprietary/v/${MY_PN}" + +DESCRIPTION="AMD's closed source vulkan driver, from Radeon Software for Linux" +HOMEPAGE="https://www.amd.com/en/support" +SRC_URI=" + abi_x86_64? ( ${MY_LINK}/${MY_PN}_${MY_PV_FULL}_amd64.deb -> ${P}-amd64.deb ) + abi_x86_32? ( ${MY_LINK}/${MY_PN}_${MY_PV_FULL}_i386.deb -> ${P}-i386.deb ) +" +S="${WORKDIR}" + +RESTRICT="bindist mirror" + +LICENSE="AMD-GPU-PRO-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="abi_x86_32 abi_x86_64" + +BDEPEND="dev-util/patchelf" + +QA_PREBUILT=" + usr/lib64/amdvlkpro64.so* + usr/lib/amdvlkpro32.so* +" + +src_unpack() { + if use abi_x86_64 ; then + mkdir "${S}/${PN}-amd64" || die + cd "${S}/${PN}-amd64" || die + unpack_deb "${DISTDIR}/${P}-amd64.deb" + fi + + if use abi_x86_32 ; then + mkdir "${S}/${PN}-i386" || die + cd "${S}/${PN}-i386" || die + unpack_deb "${DISTDIR}/${P}-i386.deb" + fi +} + +src_prepare() { + if use abi_x86_64 ; then + cd "${S}/${PN}-amd64/opt/amdgpu-pro/lib/x86_64-linux-gnu/" || die + mv amdvlk64.so.1.0 amdvlkpro64.so.1.0 || die + patchelf --set-soname amdvlkpro64.so.1.0 "${PWD}"/amdvlkpro64.so.1.0 || die + + cd "${S}/${PN}-amd64/opt/amdgpu-pro/etc/vulkan/icd.d/" || die + eapply "${FILESDIR}"/icd_amd64.patch + mv amd_icd64.json amd_pro_icd64.json || die + fi + + if use abi_x86_32 ; then + cd "${S}/${PN}-i386/opt/amdgpu-pro/lib/i386-linux-gnu/" || die + mv amdvlk32.so.1.0 amdvlkpro32.so.1.0 || die + patchelf --set-soname amdvlkpro32.so.1.0 "${PWD}"/amdvlkpro32.so.1.0 || die + + cd "${S}/${PN}-i386/opt/amdgpu-pro/etc/vulkan/icd.d/" || die + eapply "${FILESDIR}"/icd_x86.patch + mv amd_icd32.json amd_pro_icd32.json || die + fi + + default +} + +src_install() { + if use abi_x86_64 ; then + insinto /usr/lib64 + + # Vulkan + doins "${S}"/"${PN}"-amd64/opt/amdgpu-pro/lib/x86_64-linux-gnu/amdvlkpro64.so.1.0 + dosym amdvlkpro64.so.1.0 /usr/lib64/amdvlkpro64.so + dosym amdvlkpro64.so.1.0 /usr/lib64/amdvlkpro64.so.1 + + # ICD loader + insinto /usr/share/vulkan/icd.d + doins "${S}"/"${PN}"-amd64/opt/amdgpu-pro/etc/vulkan/icd.d/amd_pro_icd64.json + fi + + if use abi_x86_32 ; then + insinto /usr/lib + + # Vulkan + doins "${S}"/"${PN}"-i386/opt/amdgpu-pro/lib/i386-linux-gnu/amdvlkpro32.so.1.0 + dosym amdvlkpro32.so.1.0 /usr/lib/amdvlkpro32.so + dosym amdvlkpro32.so.1.0 /usr/lib/amdvlkpro32.so.1 + + # ICD loader + insinto /usr/share/vulkan/icd.d + doins "${S}"/"${PN}"-i386/opt/amdgpu-pro/etc/vulkan/icd.d/amd_pro_icd32.json + fi +} diff --git a/media-libs/amdgpu-pro-vulkan/files/icd_amd64.patch b/media-libs/amdgpu-pro-vulkan/files/icd_amd64.patch new file mode 100644 index 000000000000..ac55e40a0f2b --- /dev/null +++ b/media-libs/amdgpu-pro-vulkan/files/icd_amd64.patch @@ -0,0 +1,8 @@ +--- a/amd_icd64.json ++++ b/amd_icd64.json +@@ -4 +4 @@ +- "library_path": "/opt/amdgpu-pro/lib/x86_64-linux-gnu/amdvlk64.so", ++ "library_path": "/usr/lib64/amdvlkpro64.so", +@@ -10 +10 @@ +- "library_path": "/opt/amdgpu-pro/lib/x86_64-linux-gnu/amdvlk64.so", ++ "library_path": "/usr/lib64/amdvlkpro64.so", diff --git a/media-libs/amdgpu-pro-vulkan/files/icd_x86.patch b/media-libs/amdgpu-pro-vulkan/files/icd_x86.patch new file mode 100644 index 000000000000..5d70ac2af943 --- /dev/null +++ b/media-libs/amdgpu-pro-vulkan/files/icd_x86.patch @@ -0,0 +1,8 @@ +--- a/amd_icd32.json ++++ b/amd_icd32.json +@@ -4 +4 @@ +- "library_path": "/opt/amdgpu-pro/lib/i386-linux-gnu/amdvlk32.so", ++ "library_path": "/usr/lib/amdvlkpro32.so", +@@ -10 +10 @@ +- "library_path": "/opt/amdgpu-pro/lib/i386-linux-gnu/amdvlk32.so", ++ "library_path": "/usr/lib/amdvlkpro32.so", diff --git a/media-libs/amdgpu-pro-vulkan/metadata.xml b/media-libs/amdgpu-pro-vulkan/metadata.xml new file mode 100644 index 000000000000..03e31d9fc34c --- /dev/null +++ b/media-libs/amdgpu-pro-vulkan/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <name>Adel Kara Slimane</name> + <email>adel.ks@zegrapher.com</email> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> +</pkgmetadata> |