diff options
author | jlam <jlam> | 2006-04-07 14:52:55 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-04-07 14:52:55 +0000 |
commit | 5bb2897b8e7c92a40575c8de3e6b25c58ab0e6c2 (patch) | |
tree | 02013240182b391ef46158767ba007e1e196a1a8 /mk/tools | |
parent | 36165648b4d0490add3480817670e7245d7668e8 (diff) | |
download | pkgsrc-5bb2897b8e7c92a40575c8de3e6b25c58ab0e6c2.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.
Diffstat (limited to 'mk/tools')
-rw-r--r-- | mk/tools/texinfo.mk | 11 |
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!= \ |