From c2ca75825177d46a0ec16b251e7f7fdf8f425cec Mon Sep 17 00:00:00 2001 From: vanilla Date: Sat, 17 Aug 2013 02:24:38 +0000 Subject: Add lz4 r101, fast compressor using LZ4 algorithm. PR: ports/181287 Submitted by: Alexey Degtyarev --- archivers/Makefile | 1 + archivers/lz4/Makefile | 21 +++++++++++++++++++++ archivers/lz4/distinfo | 2 ++ archivers/lz4/files/patch-Makefile | 10 ++++++++++ archivers/lz4/patch-Makefile | 18 ++++++++++++++++++ archivers/lz4/pkg-descr | 6 ++++++ 6 files changed, 58 insertions(+) create mode 100644 archivers/lz4/Makefile create mode 100644 archivers/lz4/distinfo create mode 100644 archivers/lz4/files/patch-Makefile create mode 100644 archivers/lz4/patch-Makefile create mode 100644 archivers/lz4/pkg-descr (limited to 'archivers') diff --git a/archivers/Makefile b/archivers/Makefile index 18769dbd21ba..eee4428061bd 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -70,6 +70,7 @@ SUBDIR += linux-f10-ucl SUBDIR += linux-f10-upx SUBDIR += lrzip + SUBDIR += lz4 SUBDIR += lzip SUBDIR += lzlib SUBDIR += lzma diff --git a/archivers/lz4/Makefile b/archivers/lz4/Makefile new file mode 100644 index 000000000000..a5adb55bc974 --- /dev/null +++ b/archivers/lz4/Makefile @@ -0,0 +1,21 @@ +# Created by: Alexey Degtyarev +# $FreeBSD$ + +PORTNAME= lz4 +PORTVERSION= r101 +CATEGORIES= archivers +MASTER_SITES= https://dl.dropboxusercontent.com/u/59565338/LZ4/ \ + ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/ + +MAINTAINER= alexey@renatasystems.org +COMMENT= Fast compressor using LZ4 algorithm + +USES= gmake +ALL_TARGET= lz4c + +PLIST_FILES= bin/lz4c + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/lz4c.exe ${PREFIX}/bin/lz4c + +.include diff --git a/archivers/lz4/distinfo b/archivers/lz4/distinfo new file mode 100644 index 000000000000..976663535fa2 --- /dev/null +++ b/archivers/lz4/distinfo @@ -0,0 +1,2 @@ +SHA256 (lz4-r101.tar.gz) = db645ba773002b40394875779d35c447450fcf0c459968a0776899f0c7d1435c +SIZE (lz4-r101.tar.gz) = 128678 diff --git a/archivers/lz4/files/patch-Makefile b/archivers/lz4/files/patch-Makefile new file mode 100644 index 000000000000..522ae207f896 --- /dev/null +++ b/archivers/lz4/files/patch-Makefile @@ -0,0 +1,10 @@ +--- Makefile.orig 2013-08-17 10:13:57.000000000 +0800 ++++ Makefile 2013-08-17 10:14:10.000000000 +0800 +@@ -1,5 +1,5 @@ +-CC=gcc +-CFLAGS=-I. -std=c99 -Wall -W -Wundef -Wno-implicit-function-declaration ++CC:=$(CC) ++CFLAGS:=-I. -std=c99 -Wall -W -Wundef -Wno-implicit-function-declaration + + OS := $(shell uname) + ifeq ($(OS),Linux) diff --git a/archivers/lz4/patch-Makefile b/archivers/lz4/patch-Makefile new file mode 100644 index 000000000000..cd2fbd6e7834 --- /dev/null +++ b/archivers/lz4/patch-Makefile @@ -0,0 +1,18 @@ +--- Makefile.orig 2013-08-08 02:43:06.000000000 +0800 ++++ Makefile 2013-08-17 10:11:19.000000000 +0800 +@@ -1,12 +1,7 @@ +-CC=gcc +-CFLAGS=-I. -std=c99 -Wall -W -Wundef -Wno-implicit-function-declaration ++CC:=$(CC) ++CFLAGS+=-I. -std=c99 -Wall -W -Wundef -Wno-implicit-function-declaration + +-OS := $(shell uname) +-ifeq ($(OS),Linux) +-EXT = +-else +-EXT =.exe +-endif ++EXT= + + default: lz4c + diff --git a/archivers/lz4/pkg-descr b/archivers/lz4/pkg-descr new file mode 100644 index 000000000000..b53ee523f3b8 --- /dev/null +++ b/archivers/lz4/pkg-descr @@ -0,0 +1,6 @@ +LZ4 is a very fast lossless compression algorithm, providing compression speed +at 300 MB/s per core, scalable with multi-cores CPU. It also features an +extremely fast decoder, with speed in GB/s per core, typically reaching RAM +speed limits on multi-core systems. + +WWW: https://code.google.com/p/lz4/ -- cgit