[Midnightbsd-cvs] mports [21897] trunk/archivers: add liblz4 compression

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Sep 14 08:08:13 EDT 2016


Revision: 21897
          http://svnweb.midnightbsd.org/mports/?rev=21897
Author:   laffer1
Date:     2016-09-14 08:08:13 -0400 (Wed, 14 Sep 2016)
Log Message:
-----------
add liblz4 compression

Modified Paths:
--------------
    trunk/archivers/Makefile

Added Paths:
-----------
    trunk/archivers/liblz4/
    trunk/archivers/liblz4/Makefile
    trunk/archivers/liblz4/distinfo
    trunk/archivers/liblz4/pkg-descr
    trunk/archivers/liblz4/pkg-plist

Modified: trunk/archivers/Makefile
===================================================================
--- trunk/archivers/Makefile	2016-09-11 14:03:32 UTC (rev 21896)
+++ trunk/archivers/Makefile	2016-09-14 12:08:13 UTC (rev 21897)
@@ -18,6 +18,7 @@
 SUBDIR += lha
 SUBDIR += lha-ac
 SUBDIR += libarchive
+SUBDIR += liblz4
 SUBDIR += libmspack
 SUBDIR += libunrar
 SUBDIR += libzip

Added: trunk/archivers/liblz4/Makefile
===================================================================
--- trunk/archivers/liblz4/Makefile	                        (rev 0)
+++ trunk/archivers/liblz4/Makefile	2016-09-14 12:08:13 UTC (rev 21897)
@@ -0,0 +1,46 @@
+# $MidnightBSD$
+
+PORTNAME=	lz4
+PORTVERSION=	131
+DISTVERSIONPREFIX=	r
+CATEGORIES=	archivers
+PKGNAMEPREFIX=	lib
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	LZ4 compression library, lossless and very fast
+
+LICENSE=	bsd2 gpl2
+LICENSE_COMB=	multi
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Cyan4973
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSIONPREFIX}${PORTVERSION}
+
+USES=		gmake pkgconfig
+USE_LDCONFIG=	yes
+
+ALL_TARGET=	default		# don't remove this
+SO_VER=		1.7.1
+PLIST_SUB+=	SO_VER=${SO_VER} SO_VER_MAJ=${SO_VER:R:R}
+
+post-patch:
+	@${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} \
+		-e 's/LIBDIR?=/LOCALLIBDIR=/; s/$$(LIBDIR)/$$(LOCALLIBDIR)/g' \
+		-e 's|$$(LOCALLIBDIR)/pkgconfig|$$(PREFIX)/libdata/pkgconfig|' \
+		-e '/^MANDIR :=/s|share/||' \
+		-e 's/kFreeBSD/& MidnightBSD/' \
+		-e 's|$$(MAKE)|${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS}|'
+	@${REINPLACE_CMD} -e '/^all:/s/$$/ liblz4.pc/' \
+		${WRKSRC}/lib/Makefile
+	@${REINPLACE_CMD} -e '/^all:/s|fullbench.*||' \
+		${WRKSRC}/programs/Makefile
+
+do-install:
+	cd ${WRKSRC} && ${FAKE_MAKEENV} ${MAKE_CMD} install
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/lz4*
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblz4.so.${SO_VER}
+
+.include <bsd.port.mk>


Property changes on: trunk/archivers/liblz4/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/archivers/liblz4/distinfo
===================================================================
--- trunk/archivers/liblz4/distinfo	                        (rev 0)
+++ trunk/archivers/liblz4/distinfo	2016-09-14 12:08:13 UTC (rev 21897)
@@ -0,0 +1,2 @@
+SHA256 (lz4-r131_GH0.tar.gz) = 9d4d00614d6b9dec3114b33d1224b6262b99ace24434c53487a0c8fd0b18cfed
+SIZE (lz4-r131_GH0.tar.gz) = 133784


Property changes on: trunk/archivers/liblz4/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/archivers/liblz4/pkg-descr
===================================================================
--- trunk/archivers/liblz4/pkg-descr	                        (rev 0)
+++ trunk/archivers/liblz4/pkg-descr	2016-09-14 12:08:13 UTC (rev 21897)
@@ -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: http://www.lz4.info/


Property changes on: trunk/archivers/liblz4/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/archivers/liblz4/pkg-plist
===================================================================
--- trunk/archivers/liblz4/pkg-plist	                        (rev 0)
+++ trunk/archivers/liblz4/pkg-plist	2016-09-14 12:08:13 UTC (rev 21897)
@@ -0,0 +1,16 @@
+bin/lz4
+bin/lz4c
+bin/lz4cat
+bin/unlz4
+include/lz4.h
+include/lz4frame.h
+include/lz4hc.h
+lib/liblz4.a
+lib/liblz4.so
+lib/liblz4.so.%%SO_VER_MAJ%%
+lib/liblz4.so.%%SO_VER%%
+libdata/pkgconfig/liblz4.pc
+man/man1/lz4.1.gz
+man/man1/lz4c.1.gz
+man/man1/lz4cat.1.gz
+man/man1/unlz4.1.gz


Property changes on: trunk/archivers/liblz4/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list