mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
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:
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
|
@ -1,7 +1,7 @@
|
||||||
# Created by: Martin Matuska <mm@FreeBSD.org>
|
# Created by: Martin Matuska <mm@FreeBSD.org>
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTREVISION= 0
|
PORTREVISION= 1
|
||||||
PKGNAMESUFFIX= -${OCV_SLAVE}
|
PKGNAMESUFFIX= -${OCV_SLAVE}
|
||||||
|
|
||||||
COMMENT= OpenCV core libraries
|
COMMENT= OpenCV core libraries
|
||||||
|
|
|
@ -15,8 +15,12 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||||
NOT_FOR_ARCHS= sparc64
|
NOT_FOR_ARCHS= sparc64
|
||||||
NOT_FOR_ARCHS_REASON_sparc64= does not compile on 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 \
|
LIB_DEPENDS= libprotobuf.so:devel/protobuf \
|
||||||
libtesseract.so:graphics/tesseract
|
libtesseract.so:graphics/tesseract
|
||||||
|
.endif
|
||||||
|
|
||||||
USES= cmake:outsource compiler:c++14-lang localbase:ldflags pkgconfig
|
USES= cmake:outsource compiler:c++14-lang localbase:ldflags pkgconfig
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue