diff options
author | minskim <minskim@pkgsrc.org> | 2008-11-15 20:20:44 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2008-11-15 20:20:44 +0000 |
commit | 492b7040ee42df35ac2ec8cad5649633fca45b85 (patch) | |
tree | 321e7ba1dd4598a72f545e6784bad68ce8eef129 /mk/tools | |
parent | 46c6a587b52f2a2eb44e3e4f25221673b78e5b91 (diff) | |
download | pkgsrc-492b7040ee42df35ac2ec8cad5649633fca45b85.tar.gz |
Add lzcat to the tools framework.
lzcat will be used to decompress .lzma files.
Diffstat (limited to 'mk/tools')
-rw-r--r-- | mk/tools/defaults.mk | 3 | ||||
-rw-r--r-- | mk/tools/replace.mk | 13 |
2 files changed, 14 insertions, 2 deletions
diff --git a/mk/tools/defaults.mk b/mk/tools/defaults.mk index 7dc8e877c97..6736ccf9351 100644 --- a/mk/tools/defaults.mk +++ b/mk/tools/defaults.mk @@ -1,4 +1,4 @@ -# $NetBSD: defaults.mk,v 1.54 2007/12/18 10:18:49 markd Exp $ +# $NetBSD: defaults.mk,v 1.55 2008/11/15 20:20:44 minskim Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -103,6 +103,7 @@ _TOOLS_VARNAME.lex= LEX _TOOLS_VARNAME.lha= LHA _TOOLS_VARNAME.ln= LN _TOOLS_VARNAME.ls= LS +_TOOLS_VARNAME.lzcat= LZCAT _TOOLS_VARNAME.m4= M4 _TOOLS_VARNAME.mail= MAIL_CMD _TOOLS_VARNAME.makeinfo= MAKEINFO diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk index 30721f193e7..9fe5131f728 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.214 2008/10/08 15:38:46 joerg Exp $ +# $NetBSD: replace.mk,v 1.215 2008/11/15 20:20:44 minskim Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -557,6 +557,17 @@ TOOLS_PATH.lha= ${TOOLS_PREFIX.lha}/bin/lha . endif .endif +.if !defined(TOOLS_IGNORE.lzcat) && !empty(_USE_TOOLS:Mlzcat) +. if !empty(PKGPATH:Marchivers/lzma-utils) +MAKEFLAGS+= TOOLS_IGNORE.lzcat= +. elif !empty(_TOOLS_USE_PKGSRC.lzcat:M[yY][eE][sS]) +TOOLS_DEPENDS.lzcat?= lzma-utils>=4.32.7:../../archivers/lzma-utils +TOOLS_CREATE+= lzcat +TOOLS_FIND_PREFIX+= TOOLS_PREFIX.lzcat=lzcat +TOOLS_PATH.lzcat= ${TOOLS_PREFIX.lzcat}/bin/lzcat +. endif +.endif + .if !defined(TOOLS_IGNORE.m4) && !empty(_USE_TOOLS:Mm4) . if !empty(PKGPATH:Mdevel/m4) MAKEFLAGS+= TOOLS_IGNORE.m4= |