summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiccolò Belli <niccolo.belli@linuxsystems.it>2023-02-20 16:31:17 +0100
committerSam James <sam@gentoo.org>2023-02-22 16:14:56 +0000
commit0811f831716983206dc5bae5be61110d0bbeda4f (patch)
treee0d686c2056b38503e719c257b3783640fccc57f /dev-libs/roct-thunk-interface/roct-thunk-interface-5.4.3.ebuild
parentdev-libs/rocm-comgr: add 5.4.3 (diff)
downloadgentoo-0811f831716983206dc5bae5be61110d0bbeda4f.tar.gz
gentoo-0811f831716983206dc5bae5be61110d0bbeda4f.tar.bz2
gentoo-0811f831716983206dc5bae5be61110d0bbeda4f.zip
dev-libs/roct-thunk-interface: add 5.4.3
Signed-off-by: Niccolò Belli <niccolo.belli@linuxsystems.it> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/roct-thunk-interface/roct-thunk-interface-5.4.3.ebuild')
-rw-r--r--dev-libs/roct-thunk-interface/roct-thunk-interface-5.4.3.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-libs/roct-thunk-interface/roct-thunk-interface-5.4.3.ebuild b/dev-libs/roct-thunk-interface/roct-thunk-interface-5.4.3.ebuild
new file mode 100644
index 000000000000..3f391bf5d5e0
--- /dev/null
+++ b/dev-libs/roct-thunk-interface/roct-thunk-interface-5.4.3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake linux-info
+
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/ROCT-Thunk-Interface-rocm-${PV}"
+ KEYWORDS="~amd64"
+fi
+
+DESCRIPTION="Radeon Open Compute Thunk Interface"
+HOMEPAGE="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface"
+CONFIG_CHECK="~HSA_AMD ~HMM_MIRROR ~ZONE_DEVICE ~DRM_AMDGPU ~DRM_AMDGPU_USERPTR"
+LICENSE="MIT"
+SLOT="0/$(ver_cut 1-2)"
+
+RDEPEND="sys-process/numactl"
+DEPEND="${RDEPEND}"
+BDEPEND="x11-libs/libdrm[video_cards_amdgpu]"
+
+CMAKE_BUILD_TYPE=Release
+
+src_prepare() {
+ sed -e "s:get_version ( \"1.0.0\" ):get_version ( \"${PV}\" ):" -i CMakeLists.txt || die
+ sed -e "s:ubuntu:gentoo:" -i CMakeLists.txt || die
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCPACK_PACKAGING_INSTALL_PREFIX="${EPREFIX}/usr"
+ )
+ cmake_src_configure
+}