pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/tools If the package doesn't ask makeinfo, create a...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0fc771149e2c
branches: trunk
changeset: 510980:0fc771149e2c
user: jlam <jlam%pkgsrc.org@localhost>
date: Fri Apr 07 14:52:55 2006 +0000
description:
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:
mk/tools/texinfo.mk | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r b6e1e9b6ae9e -r 0fc771149e2c mk/tools/texinfo.mk
--- a/mk/tools/texinfo.mk Fri Apr 07 12:14:57 2006 +0000
+++ b/mk/tools/texinfo.mk Fri Apr 07 14:52:55 2006 +0000
@@ -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 @@
# 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!= \
Home |
Main Index |
Thread Index |
Old Index