aboutsummaryrefslogtreecommitdiff
path: root/archivers/liblz4
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2015-03-24 18:25:30 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2015-03-24 18:25:30 +0000
commit99db5a691362a1070a2c7f28869cdf7f7b7e7d29 (patch)
treeb1361f93cf84459547ab80bd481d6fec44bfde5b /archivers/liblz4
parentb4872adff4c2e77267a75ae0d217dc3b78836cc8 (diff)
downloadports-99db5a691362a1070a2c7f28869cdf7f7b7e7d29.tar.gz
ports-99db5a691362a1070a2c7f28869cdf7f7b7e7d29.zip
Notes
Diffstat (limited to 'archivers/liblz4')
-rw-r--r--archivers/liblz4/Makefile35
-rw-r--r--archivers/liblz4/distinfo4
-rw-r--r--archivers/liblz4/pkg-plist5
3 files changed, 19 insertions, 25 deletions
diff --git a/archivers/liblz4/Makefile b/archivers/liblz4/Makefile
index 5ea9f0421115..0b36301427f5 100644
--- a/archivers/liblz4/Makefile
+++ b/archivers/liblz4/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= lz4
-PORTVERSION= 123
+PORTVERSION= 127
CATEGORIES= archivers
PKGNAMEPREFIX= lib
@@ -16,36 +16,29 @@ 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= default liblz4.pc
-SO_VER= 1.3.1
+SO_VER= 1.5.0
+PLIST_SUB+= SO_VER=${SO_VER} SO_VER_MAJ=${SO_VER:R:R}
post-patch:
- ${REINPLACE_CMD} -e 's|kFreeBSD|& FreeBSD|' \
- ${WRKSRC}/Makefile ${WRKSRC}/programs/Makefile
+ ${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/& FreeBSD/' \
+ -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:
- ${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
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/lz4*
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblz4.so.${SO_VER}
.include <bsd.port.mk>
diff --git a/archivers/liblz4/distinfo b/archivers/liblz4/distinfo
index f10e54402f89..a768935c5ce8 100644
--- a/archivers/liblz4/distinfo
+++ b/archivers/liblz4/distinfo
@@ -1,2 +1,2 @@
-SHA256 (lz4-123.tar.gz) = 8b0f6aaeb854ee7f5fe9b07cbe83e470be4cb434c4f492aead1c7989c87af9bf
-SIZE (lz4-123.tar.gz) = 137372
+SHA256 (Cyan4973-lz4-127-r127_GH0.tar.gz) = 5209bf7a2231b41222b0cea4229700bae459b523bc13db488f0e1279405e6b43
+SIZE (Cyan4973-lz4-127-r127_GH0.tar.gz) = 139066
diff --git a/archivers/liblz4/pkg-plist b/archivers/liblz4/pkg-plist
index ccab23e0b403..d0c6522b56bd 100644
--- a/archivers/liblz4/pkg-plist
+++ b/archivers/liblz4/pkg-plist
@@ -2,11 +2,12 @@ bin/lz4
bin/lz4c
bin/lz4cat
include/lz4.h
+include/lz4frame.h
include/lz4hc.h
lib/liblz4.a
lib/liblz4.so
-lib/liblz4.so.1
-lib/liblz4.so.1.3.1
+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