svn commit: r513917 - head/math/darknet
Yuri Victorovich
yuri at FreeBSD.org
Sun Oct 6 23:06:17 UTC 2019
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
More information about the svn-ports-head
mailing list