diff options
Diffstat (limited to 'dev-libs/ncnn')
-rw-r--r-- | dev-libs/ncnn/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/ncnn/ncnn-20240102.ebuild | 55 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-libs/ncnn/Manifest b/dev-libs/ncnn/Manifest index 4f2a3234b43d..a1c5c9418628 100644 --- a/dev-libs/ncnn/Manifest +++ b/dev-libs/ncnn/Manifest @@ -1,3 +1,5 @@ DIST ncnn-20231027.tar.gz 12722960 BLAKE2B 15fffe7ca640d4a7c42e9a2f80cc40d85ed1dfd06602eaf7b8ca9943ea30ca5c436ef44acf027587fd3006c7dceed92937151dd6f5f8cf17501fbe3e79d6f70c SHA512 722966b3b30c5a4df81c6d45237b1821acc69db0c78350a41e3bc60e3f40c3dc64587ae0ab223635c468314c665e477ee7e0c2d3d4cccbc72bb15aeb56dcda6c +DIST ncnn-20240102.tar.gz 12791570 BLAKE2B 8a84353343d32bea1ef163a83cdef783a8a6077282e94a012d21a17b2e0d8c78c576ebd1dc5c9ec89364942b4ce69ab44d544648fe2dbd5fda4797b3b65adfd8 SHA512 31bc3c2f461a00241fb8f69ca6ea8cc590af6618856b1b84a048bde924e4b474fd883ad5d54dbfbdd1e5b59015889e15ffc4fbafccb3e42e052a02071f2017b1 EBUILD ncnn-20231027.ebuild 1218 BLAKE2B cb68cfa0133f01c36fec14b5b1f2dabd6d93e1512339e776e0a70ddbff41e8007d10b4d3505cc2be524a54ebebe96bd7b6fe0d0a7cc067d57b8ef4be29eef149 SHA512 e391a91d0b337e94203e328b10c358d612291a1c59b735be987679e2500745269caa2fcfdeb5039a76d77fa2a265f08625815868e88a49d057739218f06912a5 +EBUILD ncnn-20240102.ebuild 1240 BLAKE2B ebd55a33940800efa098771b95603f8ca8489c62614776dc2b33d87343de8cb73be72c35f7bb252a3cbf761e5f39a6fed575c4f4f93c2c77a1678d1f23a2a596 SHA512 a6aa5e0c4fba333d1007bbb4724fa12c9fe71eef1b93b8da4ff535cf44f5002a02e30b8edf84d5dad5f440bf139fd3e0bcc5f9ffa1eeac135c9f686af783abae MISC metadata.xml 430 BLAKE2B 2623eadab618d93544c297f5c5bbb29575a769e0d4660aa619c66db2ad1909349f2753a426789d6c280a13a452b3434d5ffa2e781aee59b4487a71b023792327 SHA512 0693c619982557394bbabab2ceee6ba06445bcc208bb9e751392a371ca3efbf56b39685fb2d20d4e3da443c5bf7a482ed4581a7349734ad44c1e58dfb6dc241e diff --git a/dev-libs/ncnn/ncnn-20240102.ebuild b/dev-libs/ncnn/ncnn-20240102.ebuild new file mode 100644 index 000000000000..a42214845a07 --- /dev/null +++ b/dev-libs/ncnn/ncnn-20240102.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2024 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=no + -DNCNN_BUILD_TOOLS=$(usex tools) + -DNCNN_PYTHON=no # todo if something needs it + -DNCNN_SHARED_LIB=yes + -DNCNN_SIMPLEVK=no + -DNCNN_SYSTEM_GLSLANG=yes + -DNCNN_VERSION=${PV} # avoids libncnn.so.*.%Y%m%d using build date + -DNCNN_VULKAN=$(usex vulkan) + ) + + cmake_src_configure +} |