From 3529f1bf2739399905cd55b27c7609459bfc069f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 27 Oct 2023 14:48:06 +0100 Subject: gentoo auto-resync : 27:10:2023 - 14:48:06 --- dev-libs/ncnn/Manifest | 2 ++ dev-libs/ncnn/ncnn-20231027.ebuild | 54 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 dev-libs/ncnn/ncnn-20231027.ebuild (limited to 'dev-libs/ncnn') diff --git a/dev-libs/ncnn/Manifest b/dev-libs/ncnn/Manifest index a65e99a05e00..67c0946ca271 100644 --- a/dev-libs/ncnn/Manifest +++ b/dev-libs/ncnn/Manifest @@ -1,3 +1,5 @@ DIST ncnn-20230816.tar.gz 12628885 BLAKE2B 0dcc563d28d6e3e6784c3db3a6d434af478b294d1f79109026172264de7006116f8eefbf10f4f136dc9447488c0555b42f8336c57460c71e74c267229a2e7aab SHA512 687dcf508eac2a0ecceb479e693f5fbfde3ed68ddd1ddaae954037c7d777a9662f3d2082d7c9b09b116751086d01af63f480f8200ca4f6ca1ea6ffe613a1c7f5 +DIST ncnn-20231027.tar.gz 12722960 BLAKE2B 15fffe7ca640d4a7c42e9a2f80cc40d85ed1dfd06602eaf7b8ca9943ea30ca5c436ef44acf027587fd3006c7dceed92937151dd6f5f8cf17501fbe3e79d6f70c SHA512 722966b3b30c5a4df81c6d45237b1821acc69db0c78350a41e3bc60e3f40c3dc64587ae0ab223635c468314c665e477ee7e0c2d3d4cccbc72bb15aeb56dcda6c EBUILD ncnn-20230816.ebuild 1187 BLAKE2B 77686b09be10755f96d5920bee687da18da6653f71564ab26a6227315e48341d5e78d533238b9391370e5cc57550cb837cc77dbed732efbae4fce8ba82547f94 SHA512 529606a0efd258942e0fc39f04697f032634e24bf64ba7664a66f1998d1ca47a2b2cd0c1a7de1f273c4c57e1b1fb67471221e12e2c15b1126a2df2e5dc986993 +EBUILD ncnn-20231027.ebuild 1219 BLAKE2B cabf4607229d1b8e5ec7171e2ee3c61b6474f201e78bd0b40c507074b03803adde70874b9a36bae5e4608f61129b372162bba4214584f6402dd4407fea5e2f34 SHA512 2b65c5be2d8adb481d630d2f80a58adc2ac84e52ac819e9215bf9ed29154423e039a780c64789d683ef62a98a423eff873f30c230aa47867f58d29c8aa54a8f5 MISC metadata.xml 430 BLAKE2B 2623eadab618d93544c297f5c5bbb29575a769e0d4660aa619c66db2ad1909349f2753a426789d6c280a13a452b3434d5ffa2e781aee59b4487a71b023792327 SHA512 0693c619982557394bbabab2ceee6ba06445bcc208bb9e751392a371ca3efbf56b39685fb2d20d4e3da443c5bf7a482ed4581a7349734ad44c1e58dfb6dc241e 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 +} -- cgit v1.2.3