pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/tools Add lzcat to the tools framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/41c6ece2a692
branches:  trunk
changeset: 550142:41c6ece2a692
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sat Nov 15 20:20:44 2008 +0000

description:
Add lzcat to the tools framework.

lzcat will be used to decompress .lzma files.

diffstat:

 mk/tools/defaults.mk |   3 ++-
 mk/tools/replace.mk  |  13 ++++++++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r c4182bae10e5 -r 41c6ece2a692 mk/tools/defaults.mk
--- a/mk/tools/defaults.mk      Sat Nov 15 19:40:07 2008 +0000
+++ b/mk/tools/defaults.mk      Sat Nov 15 20:20:44 2008 +0000
@@ -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.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 -r c4182bae10e5 -r 41c6ece2a692 mk/tools/replace.mk
--- a/mk/tools/replace.mk       Sat Nov 15 19:40:07 2008 +0000
+++ b/mk/tools/replace.mk       Sat Nov 15 20:20:44 2008 +0000
@@ -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 @@
 .  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=



Home | Main Index | Thread Index | Old Index