pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/tools Teach the tools framework about various gette...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9ba82bfba438
branches:  trunk
changeset: 507893:9ba82bfba438
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Feb 11 00:23:24 2006 +0000

description:
Teach the tools framework about various gettext-tools: gettext, msgfmt,
and xgettext.  These are supplied by devel/gettext-tools if not present
in the base system.

diffstat:

 mk/tools/replace.mk |  23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r c1bd8309a36f -r 9ba82bfba438 mk/tools/replace.mk
--- a/mk/tools/replace.mk       Fri Feb 10 23:43:08 2006 +0000
+++ b/mk/tools/replace.mk       Sat Feb 11 00:23:24 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.156 2006/01/28 00:32:31 jlam Exp $
+# $NetBSD: replace.mk,v 1.157 2006/02/11 00:23:24 jlam Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -846,6 +846,27 @@
 
 ######################################################################
 
+# These tools are all supplied by the devel/gettext-tools package if there
+# is no native tool available.
+#
+_TOOLS.gettext-tools=          gettext msgfmt xgettext
+_TOOLS_DEP.gettext-tools=      gettext<0.14.5,gettext-tools>=0.14.5
+
+.for _t_ in ${_TOOLS.gettext-tools}
+.  if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_})
+.    if !empty(PKGPATH:Mdevel/gettext-tools)
+MAKEFLAGS+=            TOOLS_IGNORE.${_t_}=
+.    elif !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS])
+TOOLS_DEPENDS.${_t_}?= {${_TOOLS_DEP.gettext-tools}}:../../devel/gettext-tools
+TOOLS_CREATE+=         ${_t_}
+TOOLS_FIND_PREFIX+=    TOOLS_PREFIX.${_t_}=${TOOLS_DEPENDS.${_t_}:C/:.*//}
+TOOLS_PATH.${_t_}=     ${TOOLS_PREFIX.${_t_}}/bin/${_t_}
+.    endif
+.  endif
+.endfor
+
+######################################################################
+
 # These tools are all supplied by a Ghostscript package if there is no
 # native tool available.
 #



Home | Main Index | Thread Index | Old Index