git: a643a515f8f0 - main - archivers/libdeflate: Update to 1.24
Date: Sat, 31 May 2025 10:36:58 UTC
The branch main has been updated by diizzy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a643a515f8f0e6387ac4846270a606ee6e7fb26c
commit a643a515f8f0e6387ac4846270a606ee6e7fb26c
Author: Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-05-31 06:41:19 +0000
Commit: Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-05-31 10:36:02 +0000
archivers/libdeflate: Update to 1.24
Changelog: https://github.com/ebiggers/libdeflate/blob/v1.24/NEWS.md
PR: 283589
Approved by: maintainer timeout, 1+ month
---
archivers/libdeflate/Makefile | 8 +++-----
archivers/libdeflate/distinfo | 6 +++---
archivers/libdeflate/files/patch-CMakeLists.txt | 11 +++++++++++
3 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/archivers/libdeflate/Makefile b/archivers/libdeflate/Makefile
index 9aa8255c11bb..2cee386bf04b 100644
--- a/archivers/libdeflate/Makefile
+++ b/archivers/libdeflate/Makefile
@@ -1,7 +1,7 @@
PORTNAME= libdeflate
-PORTVERSION= 1.22
+DISTVERSION= 1.24
CATEGORIES= archivers
-MASTER_SITES= https://github.com/ebiggers/${PORTNAME}/releases/download/v${PORTVERSION}/
+MASTER_SITES= https://github.com/ebiggers/${PORTNAME}/releases/download/v${DISTVERSION}/
MAINTAINER= danfe@FreeBSD.org
COMMENT= Fast, whole-buffer DEFLATE-based compression library
@@ -12,14 +12,12 @@ LICENSE_FILE= ${WRKSRC}/COPYING
USES= cmake:testing pathfix
USE_LDCONFIG= yes
+
CMAKE_ON= LIBDEFLATE_USE_SHARED_LIB
CMAKE_TESTING_ON= LIBDEFLATE_BUILD_TESTS
OPTIONS_DEFINE= DOCS
-post-patch:
- @${REINPLACE_CMD} -e '/-O2 -DNDEBUG/d' ${WRKSRC}/CMakeLists.txt
-
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.md ${STAGEDIR}${DOCSDIR}
diff --git a/archivers/libdeflate/distinfo b/archivers/libdeflate/distinfo
index 1c3baa50d2aa..748d9fc7216e 100644
--- a/archivers/libdeflate/distinfo
+++ b/archivers/libdeflate/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1728158443
-SHA256 (libdeflate-1.22.tar.gz) = 7834d9adbc9a809e0fb0d7b486060a9ae5f7819eb7f55bb8c22b10d7b3bed8da
-SIZE (libdeflate-1.22.tar.gz) = 186676
+TIMESTAMP = 1748644315
+SHA256 (libdeflate-1.24.tar.gz) = a0dda1c4b804742066db07b9510876edd09cc0ca06cdc32c5dfe1b2016a26463
+SIZE (libdeflate-1.24.tar.gz) = 186668
diff --git a/archivers/libdeflate/files/patch-CMakeLists.txt b/archivers/libdeflate/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..b3a936908b33
--- /dev/null
+++ b/archivers/libdeflate/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig 2024-12-11 06:30:24 UTC
++++ CMakeLists.txt
+@@ -61,7 +61,7 @@ endif()
+ endif()
+
+ # Set common C compiler flags for all targets (the library and the programs).
+-set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG")
++# set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG")
+ set(CMAKE_C_STANDARD 99)
+ if(NOT MSVC)
+ check_c_compiler_flag(-Wdeclaration-after-statement HAVE_WDECLARATION_AFTER_STATEMENT)