From owner-svn-ports-head@freebsd.org Tue Oct 15 01:55:14 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 46605147BBF; Tue, 15 Oct 2019 01:55:14 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46sdmL19fTz4Pvw; Tue, 15 Oct 2019 01:55:14 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0BB3CF785; Tue, 15 Oct 2019 01:55:14 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x9F1tDdH063597; Tue, 15 Oct 2019 01:55:13 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x9F1tDgZ063594; Tue, 15 Oct 2019 01:55:13 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201910150155.x9F1tDgZ063594@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Tue, 15 Oct 2019 01:55:13 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r514488 - head/textproc/zxing-cpp X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: head/textproc/zxing-cpp X-SVN-Commit-Revision: 514488 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2019 01:55:14 -0000 Author: yuri Date: Tue Oct 15 01:55:13 2019 New Revision: 514488 URL: https://svnweb.freebsd.org/changeset/ports/514488 Log: textproc/zxing-cpp: Make OpenCV optional and off by default by adding the port option OPENCV While here add USE_LDCONFIG=yes that was missing. Reported by: Leo Cherepanov Modified: head/textproc/zxing-cpp/Makefile head/textproc/zxing-cpp/distinfo head/textproc/zxing-cpp/pkg-plist Modified: head/textproc/zxing-cpp/Makefile ============================================================================== --- head/textproc/zxing-cpp/Makefile Tue Oct 15 01:45:19 2019 (r514487) +++ head/textproc/zxing-cpp/Makefile Tue Oct 15 01:55:13 2019 (r514488) @@ -3,7 +3,7 @@ PORTNAME= zxing-cpp DISTVERSION= 0.20190320 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= textproc PATCH_SITES= https://github.com/${GH_ACCOUNT}/${PORTNAME}/commit/ @@ -15,14 +15,21 @@ COMMENT= ZXing C++ Library for QR code recognition LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= libopencv_core.so:graphics/opencv-core \ - libopencv_photo.so:graphics/opencv - USES= cmake compiler:c++11-lang iconv USE_GITHUB= yes GH_ACCOUNT= glassechidna GH_TAGNAME= e0e40dd +USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS + +OPTIONS_DEFINE= OPENCV # only one .cpp module in the project depends on OpenCV +OPTIONS_SUB= yes + +OPENCV_LIB_DEPENDS= libopencv_core.so:graphics/opencv-core \ + libopencv_photo.so:graphics/opencv + +post-patch-OPENCV-off: + @${REINPLACE_CMD} 's|find_package(OpenCV)|#&|' ${WRKSRC}/CMakeLists.txt .include Modified: head/textproc/zxing-cpp/distinfo ============================================================================== --- head/textproc/zxing-cpp/distinfo Tue Oct 15 01:45:19 2019 (r514487) +++ head/textproc/zxing-cpp/distinfo Tue Oct 15 01:55:13 2019 (r514488) @@ -1,4 +1,4 @@ -TIMESTAMP = 1555794546 +TIMESTAMP = 1571103733 SHA256 (glassechidna-zxing-cpp-0.20190320-e0e40dd_GH0.tar.gz) = 699ed1e08812631d40730bd96a7e314d1ad8adf28f45770d8ae8e57a536ba33b SIZE (glassechidna-zxing-cpp-0.20190320-e0e40dd_GH0.tar.gz) = 312377 SHA256 (9e5dfa57f3b998bc3049bfa893b20e81dea656df.patch) = a9afdcaed3ac3026eb471e371431d23b9353a58807c7b5c863f33253f31f128b Modified: head/textproc/zxing-cpp/pkg-plist ============================================================================== --- head/textproc/zxing-cpp/pkg-plist Tue Oct 15 01:45:19 2019 (r514487) +++ head/textproc/zxing-cpp/pkg-plist Tue Oct 15 01:55:13 2019 (r514488) @@ -9,7 +9,7 @@ include/zxing/FormatException.h include/zxing/IllegalStateException.h include/zxing/InvertedLuminanceSource.h include/zxing/LuminanceSource.h -include/zxing/MatSource.h +%%OPENCV%%include/zxing/MatSource.h include/zxing/MultiFormatReader.h include/zxing/NotFoundException.h include/zxing/Reader.h @@ -106,4 +106,3 @@ lib/libzxing.so lib/zxing/cmake/zxing-config.cmake lib/zxing/cmake/zxing-targets-%%CMAKE_BUILD_TYPE%%.cmake lib/zxing/cmake/zxing-targets.cmake -