archovers/libszip: New port: Implementation of the extended-Rice lossless compression algorithm

This commit is contained in:
Yuri Victorovich 2024-10-10 07:48:30 -07:00
parent 31a5535af3
commit e5985f1450
6 changed files with 60 additions and 0 deletions

View File

@ -68,6 +68,7 @@
SUBDIR += liblzxcomp
SUBDIR += libmspack
SUBDIR += libpar2
SUBDIR += libszip
SUBDIR += libunrar
SUBDIR += libzip
SUBDIR += libzippp

View File

@ -0,0 +1,20 @@
PORTNAME= libszip
DISTVERSION= 2.1.1
CATEGORIES= archivers
MASTER_SITES= https://support.hdfgroup.org/ftp/lib-external/szip/${DISTVERSION}/src/
DISTNAME= szip-${DISTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Implementation of the extended-Rice lossless compression algorithm
WWW= https://support.hdfgroup.org/
LICENSE= SZIP
LICENSE_NAME= SZIP Copyright and License Notice
LICENSE_FILE= ${WRKSRC}/COPYING
LICENSE_PERMS= auto-accept dist-mirror pkg-mirror # scientific use only is allowed [...] in conjunction with HDF data storage and retrieval file format and software library products (HDF5)
USES= cmake:testing
CONFLICTS_INSTALL= libaec
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1728588196
SHA256 (szip-2.1.1.tar.gz) = 21ee958b4f2d4be2c9cabfa5e1a94877043609ce86fde5f286f105f7ff84d412
SIZE (szip-2.1.1.tar.gz) = 415774

View File

@ -0,0 +1,20 @@
--- CMakeLists.txt.orig 2017-02-03 19:42:43 UTC
+++ CMakeLists.txt
@@ -45,7 +45,7 @@ if (NOT SZIP_INSTALL_DATA_DIR)
set (SZIP_INSTALL_FWRK_DIR ${CMAKE_INSTALL_FRAMEWORK_PREFIX})
endif ()
set (SZIP_INSTALL_DATA_DIR share)
- set (SZIP_INSTALL_CMAKE_DIR share/cmake)
+ set (SZIP_INSTALL_CMAKE_DIR lib/cmake/szip)
else ()
set (SZIP_INSTALL_DATA_DIR ".")
set (SZIP_INSTALL_CMAKE_DIR cmake)
@@ -326,7 +326,7 @@ endif ()
#-----------------------------------------------------------------------------
# Add Document File(s) to CMake Install
#-----------------------------------------------------------------------------
-if (NOT SZIP_EXTERNALLY_CONFIGURED)
+if (FALSE AND NOT SZIP_EXTERNALLY_CONFIGURED)
install (
FILES
${SZIP_SOURCE_DIR}/COPYING

View File

@ -0,0 +1,5 @@
Szip is an implementation of the extended-Rice lossless
compression algorithm.
It provides lossless compression of scientific data, and is
provided with HDF software products.

View File

@ -0,0 +1,11 @@
include/SZconfig.h
include/ricehdf.h
include/szip_adpt.h
include/szlib.h
lib/cmake/szip/szip-config-version.cmake
lib/cmake/szip/szip-config.cmake
lib/cmake/szip/szip-targets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/szip/szip-targets.cmake
lib/libszip.a
lib/libszip.so
lib/libszip.so.2.1