summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Karbowski <slashbeast@gentoo.org>2020-03-29 23:04:45 +0200
committerPiotr Karbowski <slashbeast@gentoo.org>2020-03-29 23:09:01 +0200
commitbe41de14dbc751bbe262c2d0afa45cdce2678ced (patch)
tree2727198dbe8c16a4752e84a13bee87e61e280e13 /dev-libs
parentmedia-fonts/symbola: drop 11.00-r1 due to license restrictions (diff)
downloadgentoo-be41de14dbc751bbe262c2d0afa45cdce2678ced.tar.gz
gentoo-be41de14dbc751bbe262c2d0afa45cdce2678ced.tar.bz2
gentoo-be41de14dbc751bbe262c2d0afa45cdce2678ced.zip
dev-libs/ncnn-20200226: new package.
Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/ncnn/Manifest1
-rw-r--r--dev-libs/ncnn/metadata.xml11
-rw-r--r--dev-libs/ncnn/ncnn-20200226.ebuild35
3 files changed, 47 insertions, 0 deletions
diff --git a/dev-libs/ncnn/Manifest b/dev-libs/ncnn/Manifest
new file mode 100644
index 000000000000..bc627b79369d
--- /dev/null
+++ b/dev-libs/ncnn/Manifest
@@ -0,0 +1 @@
+DIST ncnn-20200226.tar.gz 10363010 BLAKE2B 3f5e22ecffc7d36d7babb8c316eb95785f60b2938672cc2fc4a56ae8e4cc79fef8d498032117998a1813b4a5491b4b99f6941ac41be3fe8d6c6e3276ae46396e SHA512 e91694692e2c48ba4b404b26b382939be62c61e8452a09b8c1cdad351adcda1ea8bd19ded671f6c4c6cf979ccc49c181dd47e501a351fe89ecdf17a5395b3fab
diff --git a/dev-libs/ncnn/metadata.xml b/dev-libs/ncnn/metadata.xml
new file mode 100644
index 000000000000..64723a6c0066
--- /dev/null
+++ b/dev-libs/ncnn/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>slashbeast@gentoo.org</email>
+ <name>Piotr Karbowski</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Tencent/ncnn</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-libs/ncnn/ncnn-20200226.ebuild b/dev-libs/ncnn/ncnn-20200226.ebuild
new file mode 100644
index 000000000000..2be03e684301
--- /dev/null
+++ b/dev-libs/ncnn/ncnn-20200226.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="A 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"
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE=""
+
+
+DEPEND="
+ dev-util/glslang
+ dev-util/vulkan-headers"
+
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_TOOLCHAIN_FILE="${S}/toolchains/host.gcc.toolchain.cmake"
+ -DNCNN_BUILD_EXAMPLES=OFF
+ -DNCNN_BUILD_TOOLS=OFF
+ -DNCNN_VULKAN=ON
+ )
+
+ cmake_src_configure
+}