summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-05-19 20:08:44 +0000
committerjlam <jlam>2005-05-19 20:08:44 +0000
commit3afe15f33b463bf358ba2ed0fccd7badeb675192 (patch)
tree5251820a7214b238db9522067d4dec7cdc97fe12 /mk
parentaf170efb34d1e6873af482fc90fd115775cb2ef2 (diff)
downloadpkgsrc-3afe15f33b463bf358ba2ed0fccd7badeb675192.tar.gz
We can only use the subst.mk framework if the files are relative to
${WRKSRC}. Just directly create the msgfmt wrapper in the proper target. Also, note that the msgfmt handling should eventually migrate to the tools framework so that build dependencies and binary paths are correct.
Diffstat (limited to 'mk')
-rw-r--r--mk/tools/replace.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index 5518b22f2b9..6e7288ed22b 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.86 2005/05/19 05:27:25 jlam Exp $
+# $NetBSD: replace.mk,v 1.87 2005/05/19 20:08:44 jlam Exp $
#
# This Makefile fragment handles "replacements" of system-supplied
# tools with pkgsrc versions.
@@ -59,6 +59,13 @@ TOOLS_DEPMETHOD.perl?= DEPENDS
. endif
.endif
+# XXX Keep this hack here until the day that msgfmt and msgfmt-plurals
+# XXX is handled directly by the tools framework.
+# XXX
+.if defined(USE_MSGFMT_PLURALS) && !empty(USE_MSGFMT_PLURALS:M[yY][eE][sS])
+USE_TOOLS+= perl
+.endif
+
# bison implies "bison-yacc"
.if !empty(USE_TOOLS:Mbison)
USE_TOOLS+= bison-yacc