Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Oct 2014 00:14:06 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r371493 - in head/archivers: . liblz4 lz4
Message-ID:  <201410260014.s9Q0E6hI011390@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Sun Oct 26 00:14:05 2014
New Revision: 371493
URL: https://svnweb.freebsd.org/changeset/ports/371493
QAT: https://qat.redports.org/buildarchive/r371493/

Log:
  Add archivers/liblz4. There is already archivers/lz4, which it looks
  like might be an old version of this, but it only installs a binary.
  This installs binaries and libraries/headers.
  
  LZ4 is a very fast lossless compression algorithm, providing compression speed
  at 400 MB/s per core, scalable with multi-cores CPU. It also features an
  extremely fast decoder, with speed in multiple GB/s per core, typically
  reaching RAM speed limits on multi-core systems.
  
  A high compression derivative, called LZ4_HC, is also provided. It trades CPU
  time for compression ratio.
  
  The libraries are BSD licensed, and the binaries are GPLv2.
  
  WWW: https://code.google.com/p/lz4/

Added:
  head/archivers/liblz4/
  head/archivers/liblz4/Makefile   (contents, props changed)
  head/archivers/liblz4/distinfo   (contents, props changed)
  head/archivers/liblz4/pkg-descr   (contents, props changed)
  head/archivers/liblz4/pkg-plist   (contents, props changed)
Modified:
  head/archivers/Makefile
  head/archivers/lz4/Makefile

Modified: head/archivers/Makefile
==============================================================================
--- head/archivers/Makefile	Sat Oct 25 23:04:53 2014	(r371492)
+++ head/archivers/Makefile	Sun Oct 26 00:14:05 2014	(r371493)
@@ -58,6 +58,7 @@
     SUBDIR += libcabinet
     SUBDIR += libcomprex
     SUBDIR += libdynamite
+    SUBDIR += liblz4
     SUBDIR += liblzxcomp
     SUBDIR += libmspack
     SUBDIR += liborange

Added: head/archivers/liblz4/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/archivers/liblz4/Makefile	Sun Oct 26 00:14:05 2014	(r371493)
@@ -0,0 +1,51 @@
+# Created by: adamw
+# $FreeBSD$
+
+PORTNAME=	lz4
+PORTVERSION=	123
+CATEGORIES=	archivers
+PKGNAMEPREFIX=	lib
+
+MAINTAINER=	adamw@FreeBSD.org
+COMMENT=	LZ4 compression library, lossless and very fast
+
+LICENSE=	BSD2CLAUSE GPLv2
+LICENSE_COMB=	multi
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Cyan4973
+GH_PROJECT=	lz4
+GH_TAGNAME=	r${PORTVERSION}
+GH_COMMIT=	c0054ca
+
+CONFLICTS=	lz4-*
+
+USES=		gmake pkgconfig
+USE_LDCONFIG=	yes
+
+ALL_TARGET=	all liblz4 liblz4.pc
+SO_VER=		1.3.1
+
+post-patch:
+	${REINPLACE_CMD} -e 's|kFreeBSD|& FreeBSD|' \
+		${WRKSRC}/Makefile ${WRKSRC}/programs/Makefile
+	${REINPLACE_CMD} -e '/^all:/s|fullbench.*||' \
+		${WRKSRC}/programs/Makefile
+
+do-install:
+	${INSTALL_LIB} ${WRKSRC}/liblz4.so.${SO_VER} ${STAGEDIR}${PREFIX}/lib
+	${LN} -sf liblz4.so.${SO_VER} ${STAGEDIR}${PREFIX}/lib/liblz4.so.${SO_VER:R:R}
+	${LN} -sf liblz4.so.${SO_VER:R:R} ${STAGEDIR}${PREFIX}/lib/liblz4.so
+	${INSTALL_LIB} ${WRKSRC}/liblz4.a ${STAGEDIR}${PREFIX}/lib
+
+	${INSTALL_DATA} ${WRKSRC}/liblz4.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
+	${INSTALL_DATA} ${WRKSRC}/lz4.h ${WRKSRC}/lz4hc.h ${STAGEDIR}${PREFIX}/include
+
+	${INSTALL_PROGRAM} ${WRKSRC}/programs/lz4 ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/programs/lz4c ${STAGEDIR}${PREFIX}/bin
+	${LN} -sf lz4 ${STAGEDIR}${PREFIX}/bin/lz4cat
+	${INSTALL_MAN} ${WRKSRC}/programs/lz4.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/programs/lz4c.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/programs/lz4cat.1 ${STAGEDIR}${MANPREFIX}/man/man1
+
+.include <bsd.port.mk>

Added: head/archivers/liblz4/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/archivers/liblz4/distinfo	Sun Oct 26 00:14:05 2014	(r371493)
@@ -0,0 +1,2 @@
+SHA256 (lz4-123.tar.gz) = 8b0f6aaeb854ee7f5fe9b07cbe83e470be4cb434c4f492aead1c7989c87af9bf
+SIZE (lz4-123.tar.gz) = 137372

Added: head/archivers/liblz4/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/archivers/liblz4/pkg-descr	Sun Oct 26 00:14:05 2014	(r371493)
@@ -0,0 +1,11 @@
+LZ4 is a very fast lossless compression algorithm, providing compression speed
+at 400 MB/s per core, scalable with multi-cores CPU. It also features an
+extremely fast decoder, with speed in multiple GB/s per core, typically
+reaching RAM speed limits on multi-core systems. 
+
+A high compression derivative, called LZ4_HC, is also provided. It trades CPU
+time for compression ratio. 
+
+The libraries are BSD licensed, and the binaries are GPLv2.
+
+WWW: https://code.google.com/p/lz4/

Added: head/archivers/liblz4/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/archivers/liblz4/pkg-plist	Sun Oct 26 00:14:05 2014	(r371493)
@@ -0,0 +1,13 @@
+bin/lz4
+bin/lz4c
+bin/lz4cat
+include/lz4.h
+include/lz4hc.h
+lib/liblz4.a
+lib/liblz4.so
+lib/liblz4.so.1
+lib/liblz4.so.1.3.1
+libdata/pkgconfig/liblz4.pc
+man/man1/lz4.1.gz
+man/man1/lz4c.1.gz
+man/man1/lz4cat.1.gz

Modified: head/archivers/lz4/Makefile
==============================================================================
--- head/archivers/lz4/Makefile	Sat Oct 25 23:04:53 2014	(r371492)
+++ head/archivers/lz4/Makefile	Sun Oct 26 00:14:05 2014	(r371493)
@@ -13,6 +13,8 @@ COMMENT=	Fast compressor using LZ4 algor
 USES=		gmake
 ALL_TARGET=	lz4c
 
+CONFLICTS=	liblz4-*
+
 PLIST_FILES=	bin/lz4c
 
 do-install:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410260014.s9Q0E6hI011390>