diff options
author | jlam <jlam> | 2006-04-13 16:35:57 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-04-13 16:35:57 +0000 |
commit | d065f9a8442fe522404bb2be2e1547b54ae46821 (patch) | |
tree | 05edb3a0d35814dcd46fc6d587c479a7a041b561 /mk/tools/bsd.tools.mk | |
parent | e7f6ab298c22340dca574f8d0349b24c9b80c59b (diff) | |
download | pkgsrc-d065f9a8442fe522404bb2be2e1547b54ae46821.tar.gz |
Overhaul the way packages can ask for "msgfmt". If a package needs
msgfmt, then it should set the following in the package Makefile:
USE_TOOLS+= msgfmt
To deal with message files that use the "msgid_plural" statement,
which isn't supported in NetBSD<=3.x and also in gettext<=0.10.35, we
determine if the built-in "msgfmt" is sufficiently new enough to
understand "msgid_plural". If it isn't, then we use the msgfmt.sh
script to transform the msgid_plural statements to an equivalent
construct that's understood by older msgfmt tools.
The msgfmt.sh script is a straightforward translation of the original
perl script msgfmt.pl script by Julio M. Merino Vidal into shell and
awk, which are more lightweight dependencies than perl.
We remove the USE_MSGFMT_PLURALS bits in gettext-lib/builtin.mk as they
are made obsolete by the new code in mk/tools/msgfmt.mk.
BUILD_USE_MSGFMT is still supported but will be removed in a separate
commit.
Diffstat (limited to 'mk/tools/bsd.tools.mk')
-rw-r--r-- | mk/tools/bsd.tools.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/tools/bsd.tools.mk b/mk/tools/bsd.tools.mk index f12695bcb9a..ef4c5b2dbda 100644 --- a/mk/tools/bsd.tools.mk +++ b/mk/tools/bsd.tools.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.tools.mk,v 1.32 2005/08/10 20:56:20 jlam Exp $ +# $NetBSD: bsd.tools.mk,v 1.33 2006/04/13 16:35:58 jlam Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -111,6 +111,7 @@ USE_TOOLS?= # empty .include "../../mk/tools/automake.mk" .include "../../mk/tools/autoconf.mk" .include "../../mk/tools/texinfo.mk" +.include "../../mk/tools/msgfmt.mk" .include "../../mk/tools/ldconfig.mk" .include "../../mk/tools/rpcgen.mk" .include "../../mk/tools/strip.mk" |