From dedcf8f4b0334fa08a83d4b8d92d2549fb34a521 Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Wed, 18 Jul 2018 12:53:36 +0000 Subject: [PATCH] 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 --- graphics/opencv-core/Makefile | 2 +- graphics/opencv/Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/graphics/opencv-core/Makefile b/graphics/opencv-core/Makefile index f3931332ccb6..7ec85eab4d25 100644 --- a/graphics/opencv-core/Makefile +++ b/graphics/opencv-core/Makefile @@ -1,7 +1,7 @@ # Created by: Martin Matuska # $FreeBSD$ -PORTREVISION= 0 +PORTREVISION= 1 PKGNAMESUFFIX= -${OCV_SLAVE} COMMENT= OpenCV core libraries 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