summaryrefslogtreecommitdiff
path: root/dev-libs/ncnn
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/ncnn')
-rw-r--r--dev-libs/ncnn/Manifest3
-rw-r--r--dev-libs/ncnn/files/ncnn-fix-glslang-include.patch9
-rw-r--r--dev-libs/ncnn/ncnn-20220420.ebuild73
3 files changed, 0 insertions, 85 deletions
diff --git a/dev-libs/ncnn/Manifest b/dev-libs/ncnn/Manifest
index 83a20bd8414e..53a0e811c996 100644
--- a/dev-libs/ncnn/Manifest
+++ b/dev-libs/ncnn/Manifest
@@ -1,6 +1,3 @@
-AUX ncnn-fix-glslang-include.patch 281 BLAKE2B ae6293b2c16ee870d65cde7398cfe615ba3cbfa682edd5da0e92072d80f37f46f0fdc84648bb3757a266e1406d3289025344cff462ae2c3d84e232460db40759 SHA512 7e424a89b3d2a8b9cd4630e2ea8fd789569bef9bfcbea39c11fecf2cb0d9ece9639bd01e88735715d28fe7d92aa5eee9231d59cade55829f8d4af7e33a4f4adf
-DIST ncnn-20220420.tar.gz 12158916 BLAKE2B fcecf395e54ff683bb8301365d805b99439b3797493e419fa8c99a325ebd1dfd80e65b08cffd9283fe453010a0cdde221aeeffa37e154335d2f6d7f6c6b9b138 SHA512 7c567bcd75cf36be7fbb16dba7f978ae965478afed8948e9e1c6f8c681ea678f769e64fae337a5c1d0bc1549bf922c1761b51a7822153a1eb4d267ef8adf1ecd
DIST ncnn-20220701.tar.gz 12220010 BLAKE2B 3038500683c9ea1634777cb4158aea0d6c6e640cb4a31302b99c546f000fb91f5d75d01328cf35896b7579dc3172512d120612f973ae9881b4f95d101607adcb SHA512 4b7f539213c8f06a426d1633e881ceeabee84b5419e890eaa95447868a511cad8a4528d1e311c87ed322ccabbcfb38cc1725592fb6299ef9be7e068c43bbd0b2
-EBUILD ncnn-20220420.ebuild 1683 BLAKE2B c642f997a2dacfe882a15e299947a4728959e6165fa1fa446f043c70cc80201ca760a9be7ec21ed8c35439b87eab3dc7a0d930ffbec24c8f06940ade84708551 SHA512 ce3330ae73163f1cb5479b8ae7ee38a5e0ac3381e9127ce2442fe43eea565be46779cee315c159815c202531b827dfc6b59116375fec0c0c10c2db787525d714
EBUILD ncnn-20220701.ebuild 1174 BLAKE2B fe9edb1f5dc122818d92dee5367be47e71e0c6d9b0110508df53db5d877071f9471a331c825d2ad32e103b42f27853c17e24d81bbeea4d8a67f8c46597574b44 SHA512 6ec4aab6d503977628a50796bd9578594cc497de778fcd35b3de7b9aead780f9b2243409ce0f2b31b3406f8f3d3a9115a0a40e0b213d6869254f8c45b2c12dd3
MISC metadata.xml 602 BLAKE2B 09d7cf6d8eb19d516ac8f53f220808b16610320d8307cb19e34db48160d7e7a300fa3d773b8082a6a35972aad3e4831386b4f68cd754883d377fd4e1b2273d78 SHA512 b85b8572b6f5cdf569ea2137336026c071897f0d9c19fe8b44fb0745c5ca79dead6e2092d7b71a3bcf804eda20dfcfc78f79ee4e5c22eb58e565fb959085f4a6
diff --git a/dev-libs/ncnn/files/ncnn-fix-glslang-include.patch b/dev-libs/ncnn/files/ncnn-fix-glslang-include.patch
deleted file mode 100644
index 00eb01f03fc3..000000000000
--- a/dev-libs/ncnn/files/ncnn-fix-glslang-include.patch
+++ /dev/null
@@ -1,9 +0,0 @@
-Needed to use system's glslang rather than bundled.
-https://github.com/Tencent/ncnn/issues/2622
---- a/src/gpu.cpp
-+++ b/src/gpu.cpp
-@@ -23,3 +23,3 @@
- #include "glslang/SPIRV/GlslangToSpv.h"
--#include "glslang/glslang/Public/ShaderLang.h"
-+#include "glslang/Public/ShaderLang.h"
-
diff --git a/dev-libs/ncnn/ncnn-20220420.ebuild b/dev-libs/ncnn/ncnn-20220420.ebuild
deleted file mode 100644
index da09a4cf9ffd..000000000000
--- a/dev-libs/ncnn/ncnn-20220420.ebuild
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 1999-2022 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/${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="
- dev-util/glslang
- tools? ( dev-libs/protobuf:= )
- vulkan? ( media-libs/vulkan-loader )"
-DEPEND="
- ${RDEPEND}
- vulkan? ( dev-util/vulkan-headers )"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-fix-glslang-include.patch
-)
-
-DOCS=( README.md docs/. )
-
-src_prepare() {
- cmake_src_prepare
-
- sed -i "/DESTINATION/s| lib| $(get_libdir)|" src/CMakeLists.txt || die
-}
-
-src_configure() {
- local mycmakeargs=(
- -DCMAKE_SKIP_RPATH=ON # for tools
- -DGLSLANG_TARGET_DIR="${ESYSROOT}"/usr/$(get_libdir)/cmake
- -DNCNN_BUILD_EXAMPLES=OFF
- -DNCNN_BUILD_TOOLS=$(usex tools)
- -DNCNN_PYTHON=OFF # missing portalocker, and nothing needs this for now
- -DNCNN_SHARED_LIB=ON
- -DNCNN_SYSTEM_GLSLANG=ON
- -DNCNN_VERSION=${PV} # avoids libncnn.so.*.%Y%m%d (build date)
- -DNCNN_VULKAN=$(usex vulkan)
- )
-
- cmake_src_configure
-}
-
-src_install() {
- cmake_src_install
-
- if use tools; then
- local tools=(
- caffe/caffe2ncnn
- darknet/darknet2ncnn
- mxnet/mxnet2ncnn
- ncnn2mem
- ncnnmerge
- ncnnoptimize
- onnx/onnx2ncnn
- quantize/{ncnn2int8,ncnn2table}
- )
- dobin "${tools[@]/#/${BUILD_DIR}/tools/}"
- fi
-}