aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2022-08-27 06:50:25 +0000
committerTobias C. Berner <tcberner@FreeBSD.org>2022-08-27 06:54:25 +0000
commit02752e01efc857153eea218bd08201147c01b408 (patch)
treeb9db5e485f15d7972dd7e6f362e12db05c5385f1
parent96068b9bcb07527ca08214633d84904873912231 (diff)
downloadports-02752e01efc857153eea218bd08201147c01b408.tar.gz
ports-02752e01efc857153eea218bd08201147c01b408.zip
textproc/zxing-cpp: install private header for libreoffice
-rw-r--r--textproc/zxing-cpp/Makefile1
-rw-r--r--textproc/zxing-cpp/files/patch-core_CMakeLists.txt13
-rw-r--r--textproc/zxing-cpp/pkg-plist1
3 files changed, 15 insertions, 0 deletions
diff --git a/textproc/zxing-cpp/Makefile b/textproc/zxing-cpp/Makefile
index c6cc9da5f81e..c14a6e16f45b 100644
--- a/textproc/zxing-cpp/Makefile
+++ b/textproc/zxing-cpp/Makefile
@@ -1,6 +1,7 @@
PORTNAME= zxing-cpp
DISTVERSIONPREFIX= v
DISTVERSION= 1.4.0
+PORTREVISION= 1
CATEGORIES= textproc
MAINTAINER= kde@FreeBSD.org
diff --git a/textproc/zxing-cpp/files/patch-core_CMakeLists.txt b/textproc/zxing-cpp/files/patch-core_CMakeLists.txt
new file mode 100644
index 000000000000..e323686f7010
--- /dev/null
+++ b/textproc/zxing-cpp/files/patch-core_CMakeLists.txt
@@ -0,0 +1,13 @@
+zxing-cpp 1.4.0 startd to only install the headers to the public interface.
+Libreoffice is unfortunately depending on some internal parts.
+
+--- core/CMakeLists.txt.orig 2022-08-27 06:46:09 UTC
++++ core/CMakeLists.txt
+@@ -141,6 +141,7 @@ set (PUBLIC_HEADERS
+ # define subset of public headers that get distributed with the binaries
+ set (PUBLIC_HEADERS
+ src/BarcodeFormat.h
++ src/BitArray.h # expose private header used by Libreoffice
+ src/BitHacks.h
+ src/ByteArray.h
+ src/CharacterSet.h
diff --git a/textproc/zxing-cpp/pkg-plist b/textproc/zxing-cpp/pkg-plist
index 285d0ee69186..295a60527ac9 100644
--- a/textproc/zxing-cpp/pkg-plist
+++ b/textproc/zxing-cpp/pkg-plist
@@ -1,4 +1,5 @@
include/ZXing/BarcodeFormat.h
+include/ZXing/BitArray.h
include/ZXing/BitHacks.h
include/ZXing/BitMatrix.h
include/ZXing/BitMatrixIO.h