summaryrefslogtreecommitdiff
path: root/dev-libs
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/Manifest.gzbin97340 -> 97340 bytes
-rw-r--r--dev-libs/ncnn/Manifest2
-rw-r--r--dev-libs/ncnn/ncnn-20230816.ebuild48
-rw-r--r--dev-libs/opencl-icd-loader/Manifest2
-rw-r--r--dev-libs/opencl-icd-loader/opencl-icd-loader-2023.04.17.ebuild7
5 files changed, 57 insertions, 2 deletions
diff --git a/dev-libs/Manifest.gz b/dev-libs/Manifest.gz
index 4e6bef9b5d99..53823d91fe05 100644
--- a/dev-libs/Manifest.gz
+++ b/dev-libs/Manifest.gz
Binary files differ
diff --git a/dev-libs/ncnn/Manifest b/dev-libs/ncnn/Manifest
index 7d48886dadb9..7d8f85935c68 100644
--- a/dev-libs/ncnn/Manifest
+++ b/dev-libs/ncnn/Manifest
@@ -1,3 +1,5 @@
DIST ncnn-20230517.tar.gz 12569535 BLAKE2B eefb6c2aab6ee97a258c8b7eaad749b7bf9712f8d03a0398b57b6e6e6b3e42357de64db0fe4ce244391dd9f495f576bc27704ab7ed810cd130b1d710ffdd75ef SHA512 e4d125a6590a3ac290376a7a5d7790d9eb145bd69cbb7c4d8b28ff7e1b05b1dfe8513d84f0199c681976d54c1904546ef536db14f39fbb0d8cb68ed5061f58b9
+DIST ncnn-20230816.tar.gz 12628885 BLAKE2B 0dcc563d28d6e3e6784c3db3a6d434af478b294d1f79109026172264de7006116f8eefbf10f4f136dc9447488c0555b42f8336c57460c71e74c267229a2e7aab SHA512 687dcf508eac2a0ecceb479e693f5fbfde3ed68ddd1ddaae954037c7d777a9662f3d2082d7c9b09b116751086d01af63f480f8200ca4f6ca1ea6ffe613a1c7f5
EBUILD ncnn-20230517.ebuild 1186 BLAKE2B dee9d4ae571495b0cfdb15e83c0501571ebfe5d90434d263f2caba593b68418ecba22e400247269a9b394000ef9a9b4e1ccbd3141c4d84725b5965439c3b13cf SHA512 35eb5e3e1867f8946ae0a2080a363e3fca22e3557ce36fc0a4a8861fb2613eb0a816cff3239d89c2bc688a4576f4b023d9add2012cb0aa09c2c0337e283893f3
+EBUILD ncnn-20230816.ebuild 1188 BLAKE2B 427cab24d7c0b34971b46065458d04a09239c3f62577d5dd71c25b02b9e4cd4c5e982860a2efdbb4f91c1ff0a3a5b41e0b3ebf24dc1ac53fec204b0ef01c12ec SHA512 370bff0dbc5e3f437690c8498ba4e08c726f1e23bed872801930724aad3747abb5199588860099b86b6d52f80f0cef6b2e3406272b228d5210e2fb898668b865
MISC metadata.xml 430 BLAKE2B 2623eadab618d93544c297f5c5bbb29575a769e0d4660aa619c66db2ad1909349f2753a426789d6c280a13a452b3434d5ffa2e781aee59b4487a71b023792327 SHA512 0693c619982557394bbabab2ceee6ba06445bcc208bb9e751392a371ca3efbf56b39685fb2d20d4e3da443c5bf7a482ed4581a7349734ad44c1e58dfb6dc241e
diff --git a/dev-libs/ncnn/ncnn-20230816.ebuild b/dev-libs/ncnn/ncnn-20230816.ebuild
new file mode 100644
index 000000000000..0b1be09cd2b0
--- /dev/null
+++ b/dev-libs/ncnn/ncnn-20230816.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="High-performance neural network inference framework"
+HOMEPAGE="https://github.com/Tencent/ncnn/"
+SRC_URI="https://github.com/Tencent/ncnn/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD ZLIB"
+SLOT="0/${PV}" # currently has unstable ABI that often requires rebuilds
+KEYWORDS="~amd64 ~x86"
+IUSE="tools +vulkan"
+
+# Need the static library to run tests + skip vulkan / GPU:
+# -DNCNN_BUILD_TESTS=ON -DNCNN_SHARED_LIB=OFF -DNCNN_VULKAN=OFF
+RESTRICT="test"
+
+RDEPEND="
+ tools? ( dev-libs/protobuf:= )
+ vulkan? (
+ dev-util/glslang:=
+ media-libs/vulkan-loader
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ vulkan? ( dev-util/vulkan-headers )
+"
+
+DOCS=( README.md docs/. )
+
+src_configure() {
+ local mycmakeargs=(
+ -DGLSLANG_TARGET_DIR="${ESYSROOT}"/usr/$(get_libdir)/cmake
+ -DNCNN_BUILD_EXAMPLES=OFF
+ -DNCNN_BUILD_TOOLS=$(usex tools)
+ -DNCNN_PYTHON=OFF # todo if something needs it
+ -DNCNN_SHARED_LIB=ON
+ -DNCNN_SYSTEM_GLSLANG=ON
+ -DNCNN_VERSION=${PV} # avoids libncnn.so.*.%Y%m%d using build date
+ -DNCNN_VULKAN=$(usex vulkan)
+ )
+
+ cmake_src_configure
+}
diff --git a/dev-libs/opencl-icd-loader/Manifest b/dev-libs/opencl-icd-loader/Manifest
index 7021a4d2aeb7..8779b1bc52f5 100644
--- a/dev-libs/opencl-icd-loader/Manifest
+++ b/dev-libs/opencl-icd-loader/Manifest
@@ -1,3 +1,3 @@
DIST opencl-icd-loader-2023.04.17.tar.gz 93179 BLAKE2B 056213043095029cdc721d87fc9fb5023f6c593e975b4b069037c8db278317e68517227d2ccea444469baf15412e435de3dd8418f1d010c72a6c1dc252742b87 SHA512 55d1f5ac62da1294bfe4814f2370db0a11636f18afa7da06f04b84b9c1e6ef546846420d27094aaa838eb6cc87197cf6e120a38af0b7ce71297be646a58ecb7b
-EBUILD opencl-icd-loader-2023.04.17.ebuild 874 BLAKE2B fda2e93557f870438e891594cec72322db08aec5e7fb1ccf2b2023a987e3899ce429ccf165f1270432ff53fa926eddb69ed687301b32f3d69cbcf4ec9eabb6ff SHA512 b672c9dad2864129601f47e71f1b8475ad0c268b0f1b04868e69fe73d47783eb5db4bc02ff12708270b304fcc1d5067ccfb295afd6b2483f5beed45b1463b1bb
+EBUILD opencl-icd-loader-2023.04.17.ebuild 953 BLAKE2B 8827e26e1f5c3f07934fa282bdffdd1a6ccbe10c8edea9ac226fcebe06fd91d15bd3bebba7b92939f48d619522e85ff37e122b4f2deb0fdf6e9689e340815b17 SHA512 e2e4dd064bd37539b170dfe3f8504de0fd5f689506001cd82407928b755c4d0ccf8d16918ca24ad62e857aaa4a7939299f4bf79887175b028252b2131867a78b
MISC metadata.xml 341 BLAKE2B b49a18b36fbbf0c978ad2445ee4688f32cafd66001f04e02256a420b9dd1e808f85c32e43adb15e5814957f5273a135f82c5fdfe37baf7e6fa73abe2c8fcd990 SHA512 5dcf111b1e5ec3e7532258ed2e29946cab993051193bec1413096b52148117c935b028e071c501863620c4a51e81aee333b9e4375caa14fdab3701524da99268
diff --git a/dev-libs/opencl-icd-loader/opencl-icd-loader-2023.04.17.ebuild b/dev-libs/opencl-icd-loader/opencl-icd-loader-2023.04.17.ebuild
index 42e9c3636c86..4db8dbf965d6 100644
--- a/dev-libs/opencl-icd-loader/opencl-icd-loader-2023.04.17.ebuild
+++ b/dev-libs/opencl-icd-loader/opencl-icd-loader-2023.04.17.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit cmake-multilib multibuild
+inherit cmake-multilib multibuild prefix
MY_PN="OpenCL-ICD-Loader"
MY_P="${MY_PN}-${PV}"
@@ -25,6 +25,11 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/${MY_P}"
+src_prepare() {
+ hprefixify loader/icd_platform.h
+ cmake_src_prepare
+}
+
multilib_src_configure() {
local mycmakeargs=(
-DBUILD_TESTING=$(usex test)