Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Dec 2019 02:06:55 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r520208 - head/math/darknet
Message-ID:  <201912160206.xBG26tK3002414@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Mon Dec 16 02:06:55 2019
New Revision: 520208
URL: https://svnweb.freebsd.org/changeset/ports/520208

Log:
  math/darknet: Update g20180914 -> 3-446
  
  Update to a maintained fork under the AlexeyAB GitHub account.

Modified:
  head/math/darknet/Makefile
  head/math/darknet/distinfo

Modified: head/math/darknet/Makefile
==============================================================================
--- head/math/darknet/Makefile	Mon Dec 16 01:43:15 2019	(r520207)
+++ head/math/darknet/Makefile	Mon Dec 16 02:06:55 2019	(r520208)
@@ -1,10 +1,11 @@
 # $FreeBSD$
 
 PORTNAME=	darknet
-PORTVERSION=	g20180914
-PORTREVISION=	1
+DISTVERSIONPREFIX=	darknet_yolo_v
+DISTVERSION=	3-446
+DISTVERSIONSUFFIX=	-gf2fc239
 PORTEPOCH=	1
-CATEGORIES=	math
+CATEGORIES=	math # machine-learning
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Open source neural networks in C
@@ -12,38 +13,36 @@ COMMENT=	Open source neural networks in C
 LICENSE=	PD
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		compiler:c11 gmake
+LIB_DEPENDS=	libomp.so:devel/openmp
+
+USES=		cmake compiler:c11
 USE_GITHUB=	yes
-GH_ACCOUNT=	pjreddie
-GH_TAGNAME=	61c9d02
+GH_ACCOUNT=	AlexeyAB
 USE_LDCONFIG=	yes
 
-MAKE_ARGS=	OPTS=-O3 CC=${CC} CPP=${CXX}
+CMAKE_OFF=	ENABLE_CUDA ENABLE_CUDNN ENABLE_CUDNN_HALF ENABLE_VCPKG_INTEGRATION
 
 PLIST_FILES=	bin/darknet \
 		include/darknet.h \
-		lib/libdarknet.a \
-		lib/libdarknet.so
+		include/yolo_v2_class.hpp \
+		lib/libdark.so
 
-OPTIONS_DEFINE=		OPENCV OPENMP
-OPTIONS_DEFAULT=	OPENCV OPENMP
+OPTIONS_DEFINE=		OPENCV
+OPTIONS_DEFAULT=	OPENCV
 # Many secondary functions in DarkNet depend on OpenCV which is a large dependency.
 # Build with OPENCV=off for a self-contained executable which would support
 # core NN computations but would not support many visualization, training and
 # other features.
 
-OPENCV_USES=	pkgconfig
-OPENCV_MAKE_ARGS=	OPENCV=1
+OPENCV_USES=		pkgconfig
+OPENCV_CMAKE_BOOL=	ENABLE_OPENCV
 OPENCV_LIB_DEPENDS=	libopencv_video.so:graphics/opencv \
 			libopencv_core.so:graphics/opencv-core
 
-OPENMP_MAKE_ARGS=	OPENMP=1
-
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/darknet ${STAGEDIR}${PREFIX}/bin
+do-install: # https://github.com/AlexeyAB/darknet/issues/4527
+	${INSTALL_PROGRAM} ${BUILD_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
+	${INSTALL_DATA} ${BUILD_WRKSRC}/libdark.so ${STAGEDIR}${PREFIX}/lib
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libdark.so
 
 .include <bsd.port.mk>

Modified: head/math/darknet/distinfo
==============================================================================
--- head/math/darknet/distinfo	Mon Dec 16 01:43:15 2019	(r520207)
+++ head/math/darknet/distinfo	Mon Dec 16 02:06:55 2019	(r520208)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1570389499
-SHA256 (pjreddie-darknet-g20180914-61c9d02_GH0.tar.gz) = 36ddd0271b8fa7dbd96829834d491971c88165c89369cfbb4f47daad15c10759
-SIZE (pjreddie-darknet-g20180914-61c9d02_GH0.tar.gz) = 3341016
+TIMESTAMP = 1576460707
+SHA256 (AlexeyAB-darknet-darknet_yolo_v3-446-gf2fc239_GH0.tar.gz) = db38891d52f8d664eeea63d8d4345b6d847a7e068f0e22c3ee9a486962e188dc
+SIZE (AlexeyAB-darknet-darknet_yolo_v3-446-gf2fc239_GH0.tar.gz) = 7376135



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912160206.xBG26tK3002414>