Date: Sun, 6 Oct 2019 23:06:16 +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: r513917 - head/math/darknet Message-ID: <201910062306.x96N6G2t015655@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuri Date: Sun Oct 6 23:06:16 2019 New Revision: 513917 URL: https://svnweb.freebsd.org/changeset/ports/513917 Log: math/darknet: Add options OPENCV and OPENMP Modified: head/math/darknet/Makefile Modified: head/math/darknet/Makefile ============================================================================== --- head/math/darknet/Makefile Sun Oct 6 22:34:26 2019 (r513916) +++ head/math/darknet/Makefile Sun Oct 6 23:06:16 2019 (r513917) @@ -2,6 +2,7 @@ PORTNAME= darknet PORTVERSION= g20180914 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= math @@ -17,14 +18,26 @@ GH_ACCOUNT= pjreddie GH_TAGNAME= 61c9d02 USE_LDCONFIG= yes -MAKE_ARGS= OPTS=-O3 +MAKE_ARGS= OPTS=-O3 CC=${CC} CPP=${CXX} -BINARY_ALIAS= gcc=${CC} g++=${CXX} - PLIST_FILES= bin/darknet \ include/darknet.h \ lib/libdarknet.a \ lib/libdarknet.so + +OPTIONS_DEFINE= OPENCV OPENMP +OPTIONS_DEFAULT= OPENCV OPENMP +# 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_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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910062306.x96N6G2t015655>