diff options
Diffstat (limited to 'dev-libs/ncnn')
-rw-r--r-- | dev-libs/ncnn/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/ncnn/ncnn-20220721.ebuild | 48 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-libs/ncnn/Manifest b/dev-libs/ncnn/Manifest index 53a0e811c996..da8781039fd2 100644 --- a/dev-libs/ncnn/Manifest +++ b/dev-libs/ncnn/Manifest @@ -1,3 +1,5 @@ DIST ncnn-20220701.tar.gz 12220010 BLAKE2B 3038500683c9ea1634777cb4158aea0d6c6e640cb4a31302b99c546f000fb91f5d75d01328cf35896b7579dc3172512d120612f973ae9881b4f95d101607adcb SHA512 4b7f539213c8f06a426d1633e881ceeabee84b5419e890eaa95447868a511cad8a4528d1e311c87ed322ccabbcfb38cc1725592fb6299ef9be7e068c43bbd0b2 +DIST ncnn-20220721.tar.gz 12235249 BLAKE2B 5d164a1f8531395e6bdbbb1ace07d5c7ef08db9afe62155126297b4911621aad4c5f71ccb3343207450dc4ea055f6da07aeb93f230098ab407eaa05ee31db8b9 SHA512 0d6c037661e8e6f9eebcfa58e306c8a6cf94a3739f04ab863209857adc4e8d01e19ba5d67b81d1e85bf2f8c9d6318a3a49acc989b5b014c6e68041dca23bb78c EBUILD ncnn-20220701.ebuild 1174 BLAKE2B fe9edb1f5dc122818d92dee5367be47e71e0c6d9b0110508df53db5d877071f9471a331c825d2ad32e103b42f27853c17e24d81bbeea4d8a67f8c46597574b44 SHA512 6ec4aab6d503977628a50796bd9578594cc497de778fcd35b3de7b9aead780f9b2243409ce0f2b31b3406f8f3d3a9115a0a40e0b213d6869254f8c45b2c12dd3 +EBUILD ncnn-20220721.ebuild 1208 BLAKE2B 2b53df0bbb44411b4835126717ae0570de1d02d3f596bbd6ac656ff2f3eb7c428e240e612e0792c1b03b347bc79e53d16823bdb813bccb12df94607ba7624257 SHA512 e904d0b4746577f0496bbccbf51dd73c44da5c463466df8d4afa84c8695c024d1ca7efaf0c045edaca696488e202daf09d8d07ee630ae772eee29e468918a86e MISC metadata.xml 602 BLAKE2B 09d7cf6d8eb19d516ac8f53f220808b16610320d8307cb19e34db48160d7e7a300fa3d773b8082a6a35972aad3e4831386b4f68cd754883d377fd4e1b2273d78 SHA512 b85b8572b6f5cdf569ea2137336026c071897f0d9c19fe8b44fb0745c5ca79dead6e2092d7b71a3bcf804eda20dfcfc78f79ee4e5c22eb58e565fb959085f4a6 diff --git a/dev-libs/ncnn/ncnn-20220721.ebuild b/dev-libs/ncnn/ncnn-20220721.ebuild new file mode 100644 index 000000000000..3fc052ceb245 --- /dev/null +++ b/dev-libs/ncnn/ncnn-20220721.ebuild @@ -0,0 +1,48 @@ +# 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=" + tools? ( dev-libs/protobuf:= ) + vulkan? ( + dev-util/glslang + media-libs/vulkan-loader + )" +DEPEND=" + ${RDEPEND} + vulkan? ( dev-util/vulkan-headers )" + +QA_PKGCONFIG_VERSION="1.0.${PV}" + +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 +} |