svn commit: r474860 - in head/graphics: opencv opencv-core
Steve Wills
swills at FreeBSD.org
Wed Jul 18 12:53:37 UTC 2018
Author: swills
Date: Wed Jul 18 12:53:36 2018
New Revision: 474860
URL: https://svnweb.freebsd.org/changeset/ports/474860
Log:
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 at gmail.com>
Modified:
head/graphics/opencv-core/Makefile (contents, props changed)
head/graphics/opencv/Makefile (contents, props changed)
Modified: head/graphics/opencv-core/Makefile
==============================================================================
--- head/graphics/opencv-core/Makefile Wed Jul 18 12:48:33 2018 (r474859)
+++ head/graphics/opencv-core/Makefile Wed Jul 18 12:53:36 2018 (r474860)
@@ -1,7 +1,7 @@
# Created by: Martin Matuska <mm at FreeBSD.org>
# $FreeBSD$
-PORTREVISION= 0
+PORTREVISION= 1
PKGNAMESUFFIX= -${OCV_SLAVE}
COMMENT= OpenCV core libraries
Modified: head/graphics/opencv/Makefile
==============================================================================
--- head/graphics/opencv/Makefile Wed Jul 18 12:48:33 2018 (r474859)
+++ head/graphics/opencv/Makefile Wed Jul 18 12:53:36 2018 (r474860)
@@ -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
More information about the svn-ports-all
mailing list