Skip to content

Commit

Permalink
archivers/liblz4: Use upstream release tarball
Browse files Browse the repository at this point in the history
- Update WWW
- Use complete arguments/options
- Simplify SHEBANG_FILES
- Update pkg-descr
  • Loading branch information
sunpoet committed Sep 30, 2023
1 parent 27df455 commit 03214da
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 20 deletions.
26 changes: 16 additions & 10 deletions archivers/liblz4/Makefile
@@ -1,30 +1,36 @@
PORTNAME= lz4
DISTVERSIONPREFIX= v
DISTVERSION= 1.9.4
PORTVERSION= 1.9.4
PORTEPOCH= 1
CATEGORIES= archivers
MASTER_SITES= https://github.com/lz4/lz4/releases/download/v${PORTVERSION}/
PKGNAMEPREFIX= lib

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= LZ4 compression library, lossless and very fast
WWW= https://lz4.github.io/lz4/
WWW= https://lz4.org/ \
https://github.com/lz4/lz4

LICENSE= BSD2CLAUSE GPLv2
LICENSE_COMB= multi

USES= cpe meson pkgconfig python:build shebangfix
USE_GITHUB= yes

MESON_ARGS= --default-library=both \
-Dcontrib=false \
-Dexamples=false \
-Dmemory-usage=0 \
-Dprograms=true \
-Dunstable=false
USE_LDCONFIG= yes
CPE_VENDOR= lz4_project
WRKSRC_SUBDIR= contrib/meson

SHEBANG_FILES= meson/*.py \
${WRKDIR}/${PORTNAME}-${DISTVERSION}/tests/*.py
PLIST_SUB= PORTVERSION=${PORTVERSION}

MESON_ARGS= -Ddefault_library=both -Dprograms=true
CPE_VENDOR= lz4_project

WRKSRC_SUBDIR= contrib/meson
PORTSCOUT= limit:^[0-9]*\.

PLIST_SUB= PORTVERSION=${PORTVERSION}
SHEBANG_FILES= ../../tests/*.py meson/*.py

OPTIONS_DEFINE= TEST

Expand Down
6 changes: 3 additions & 3 deletions archivers/liblz4/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1661592056
SHA256 (lz4-lz4-v1.9.4_GH0.tar.gz) = 0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b
SIZE (lz4-lz4-v1.9.4_GH0.tar.gz) = 354063
TIMESTAMP = 1696103937
SHA256 (lz4-1.9.4.tar.gz) = 0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b
SIZE (lz4-1.9.4.tar.gz) = 354063
19 changes: 12 additions & 7 deletions archivers/liblz4/pkg-descr
@@ -1,9 +1,14 @@
LZ4 is a very fast lossless compression algorithm, providing compression speed
at 400 MB/s per core, scalable with multi-cores CPU. It also features an
extremely fast decoder, with speed in multiple GB/s per core, typically
reaching RAM speed limits on multi-core systems.
LZ4 is lossless compression algorithm, providing compression speed > 500 MB/s
per core, scalable with multi-cores CPU. It features an extremely fast decoder,
with speed in multiple GB/s per core, typically reaching RAM speed limits on
multi-core systems.

A high compression derivative, called LZ4_HC, is also provided. It trades CPU
time for compression ratio.
Speed can be tuned dynamically, selecting an "acceleration" factor which trades
compression ratio for faster speed. On the other end, a high compression
derivative, LZ4_HC, is also provided, trading CPU time for improved compression
ratio. All versions feature the same decompression speed.

The libraries are BSD licensed, and the binaries are GPLv2.
LZ4 is also compatible with dictionary compression, both at API and CLI levels.
It can ingest any input file as dictionary, though only the final 64KB are used.
This capability can be combined with the Zstandard Dictionary Builder, in order
to drastically improve compression performance on small files.

0 comments on commit 03214da

Please sign in to comment.