diff options
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 |