diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2018-01-14 14:06:46 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2018-01-14 14:06:46 +0000 |
commit | 13cf61b21a3070ab5e1a4377c8f98440fc3f15ee (patch) | |
tree | 8718be483ed46540da76e44cfe8ccf6eefecd9eb /archivers/libdeflate | |
parent | - Fix installation broken by undefined ac_given_INSTALL in configure script. (diff) |
Add a port of libdeflate, a library for fast, whole-buffer DEFLATE-based
compression and decompression.
WWW: https://github.com/ebiggers/libdeflate
Because GitHub releases (tarballs) are not fetched with correct modification
time, set TIMESTAMP to 1501364283 which corresponds to commit 3d96a83 tagged
as this release.
Notes
Notes:
svn path=/head/; revision=458967
Diffstat (limited to 'archivers/libdeflate')
-rw-r--r-- | archivers/libdeflate/Makefile | 41 | ||||
-rw-r--r-- | archivers/libdeflate/distinfo | 3 | ||||
-rw-r--r-- | archivers/libdeflate/pkg-descr | 13 |
3 files changed, 57 insertions, 0 deletions
diff --git a/archivers/libdeflate/Makefile b/archivers/libdeflate/Makefile new file mode 100644 index 000000000000..ead3370bbdff --- /dev/null +++ b/archivers/libdeflate/Makefile @@ -0,0 +1,41 @@ +# Created by: Alexey Dokuchaev <danfe@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= libdeflate +PORTVERSION= 0.8 +DISTVERSIONPREFIX= v +CATEGORIES= archivers + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Fast, whole-buffer DEFLATE-based compression library + +LICENSE= MIT + +USES= gmake +USE_GITHUB= yes +GH_ACCOUNT= ebiggers +USE_LDCONFIG= yes + +MAKE_ARGS= V=1 + +PLIST_FILES= bin/gunzip bin/gzip \ + include/libdeflate.h \ + lib/libdeflate.a lib/libdeflate.so +PORTDOCS= NEWS README.md + +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} -e 's| -O2 -fomit-frame-pointer||' ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/gunzip ${WRKSRC}/gzip \ + ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/libdeflate.h ${STAGEDIR}${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/libdeflate.[as]* ${STAGEDIR}${PREFIX}/lib + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/archivers/libdeflate/distinfo b/archivers/libdeflate/distinfo new file mode 100644 index 000000000000..fdf4452a03f7 --- /dev/null +++ b/archivers/libdeflate/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1501364283 +SHA256 (ebiggers-libdeflate-v0.8_GH0.tar.gz) = 4b27e55226db9f47a53bc51df732c9d4aba674cf64594f9c4e253e6dae4f3688 +SIZE (ebiggers-libdeflate-v0.8_GH0.tar.gz) = 119423 diff --git a/archivers/libdeflate/pkg-descr b/archivers/libdeflate/pkg-descr new file mode 100644 index 000000000000..5ac2d0e9fc0e --- /dev/null +++ b/archivers/libdeflate/pkg-descr @@ -0,0 +1,13 @@ +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 offers optional high compression modes +that provide a better compression ratio than the zlib's "level 9". + +WWW: https://github.com/ebiggers/libdeflate |