summaryrefslogtreecommitdiff
path: root/lang/tcl
diff options
context:
space:
mode:
authorjlam <jlam>2001-07-23 12:34:32 +0000
committerjlam <jlam>2001-07-23 12:34:32 +0000
commit72b3f7fd3c55c7f7405fe6c31fb290cc48fa4fee (patch)
treea2d908162d8bbe704cc822dc3e975d1ccd1994dc /lang/tcl
parentc21fb2f96cc372185e10a8abf63a2f27460e7fe0 (diff)
downloadpkgsrc-72b3f7fd3c55c7f7405fe6c31fb290cc48fa4fee.tar.gz
In buildlinked *Config.sh files, substitute ${BUILDLINK_DIR} for
${LOCALBASE} in *_PREFIX definition.
Diffstat (limited to 'lang/tcl')
-rw-r--r--lang/tcl/buildlink.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/lang/tcl/buildlink.mk b/lang/tcl/buildlink.mk
index efeac03a8d4..b6caa380640 100644
--- a/lang/tcl/buildlink.mk
+++ b/lang/tcl/buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink.mk,v 1.4 2001/07/20 01:54:48 jlam Exp $
+# $NetBSD: buildlink.mk,v 1.5 2001/07/23 12:34:32 jlam Exp $
#
# This Makefile fragment is included by packages that use tcl.
#
@@ -40,11 +40,12 @@ tclConfig-buildlink:
if [ ! -f $${cookie} ]; then \
file=lib/tclConfig.sh; \
${ECHO_MSG} "Creating script ${BUILDLINK_DIR}/$${file}."; \
- ${SED} -e "s|-L${BUILDLINK_PREFIX.tcl}/lib|-L${BUILDLINK_DIR}/lib|g" \
+ ${SED} -e "/^TCL_PREFIX/s|${BUILDLINK_PREFIX.tcl}|${BUILDLINK_DIR}|g" \
+ -e "s|-L${BUILDLINK_PREFIX.tcl}/lib|-L${BUILDLINK_DIR}/lib|g" \
-e "s|${BUILDLINK_PREFIX.tcl}/lib/libtclstub|${BUILDLINK_DIR}/lib/libtclstub|g" \
${BUILDLINK_PREFIX.tcl}/$${file} > ${BUILDLINK_DIR}/$${file}; \
${CHMOD} +x ${BUILDLINK_DIR}/$${file}; \
- ${TOUCH} ${TOUCH_FLAGS} $${cookie}; \
+ ${ECHO} ${BUILDLINK_PREFIX.tcl}/$${file} >> $${cookie}; \
fi
.endif # TCL_BUILDLINK_MK