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>
This commit is contained in:
Steve Wills 2018-07-18 12:53:36 +00:00
parent 649f0708ce
commit dedcf8f4b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=474860
2 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$
PORTREVISION= 0
PORTREVISION= 1
PKGNAMESUFFIX= -${OCV_SLAVE}
COMMENT= OpenCV core libraries

View File

@ -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