git: 36410c47b86f - main - graphics/lerc: Update to 4.0.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 27 Aug 2022 10:31:11 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=36410c47b86fc98a7618983e30cd9dd848b4c9cb commit 36410c47b86fc98a7618983e30cd9dd848b4c9cb Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-08-27 10:23:34 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-08-27 10:23:34 +0000 graphics/lerc: Update to 4.0.0 Changes: https://github.com/Esri/lerc/releases https://github.com/Esri/lerc/blob/master/CHANGELOG.md --- graphics/lerc/Makefile | 7 +++++-- graphics/lerc/distinfo | 6 +++--- graphics/lerc/files/patch-_assert | 26 ++++++++++++++++++++++++++ graphics/lerc/pkg-plist | 2 ++ 4 files changed, 36 insertions(+), 5 deletions(-) diff --git a/graphics/lerc/Makefile b/graphics/lerc/Makefile index e51b87d4b0ae..2cbeef92911d 100644 --- a/graphics/lerc/Makefile +++ b/graphics/lerc/Makefile @@ -1,5 +1,5 @@ PORTNAME= lerc -PORTVERSION= 3.0 +PORTVERSION= 4.0.0 DISTVERSIONPREFIX= v CATEGORIES= graphics @@ -9,7 +9,10 @@ COMMENT= C++ library for Limited Error Raster Compression LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= cmake +USES= cmake compiler:c++17-lang dos2unix + +CMAKE_ON= BUILD_SHARED_LIBS +USE_LDCONFIG= yes GH_ACCOUNT= Esri USE_GITHUB= yes diff --git a/graphics/lerc/distinfo b/graphics/lerc/distinfo index 6153fe0282db..a6403d8096da 100644 --- a/graphics/lerc/distinfo +++ b/graphics/lerc/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1628103042 -SHA256 (Esri-lerc-v3.0_GH0.tar.gz) = 8c0148f5c22d823eff7b2c999b0781f8095e49a7d3195f13c68c5541dd5740a1 -SIZE (Esri-lerc-v3.0_GH0.tar.gz) = 4357957 +TIMESTAMP = 1660576720 +SHA256 (Esri-lerc-v4.0.0_GH0.tar.gz) = 91431c2b16d0e3de6cbaea188603359f87caed08259a645fd5a3805784ee30a0 +SIZE (Esri-lerc-v4.0.0_GH0.tar.gz) = 4710408 diff --git a/graphics/lerc/files/patch-_assert b/graphics/lerc/files/patch-_assert new file mode 100644 index 000000000000..307e2562b2b4 --- /dev/null +++ b/graphics/lerc/files/patch-_assert @@ -0,0 +1,26 @@ +--- src/LercLib/fpl_EsriHuffman.cpp.orig 2022-07-31 08:46:15 UTC ++++ src/LercLib/fpl_EsriHuffman.cpp +@@ -31,8 +31,6 @@ Original coding 2021 Yuriy Yakimenko + + USING_NAMESPACE_LERC + +-void _assert(bool v); +- + bool decodePackBits (const unsigned char *ptr, const size_t size, size_t expected, unsigned char **output) + { + unsigned char *out = NULL; +--- src/LercLib/fpl_Lerc2Ext.cpp.orig 2022-07-31 08:46:15 UTC ++++ src/LercLib/fpl_Lerc2Ext.cpp +@@ -31,12 +31,6 @@ Original coding 2021 Yuriy Yakimenko + + USING_NAMESPACE_LERC + +-void _assert(bool v) +-{ +- if (v == false) +- throw "Assertion failed"; +-} +- + template<typename T> + size_t getMinIndex(const T* array, size_t size) + { diff --git a/graphics/lerc/pkg-plist b/graphics/lerc/pkg-plist index 4e0b4d5a3147..f5ff8530892d 100644 --- a/graphics/lerc/pkg-plist +++ b/graphics/lerc/pkg-plist @@ -1,3 +1,5 @@ include/Lerc_c_api.h include/Lerc_types.h lib/libLerc.so +lib/libLerc.so.4 +libdata/pkgconfig/Lerc.pc