summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-11-20 22:34:35 +0000
committerjlam <jlam@pkgsrc.org>2002-11-20 22:34:35 +0000
commit6b4443ffdce90a496490a8fc8bfa02755dbccbd5 (patch)
tree061c32e155cf8fc34d49f8481d2ac1b66254ef22 /mk
parent4a5f4a9759301ce32738625a0d62bb55e23a7932 (diff)
downloadpkgsrc-6b4443ffdce90a496490a8fc8bfa02755dbccbd5.tar.gz
Reimplement hide-autotools target by making better use of make targets.
Also document what that section of the Makefile does.
Diffstat (limited to 'mk')
-rw-r--r--mk/buildlink2/bsd.buildlink2.mk24
1 files changed, 15 insertions, 9 deletions
diff --git a/mk/buildlink2/bsd.buildlink2.mk b/mk/buildlink2/bsd.buildlink2.mk
index 704e63fd8f4..ee12d614d05 100644
--- a/mk/buildlink2/bsd.buildlink2.mk
+++ b/mk/buildlink2/bsd.buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink2.mk,v 1.52 2002/11/20 22:24:58 jlam Exp $
+# $NetBSD: bsd.buildlink2.mk,v 1.53 2002/11/20 22:34:35 jlam Exp $
#
# An example package buildlink2.mk file:
#
@@ -852,6 +852,10 @@ buildlink-check:
${GREP} ${_BLNK_CHECK_PATTERNS} ${_BLNK_WRAP_LOG} || ${TRUE}; \
fi
+# Create shell scripts in ${BUILDLINK_DIR} that simply return an error
+# status for each of the GNU auto* tools, which should cause GNU configure
+# scripts to think that they can't be found.
+#
AUTOMAKE_OVERRIDE?= NO
_HIDE_PROGS.autoconf= bin/autoconf bin/autoconf-2.13 \
bin/autoheader bin/autoheader-2.13 \
@@ -872,16 +876,18 @@ _HIDE_PROGS.automake= bin/aclocal bin/aclocal-1.4 \
do-buildlink: hide-autotools
hide-autotools: # empty
+${BUILDLINK_DIR}/bin/.gnu_missing:
+ ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
+ ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} "#!${SH}" > ${.TARGET}
+ ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} "exit 1" >> ${.TARGET}
+ ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
+
.for _autotool_ in autoconf automake
hide-autotools: hide-${_autotool_}
-hide-${_autotool_}:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${BUILDLINK_DIR}
. for _prog_ in ${_HIDE_PROGS.${_autotool_}}
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${BUILDLINK_DIR}/${_prog_:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ( ${ECHO} "#!${SH}"; \
- ${ECHO} "exit 1"; \
- ) > ${BUILDLINK_DIR}/${_prog_}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${BUILDLINK_DIR}/${_prog_}
+hide-${_autotool_}: ${BUILDLINK_DIR}/${_prog_}
+${BUILDLINK_DIR}/${_prog_}: ${BUILDLINK_DIR}/bin/.gnu_missing
+ ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
+ ${_PKG_SILENT}${_PKG_DEBUG}${LN} ${.ALLSRC} ${.TARGET}
. endfor
.endfor