summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2006-02-11 00:23:24 +0000
committerjlam <jlam>2006-02-11 00:23:24 +0000
commit1d7c0575a43c86532c52a08637fd650a0fc21268 (patch)
tree8c88665024498d75cb4d23088be3020dab695a85 /mk
parent8e47c51236895017b0d7308b9eba11bb9dfadbda (diff)
downloadpkgsrc-1d7c0575a43c86532c52a08637fd650a0fc21268.tar.gz
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 (limited to 'mk')
-rw-r--r--mk/tools/replace.mk23
1 files changed, 22 insertions, 1 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index 94e49fa9553..ff55148192b 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -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 @@ TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/${GNU_PROGRAM_PREFIX}${_t_}
######################################################################
+# 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.
#