From owner-svn-ports-all@freebsd.org Sun Oct 6 23:06:17 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0A8761373D0; Sun, 6 Oct 2019 23:06:17 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46mfP46XJPz3y5H; Sun, 6 Oct 2019 23:06:16 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BF1CE58C9; Sun, 6 Oct 2019 23:06:16 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x96N6GL3015656; Sun, 6 Oct 2019 23:06:16 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x96N6G2t015655; Sun, 6 Oct 2019 23:06:16 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201910062306.x96N6G2t015655@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sun, 6 Oct 2019 23:06:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r513917 - head/math/darknet X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: head/math/darknet X-SVN-Commit-Revision: 513917 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Oct 2019 23:06:17 -0000 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