1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

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 <grey.leo@gmail.com>
This commit is contained in:
Yuri Victorovich 2019-10-15 01:55:13 +00:00
parent 5cc33d1629
commit cab17f94d5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=514488
3 changed files with 13 additions and 7 deletions

View File

@ -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 <bsd.port.mk>

View File

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

View File

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