From bbc7901e66f498ae60a9b87b783813dc5fb0edf2 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sun, 6 Oct 2019 18:25:19 +0000 Subject: [PATCH] New port: math/darknet: Open source neural networks in C --- math/Makefile | 1 + math/darknet/Makefile | 37 +++++++++++++++++++++++++++++++++++++ math/darknet/distinfo | 3 +++ math/darknet/pkg-descr | 4 ++++ 4 files changed, 45 insertions(+) create mode 100644 math/darknet/Makefile create mode 100644 math/darknet/distinfo create mode 100644 math/darknet/pkg-descr diff --git a/math/Makefile b/math/Makefile index bb188757178c..e0c0e379c130 100644 --- a/math/Makefile +++ b/math/Makefile @@ -196,6 +196,7 @@ SUBDIR += curv SUBDIR += cvc3 SUBDIR += cvc4 + SUBDIR += darknet SUBDIR += dbcsr SUBDIR += deal.ii SUBDIR += diehard diff --git a/math/darknet/Makefile b/math/darknet/Makefile new file mode 100644 index 000000000000..4101860c9aec --- /dev/null +++ b/math/darknet/Makefile @@ -0,0 +1,37 @@ +# $FreeBSD$ + +PORTNAME= darknet +DISTVERSIONPREFIX= v +DISTVERSION= 0.4-1614 +DISTVERSIONSUFFIX= -gd703fb4e +CATEGORIES= math + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Open source neural networks in C + +LICENSE= PD +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= gmake +USE_GITHUB= yes +GH_ACCOUNT= pjreddie +GH_TAGNAME= 61c9d02 +USE_LDCONFIG= yes + +MAKE_ARGS= OPTS=-O3 + +BINARY_ALIAS= gcc=${CC} g++=${CXX} + +PLIST_FILES= bin/darknet \ + include/darknet.h \ + lib/libdarknet.a \ + lib/libdarknet.so + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/darknet ${STAGEDIR}${PREFIX}/bin + cd ${WRKSRC} && ${COPYTREE_SHARE} include ${STAGEDIR}${PREFIX} + ${INSTALL_DATA} ${WRKSRC}/libdarknet.so ${STAGEDIR}${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/libdarknet.a ${STAGEDIR}${PREFIX}/lib + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libdarknet.so + +.include diff --git a/math/darknet/distinfo b/math/darknet/distinfo new file mode 100644 index 000000000000..ccb43bbcda90 --- /dev/null +++ b/math/darknet/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1570384516 +SHA256 (pjreddie-darknet-v0.4-1614-gd703fb4e-61c9d02_GH0.tar.gz) = 36ddd0271b8fa7dbd96829834d491971c88165c89369cfbb4f47daad15c10759 +SIZE (pjreddie-darknet-v0.4-1614-gd703fb4e-61c9d02_GH0.tar.gz) = 3341016 diff --git a/math/darknet/pkg-descr b/math/darknet/pkg-descr new file mode 100644 index 000000000000..1fc6987ad80b --- /dev/null +++ b/math/darknet/pkg-descr @@ -0,0 +1,4 @@ +Darknet is an open source neural network framework written in C and CUDA. It is +fast, easy to install, and supports CPU and GPU computation. + +WWW: https://pjreddie.com/darknet/