summaryrefslogtreecommitdiff
path: root/mk/tools
diff options
context:
space:
mode:
authorshattered <shattered@pkgsrc.org>2013-11-16 07:45:26 +0000
committershattered <shattered@pkgsrc.org>2013-11-16 07:45:26 +0000
commit7bd92bf13e6df71a0d8a2751486284ced8b1cb96 (patch)
treeae4625dae335f7c5a7fd6762f52f9783effb94ce /mk/tools
parent3462284071beee133651c29dd397767ed7f9000d (diff)
downloadpkgsrc-7bd92bf13e6df71a0d8a2751486284ced8b1cb96.tar.gz
Decompress .lz files with lzip.
Diffstat (limited to 'mk/tools')
-rw-r--r--mk/tools/replace.mk13
1 files changed, 12 insertions, 1 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index 4d9746984ba..490c311f576 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.263 2013/11/06 13:12:50 obache Exp $
+# $NetBSD: replace.mk,v 1.264 2013/11/16 07:45:26 shattered Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -584,6 +584,17 @@ TOOLS_PATH.lha= ${TOOLS_PREFIX.lha}/bin/lha
. endif
.endif
+.if !defined(TOOLS_IGNORE.lzip) && !empty(_USE_TOOLS:Mlzip)
+. if !empty(PKGPATH:Marchivers/lzip)
+MAKEFLAGS+= TOOLS_IGNORE.lzip=
+. elif !empty(_TOOLS_USE_PKGSRC.lzip:M[yY][eE][sS])
+TOOLS_DEPENDS.lzcat?= lzip>=1.14:../../archivers/lzip
+TOOLS_CREATE+= lzip
+TOOLS_FIND_PREFIX+= TOOLS_PREFIX.lzip=lzip
+TOOLS_PATH.lzip= ${TOOLS_PREFIX.lzip}/bin/lzip
+. endif
+.endif
+
.if !defined(TOOLS_IGNORE.lzcat) && !empty(_USE_TOOLS:Mlzcat)
. if !empty(PKGPATH:Marchivers/xz)
MAKEFLAGS+= TOOLS_IGNORE.lzcat=