aboutsummaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorRichard Gallamore <ultima@FreeBSD.org>2017-08-09 00:44:05 +0000
committerRichard Gallamore <ultima@FreeBSD.org>2017-08-09 00:44:05 +0000
commit35759a160f76a486bd5e7fe4872d031d78fb58e8 (patch)
treea33e90e03faebbb9b2bed5a5cae5eb35edae0ce1 /archivers
parent7dc796e8cfc1d829608e84d11e648080a69b5c17 (diff)
Blosc is a high performance compressor optimized for binary data.
It has been designed to transmit data to the processor cache faster than the traditional, non-compressed, direct memory fetch approach via a memcpy() OS call. Blosc is the first compressor (that I'm aware of) that is meant not only to reduce the size of large datasets on-disk or in-memory, but also to accelerate memory-bound computations. WWW: http://blosc.org/ PR: 220908 Submitted by: Iblis Lin (maintainer) Reviewed by: matthew (mentor), mat Approved by: matthew (mentor) Differential Revision: https://reviews.freebsd.org/D11889
Notes
Notes: svn path=/head/; revision=447585
Diffstat (limited to 'archivers')
-rw-r--r--archivers/Makefile1
-rw-r--r--archivers/c-blosc/Makefile56
-rw-r--r--archivers/c-blosc/distinfo3
-rw-r--r--archivers/c-blosc/pkg-descr8
-rw-r--r--archivers/c-blosc/pkg-plist7
5 files changed, 75 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile
index 380077caac4b..a42d0c69c97f 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -14,6 +14,7 @@
SUBDIR += brotli
SUBDIR += bzip
SUBDIR += bzip2
+ SUBDIR += c-blosc
SUBDIR += cabextract
SUBDIR += dact
SUBDIR += deb2targz
diff --git a/archivers/c-blosc/Makefile b/archivers/c-blosc/Makefile
new file mode 100644
index 000000000000..69a277f56693
--- /dev/null
+++ b/archivers/c-blosc/Makefile
@@ -0,0 +1,56 @@
+# Created by: iblis <iblis@hs.ntnu.edu.tw>
+# $FreeBSD$
+
+PORTNAME= c-blosc
+PORTVERSION= 1.12.1
+DISTVERSIONPREFIX= v
+CATEGORIES= archivers devel
+
+MAINTAINER= iblis@hs.ntnu.edu.tw
+COMMENT= Blocking, shuffling and loss-less compression library
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSES/BLOSC.txt
+
+USES= cmake compiler:c11
+USE_CSTD= c11
+USE_LDCONFIG= yes
+
+USE_GITHUB= yes
+GH_ACCOUNT= Blosc
+
+TEST_TARGET= test
+
+PLIST_SUB= VERSION="${PORTVERSION:R:R}" \
+ SOVERSION="${PORTVERSION}"
+
+CMAKE_ARGS= -DBUILD_SHARED=ON
+
+OPTIONS_DEFINE= STATIC TEST AVX2 LZ4 SNAPPY ZLIB ZSTD
+OPTIONS_DEFAULT= STATIC LZ4 SNAPPY ZLIB ZSTD
+OPTIONS_SUB= yes
+
+AVX2_DESC= Attempt to build with AVX2 instructions
+
+AVX2_CMAKE_BOOL_OFF= DEACTIVATE_AVX2
+
+LZ4_CMAKE_ON= -DPREFER_EXTERNAL_LZ4=ON
+LZ4_CMAKE_BOOL_OFF= DEACTIVATE_LZ4
+LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4
+
+SNAPPY_CMAKE_ON= -DPREFER_EXTERNAL_SNAPPY=ON
+SNAPPY_CMAKE_BOOL_OFF= DEACTIVATE_SNAPPY
+SNAPPY_LIB_DEPENDS= libsnappy.so:archivers/snappy
+
+STATIC_CMAKE_BOOL= BUILD_STATIC
+
+TEST_CMAKE_BOOL= BUILD_TESTS BUILD_BENCHMARKS
+
+ZLIB_CMAKE_ON= -DPREFER_EXTERNAL_ZLIB=ON
+ZLIB_CMAKE_BOOL_OFF= DEACTIVATE_ZLIB
+
+ZSTD_CMAKE_ON= -DPREFER_EXTERNAL_ZSTD=ON
+ZSTD_CMAKE_BOOL_OFF= DEACTIVATE_ZSTD
+ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd
+
+.include <bsd.port.mk>
diff --git a/archivers/c-blosc/distinfo b/archivers/c-blosc/distinfo
new file mode 100644
index 000000000000..bfe1d1561298
--- /dev/null
+++ b/archivers/c-blosc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1500619085
+SHA256 (Blosc-c-blosc-v1.12.1_GH0.tar.gz) = e04535e816bb942bedc9a0ba209944d1eb34e26e2d9cca37f114e8ee292cb3c8
+SIZE (Blosc-c-blosc-v1.12.1_GH0.tar.gz) = 683510
diff --git a/archivers/c-blosc/pkg-descr b/archivers/c-blosc/pkg-descr
new file mode 100644
index 000000000000..e22feaf36e52
--- /dev/null
+++ b/archivers/c-blosc/pkg-descr
@@ -0,0 +1,8 @@
+Blosc is a high performance compressor optimized for binary data.
+It has been designed to transmit data to the processor cache faster
+than the traditional, non-compressed, direct memory fetch approach
+via a memcpy() OS call. Blosc is the first compressor (that I'm aware of)
+that is meant not only to reduce the size of large datasets on-disk or
+in-memory, but also to accelerate memory-bound computations.
+
+WWW: http://blosc.org/
diff --git a/archivers/c-blosc/pkg-plist b/archivers/c-blosc/pkg-plist
new file mode 100644
index 000000000000..6c2d35da995c
--- /dev/null
+++ b/archivers/c-blosc/pkg-plist
@@ -0,0 +1,7 @@
+include/blosc-export.h
+include/blosc.h
+%%STATIC%%lib/libblosc.a
+lib/libblosc.so
+lib/libblosc.so.%%VERSION%%
+lib/libblosc.so.%%SOVERSION%%
+libdata/pkgconfig/blosc.pc