diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2023-10-27 06:13:39 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2023-10-27 06:33:09 -0400 |
commit | f817735482ff37db55d5e56610389582e845a99f (patch) | |
tree | de0d94102e8db09f6e80412055edfb77e6d46f79 /dev-libs | |
parent | sci-electronics/fritzing: add 0.9.6 (diff) | |
download | gentoo-f817735482ff37db55d5e56610389582e845a99f.tar.gz gentoo-f817735482ff37db55d5e56610389582e845a99f.tar.bz2 gentoo-f817735482ff37db55d5e56610389582e845a99f.zip |
dev-libs/ncnn: add 20231027
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/ncnn/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/ncnn/ncnn-20231027.ebuild | 54 |
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-libs/ncnn/Manifest b/dev-libs/ncnn/Manifest index e1039111b892..9cbcd3ef2689 100644 --- a/dev-libs/ncnn/Manifest +++ b/dev-libs/ncnn/Manifest @@ -1 +1,2 @@ DIST ncnn-20230816.tar.gz 12628885 BLAKE2B 0dcc563d28d6e3e6784c3db3a6d434af478b294d1f79109026172264de7006116f8eefbf10f4f136dc9447488c0555b42f8336c57460c71e74c267229a2e7aab SHA512 687dcf508eac2a0ecceb479e693f5fbfde3ed68ddd1ddaae954037c7d777a9662f3d2082d7c9b09b116751086d01af63f480f8200ca4f6ca1ea6ffe613a1c7f5 +DIST ncnn-20231027.tar.gz 12722960 BLAKE2B 15fffe7ca640d4a7c42e9a2f80cc40d85ed1dfd06602eaf7b8ca9943ea30ca5c436ef44acf027587fd3006c7dceed92937151dd6f5f8cf17501fbe3e79d6f70c SHA512 722966b3b30c5a4df81c6d45237b1821acc69db0c78350a41e3bc60e3f40c3dc64587ae0ab223635c468314c665e477ee7e0c2d3d4cccbc72bb15aeb56dcda6c diff --git a/dev-libs/ncnn/ncnn-20231027.ebuild b/dev-libs/ncnn/ncnn-20231027.ebuild new file mode 100644 index 000000000000..258cb13847be --- /dev/null +++ b/dev-libs/ncnn/ncnn-20231027.ebuild @@ -0,0 +1,54 @@ +# 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-cpp/abseil-cpp:= + 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 +} |