summaryrefslogtreecommitdiff
path: root/archivers/libdeflate
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/libdeflate')
-rw-r--r--archivers/libdeflate/Makefile10
-rw-r--r--archivers/libdeflate/distinfo6
-rw-r--r--archivers/libdeflate/files/patch-CMakeLists.txt11
3 files changed, 18 insertions, 9 deletions
diff --git a/archivers/libdeflate/Makefile b/archivers/libdeflate/Makefile
index 9aa8255c11bb..d750546706cb 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
@@ -10,16 +10,14 @@ WWW= https://github.com/ebiggers/libdeflate
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
-USES= cmake:testing pathfix
+USES= cmake:testing
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)