diff options
author | hans <hans@pkgsrc.org> | 2012-01-14 01:52:14 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2012-01-14 01:52:14 +0000 |
commit | 61a093ec38c3d2105a3f40a7fc8d986f2e9fd920 (patch) | |
tree | cfad01f9f954f8b4c19f24892dcbcd4383402db8 /mk | |
parent | 3a3fe8e873eb78efc8e81563a2581004ad5d9bc1 (diff) | |
download | pkgsrc-61a093ec38c3d2105a3f40a7fc8d986f2e9fd920.tar.gz |
Support zip and related utilities as host tools.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/tools/bsd.tools.mk | 3 | ||||
-rw-r--r-- | mk/tools/replace.mk | 15 | ||||
-rw-r--r-- | mk/tools/zip.mk | 11 |
3 files changed, 27 insertions, 2 deletions
diff --git a/mk/tools/bsd.tools.mk b/mk/tools/bsd.tools.mk index c4b876f0d20..2661500e156 100644 --- a/mk/tools/bsd.tools.mk +++ b/mk/tools/bsd.tools.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.tools.mk,v 1.53 2012/01/14 00:47:53 hans Exp $ +# $NetBSD: bsd.tools.mk,v 1.54 2012/01/14 01:52:14 hans Exp $ # # Copyright (c) 2005, 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -160,6 +160,7 @@ post-tools: .include "strip.mk" .include "cmake.mk" .include "imake.mk" +.include "zip.mk" .include "replace.mk" .include "perl.mk" .include "pkg-config.mk" diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk index 89b0e7997c1..c6c2923ab09 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.238 2012/01/12 15:55:01 hans Exp $ +# $NetBSD: replace.mk,v 1.239 2012/01/14 01:52:14 hans Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -867,6 +867,19 @@ TOOLS_VALUE_GNU.yacc= ${TOOLS_CMDLINE.yacc} . endif .endif +.for _t_ in zip zipcloak zipnote zipsplit +. if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_}) +. if !empty(PKGPATH:Marchivers/zip) +MAKEFLAGS+= TOOLS_IGNORE.${_t_}= +. elif !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS]) +TOOLS_DEPENDS.${_t_}?= zip-[0-9]*:../../archivers/zip +TOOLS_CREATE+= ${_t_} +TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=zip +TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/${_t_} +. endif +. endif +.endfor + ###################################################################### # These tools are all supplied by the lang/perl5 package if there is diff --git a/mk/tools/zip.mk b/mk/tools/zip.mk new file mode 100644 index 00000000000..2cf7be2e367 --- /dev/null +++ b/mk/tools/zip.mk @@ -0,0 +1,11 @@ +# $NetBSD: zip.mk,v 1.1 2012/01/14 01:52:14 hans Exp $ +# + +# This file needs to be included before replace.mk as it modifies the +# USE_TOOLS variables that are used by replace.mk. +# +.if !empty(USE_TOOLS:Mzip) +USE_TOOLS+= zipcloak zipnote zipsplit +.elif !empty(USE_TOOLS:Mzip\:run) +USE_TOOLS+= zipcloak:run zipnote:run zipsplit:run +.endif |