aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/opencv
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2018-07-18 20:53:36 +0800
committerswills <swills@FreeBSD.org>2018-07-18 20:53:36 +0800
commit94e622c711a76ace69d8ef21b266056670dc1dce (patch)
treeda606ff8138a6207a4050bfdd3bbc69af98f501c /graphics/opencv
parentcac254acd644bae096e33f81fc7a63614cd6df4b (diff)
downloadfreebsd-ports-gnome-94e622c711a76ace69d8ef21b266056670dc1dce.tar.gz
freebsd-ports-gnome-94e622c711a76ace69d8ef21b266056670dc1dce.tar.zst
freebsd-ports-gnome-94e622c711a76ace69d8ef21b266056670dc1dce.zip
graphics/opencv-core: remove unneeded depends
opencv-core only needs protobuf to build and doesn't need tesseract at all, so only add the LIB_DEPENDS when not building opencv-core PR: 229800 Reported by: Ali Abdallah <aliovx@gmail.com>
Diffstat (limited to 'graphics/opencv')
-rw-r--r--graphics/opencv/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/opencv/Makefile b/graphics/opencv/Makefile
index 40c5ddd19d31..2a51c94e2528 100644
--- a/graphics/opencv/Makefile
+++ b/graphics/opencv/Makefile
@@ -15,8 +15,12 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
NOT_FOR_ARCHS= sparc64
NOT_FOR_ARCHS_REASON_sparc64= does not compile on sparc64
+.if defined(OCV_CORE)
+BUILD_DEPENDS= protoc:devel/protobuf
+.else
LIB_DEPENDS= libprotobuf.so:devel/protobuf \
libtesseract.so:graphics/tesseract
+.endif
USES= cmake:outsource compiler:c++14-lang localbase:ldflags pkgconfig