Skip to content

Commit

Permalink
prison: add support for ZXing 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed Apr 29, 2023
1 parent 318ad05 commit da218ec
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graphics/prison/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.13 2022/09/29 00:52:15 markd Exp $
$NetBSD: distinfo,v 1.14 2023/04/29 14:37:07 wiz Exp $

BLAKE2s (prison-5.98.0.tar.xz) = d9cac3651c2250de09ccb06977d58deae38a0af23dac824be9998ad4a6fb314a
SHA512 (prison-5.98.0.tar.xz) = 71c800693292a98888f8dad3317613464bd7c07c20ea882e871f1103270619a0a59021405207f30bad4360c81649ae2701d7237c9e9d5948a4d37b4d148b067b
Size (prison-5.98.0.tar.xz) = 55752 bytes
SHA1 (patch-CMakeLists.txt) = 8337d6c7018f99ee418c0c7f2c79661cb8a10fbf
19 changes: 19 additions & 0 deletions graphics/prison/patches/patch-CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
$NetBSD: patch-CMakeLists.txt,v 1.1 2023/04/29 14:37:08 wiz Exp $

ZXing 2.0 support
https://github.com/KDE/prison/commit/14fb6f0a31373b242bdeb18cf9f3a36441bf86b5

--- CMakeLists.txt.orig 2022-09-05 09:32:45.000000000 +0000
+++ CMakeLists.txt
@@ -44,7 +44,10 @@ find_package(Dmtx)
set_package_properties(Dmtx PROPERTIES
PURPOSE "Required for generation of Data Matrix barcodes."
TYPE RECOMMENDED)
-find_package(ZXing 1.2.0)
+find_package(ZXing 2.0)
+if (NOT TARGET ZXing::ZXing)
+ find_package(ZXing 1.2.0)
+endif()
set_package_properties(ZXing PROPERTIES
PURPOSE "Required for generation of PDF417 barcodes and for scanning of barcodes from live video feed."
TYPE RECOMMENDED)

0 comments on commit da218ec

Please sign in to comment.