summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-04-07 14:52:55 +0000
committerjlam <jlam@pkgsrc.org>2006-04-07 14:52:55 +0000
commit75228d481db7e6829af01adc09ad9110e8388eca (patch)
tree02013240182b391ef46158767ba007e1e196a1a8
parent22b27ec1d815f0c4f1031cdddd90be27c4a31bcc (diff)
downloadpkgsrc-75228d481db7e6829af01adc09ad9110e8388eca.tar.gz
If the package doesn't ask makeinfo, create a broken makeinfo tool
that will return non-zero if invoked as "makeinfo --version", but will touch the output file if invoked blindly. This should workaround some stupidity in the way that automake-generated Makefiles try to determine when and how to rebuild info files.
-rw-r--r--mk/tools/texinfo.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/mk/tools/texinfo.mk b/mk/tools/texinfo.mk
index 0544b665e03..f3fc3f339b6 100644
--- a/mk/tools/texinfo.mk
+++ b/mk/tools/texinfo.mk
@@ -1,4 +1,4 @@
-# $NetBSD: texinfo.mk,v 1.10 2006/03/06 05:25:45 jlam Exp $
+# $NetBSD: texinfo.mk,v 1.11 2006/04/07 14:52:55 jlam Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -38,7 +38,10 @@
TEXINFO_REQD?= 3.12
# If the package doesn't explicitly request makeinfo as a tool, then
-# create a "broken" makeinfo tool to prevent its use.
+# create a "broken" makeinfo tool to fool GNU configure scripts into
+# believing that makeinfo is broken on ths sytem. It will return non-zero
+# if invoked as "makeinfo --version". Otherwise, it will just touch the
+# appropriate output file to satisfy any make dependencies.
#
# If the package does explicitly request makeinfo as a tool, then
# determine if the platform-provided makeinfo's version is at least
@@ -46,7 +49,9 @@ TEXINFO_REQD?= 3.12
# the pkgsrc makeinfo.
#
.if empty(USE_TOOLS:C/:.*//:Mmakeinfo)
-TOOLS_BROKEN+= makeinfo
+TOOLS_CREATE+= makeinfo
+TOOLS_PATH.makeinfo= ${PKGSRCDIR}/mk/gnu-config/missing
+TOOLS_SCRIPT.makeinfo= for arg in "$$@"; do case "$$arg" in --version) exit 1 ;; esac; done; ${TOOLS_PATH.makeinfo} makeinfo "$$@"
.elif defined(TOOLS_PLATFORM.makeinfo) && !empty(TOOLS_PLATFORM.makeinfo)
. if !defined(_TOOLS_USE_PKGSRC.makeinfo)
_TOOLS_VERSION.makeinfo!= \