- Use WRKSRC instead of BUILD_WRKSRC
- Use SUB_FILES/SUB_LIST instead of a bunch of REINPLACE_CMD
- Use FILESDIR instead of PATCHDIR
- Clean up files/*:
- Remove unnecessary file: zstdConfig.cmake is already in the source tarball
- Rename patch file: Remove unnecessary .in suffix
- Use upstream's short test for "make test"
- Use verbose output by default during build
* Tweak Makefile to follow Porters Handbook more closely
* Install CMake files (taken from CMake build framework)
PR: 267652
Reported by: fluffy
Approved by: portmgr (maintainer timeout, 1+ month)
- Use BINARY_ALIAS and remove TEST_DEPENDS: md5sum from base system works fine
- Remove TEST option
- Bump PORTREVISION for package change
from README.md [1]:
make is the officially maintained build system of this project. All other build
systems are "compatible" and 3rd-party maintained, they may feature small
differences in advanced options. When your system allows it, prefer using make
to build zstd and libzstd.
Reference: https://github.com/facebook/zstd/blob/dev/README.md#build-instructions [1]
- Use upstream release tarball
- Add OPTIMIZED_CFLAGS and TEST options
- Remove valgrind test
- Bump PORTREVISION for package change
PR: 247100
Submitted by: Daniel Engberg <daniel.engberg.lists@pyret.net>
The copyright of zstd has been transferred to Facebook as part of this
v1.0 release. It also comes with a patent grant and a new public
streaming API (previously the API was in flux and only available on
static builds).
Zstd, short for Zstandard, is a real-time compression algorithm providing
high compression ratios. It offers a very wide range of compression vs.
speed trade-offs while being backed by a very fast decoder. It offers
a special mode for small data called "dictionary compression" and it can
create dictionaries from any sample set. Zstd is BSD-licensed.
Using Izbench on the Silesia compression corpus, zstd ranked at the
top with a compression ratio of 2.877, a compression rate of 325 Mb/s,
and a decompression rate of 325. Zlib followed at 2.730, 95 Mb/s (C)
and 360 Mb/s (D). See WWW page for the full benchmark results.