svn commit: r458967 - in head/archivers: . libdeflate
Alexey Dokuchaev
danfe at FreeBSD.org
Sun Jan 14 14:06:47 UTC 2018
Author: danfe
Date: Sun Jan 14 14:06:46 2018
New Revision: 458967
URL: https://svnweb.freebsd.org/changeset/ports/458967
Log:
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.
Added:
head/archivers/libdeflate/
head/archivers/libdeflate/Makefile (contents, props changed)
head/archivers/libdeflate/distinfo (contents, props changed)
head/archivers/libdeflate/pkg-descr (contents, props changed)
Modified:
head/archivers/Makefile
Modified: head/archivers/Makefile
==============================================================================
--- head/archivers/Makefile Sun Jan 14 13:34:22 2018 (r458966)
+++ head/archivers/Makefile Sun Jan 14 14:06:46 2018 (r458967)
@@ -65,6 +65,7 @@
SUBDIR += libarchive
SUBDIR += libcabinet
SUBDIR += libcomprex
+ SUBDIR += libdeflate
SUBDIR += libdynamite
SUBDIR += liblz4
SUBDIR += liblzxcomp
Added: head/archivers/libdeflate/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/archivers/libdeflate/Makefile Sun Jan 14 14:06:46 2018 (r458967)
@@ -0,0 +1,41 @@
+# Created by: Alexey Dokuchaev <danfe at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= libdeflate
+PORTVERSION= 0.8
+DISTVERSIONPREFIX= v
+CATEGORIES= archivers
+
+MAINTAINER= danfe at 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>
Added: head/archivers/libdeflate/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/archivers/libdeflate/distinfo Sun Jan 14 14:06:46 2018 (r458967)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1501364283
+SHA256 (ebiggers-libdeflate-v0.8_GH0.tar.gz) = 4b27e55226db9f47a53bc51df732c9d4aba674cf64594f9c4e253e6dae4f3688
+SIZE (ebiggers-libdeflate-v0.8_GH0.tar.gz) = 119423
Added: head/archivers/libdeflate/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/archivers/libdeflate/pkg-descr Sun Jan 14 14:06:46 2018 (r458967)
@@ -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
More information about the svn-ports-all
mailing list