aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2017-12-24 00:49:33 +0800
committerKoop Mast <kwm@rainbow-runner.nl>2018-02-04 06:13:05 +0800
commit0a7c965270c13bc03ff793edd1b131fc95513746 (patch)
treee72efc283695390407cdb538144a59bb0c3b2d1a /archivers
parent617724119a82acf9c6563ee0acd966cd07fb0f9a (diff)
downloadfreebsd-ports-gnome-0a7c965270c13bc03ff793edd1b131fc95513746.tar.gz
freebsd-ports-gnome-0a7c965270c13bc03ff793edd1b131fc95513746.tar.zst
freebsd-ports-gnome-0a7c965270c13bc03ff793edd1b131fc95513746.zip
Add LZ4 option
- Bump PORTREVISION for dependency and package change
Diffstat (limited to 'archivers')
-rw-r--r--archivers/zstd/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/archivers/zstd/Makefile b/archivers/zstd/Makefile
index f8d8b6220a3e..f2f8de4855ad 100644
--- a/archivers/zstd/Makefile
+++ b/archivers/zstd/Makefile
@@ -4,6 +4,7 @@
PORTNAME= zstd
PORTVERSION= 1.3.3
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= archivers
MAINTAINER= sunpoet@FreeBSD.org
@@ -14,6 +15,9 @@ LICENSE_COMB= dual
LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/LICENSE
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
+OPTIONS_DEFINE= LZ4
+OPTIONS_DEFAULT=LZ4
+
ALL_TARGET= default
MAKE_ARGS= LIBDIR="${PREFIX}/lib"
TEST_TARGET= test
@@ -25,6 +29,9 @@ PLIST_SUB= PORTVERSION=${PORTVERSION}
GH_ACCOUNT= facebook
USE_GITHUB= yes
+LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4
+LZ4_USES= localbase:ldflags
+
post-patch:
@${REINPLACE_CMD} -e 's|INSTALL_|BSD_&|' ${WRKSRC}/lib/Makefile ${WRKSRC}/programs/Makefile