Skip to content

Commit

Permalink
New package for libdeflate-1.10.
Browse files Browse the repository at this point in the history
This is needed for future Borgbackup versions, as described in
borgbackup/borg#6458.

libdeflate is a library for fast, whole-buffer DEFLATE-based compression and
decompression.

The supported formats are:

- DEFLATE (raw)
- zlib (a.k.a. DEFLATE with a zlib wrapper)
- gzip (a.k.a. DEFLATE with a gzip wrapper)

libdeflate is heavily optimized.  It is significantly faster than the zlib
library, both for compression and decompression, and especially on x86
processors.  In addition, libdeflate provides optional high compression modes
that provide a better compression ratio than the zlib's "level 9".

libdeflate itself is a library, but the following command-line programs which
use this library are also provided:

* gzip (or gunzip), a program which mostly behaves like the standard equivalent,
  except that it does not yet have good streaming support and therefore does not
  yet support very large files
* benchmark, a program for benchmarking in-memory compression and decompression
  • Loading branch information
bsiegert committed Mar 27, 2022
1 parent 1d0b031 commit 2a1abde
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2051,6 +2051,7 @@ SUBDIR+= libcue
SUBDIR+= libcyaml
SUBDIR+= libdbglog
SUBDIR+= libdbh2
SUBDIR+= libdeflate
SUBDIR+= libdialog
SUBDIR+= libdisasm
SUBDIR+= libdivecomputer
Expand Down
21 changes: 21 additions & 0 deletions libdeflate/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
libdeflate is a library for fast, whole-buffer DEFLATE-based compression and
decompression.

The supported formats are:

- DEFLATE (raw)
- zlib (a.k.a. DEFLATE with a zlib wrapper)
- gzip (a.k.a. DEFLATE with a gzip wrapper)

libdeflate is heavily optimized. It is significantly faster than the zlib
library, both for compression and decompression, and especially on x86
processors. In addition, libdeflate provides optional high compression modes
that provide a better compression ratio than the zlib's "level 9".

libdeflate itself is a library, but the following command-line programs which
use this library are also provided:

* gzip (or gunzip), a program which mostly behaves like the standard equivalent,
except that it does not yet have good streaming support and therefore does not
yet support very large files
* benchmark, a program for benchmarking in-memory compression and decompression
18 changes: 18 additions & 0 deletions libdeflate/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# $NetBSD$

DISTNAME= libdeflate-1.10
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=ebiggers/}
GITHUB_TAG= v${PKGVERSION_NOREV}

MAINTAINER= [email protected]
HOMEPAGE= https://github.com/ebiggers/libdeflate/
COMMENT= Optimized deflate/zlib/gzip library
LICENSE= mit

USE_TOOLS+= pkg-config
USE_TOOLS+= gmake

PKGCONFIG_OVERRIDE+= libdeflate.pc.in

.include "../../mk/bsd.pkg.mk"
8 changes: 8 additions & 0 deletions libdeflate/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@comment $NetBSD$
bin/libdeflate-gunzip
bin/libdeflate-gzip
include/libdeflate.h
lib/libdeflate.a
lib/libdeflate.so
lib/libdeflate.so.0
lib/pkgconfig/libdeflate.pc
5 changes: 5 additions & 0 deletions libdeflate/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$NetBSD$

BLAKE2s (libdeflate-1.10.tar.gz) = 5c10771369adabd3ad7c64777a8245cb9892c54b7bec091cde34f71cb6d8010b
SHA512 (libdeflate-1.10.tar.gz) = 2b59cc170c7fb3bb13bd3c6853070ea24fb9e6844dde4d08e43a8a5f8745ecbf844952390ff758070c6fc4f17d9eec8c4d2a729922bf84e2eaa9e74f1424e241
Size (libdeflate-1.10.tar.gz) = 158379 bytes

0 comments on commit 2a1abde

Please sign in to comment.