diff options
author | jlam <jlam@pkgsrc.org> | 2001-07-23 12:34:32 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-07-23 12:34:32 +0000 |
commit | 1934a5ae419c055068a53f0eb5541b73ef68b6d6 (patch) | |
tree | a2d908162d8bbe704cc822dc3e975d1ccd1994dc /x11 | |
parent | 8e03d7623450b2177957500eed123b3f88f0d881 (diff) | |
download | pkgsrc-1934a5ae419c055068a53f0eb5541b73ef68b6d6.tar.gz |
In buildlinked *Config.sh files, substitute ${BUILDLINK_DIR} for
${LOCALBASE} in *_PREFIX definition.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/tk/buildlink.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/x11/tk/buildlink.mk b/x11/tk/buildlink.mk index db2cbee1711..95d1f6fc546 100644 --- a/x11/tk/buildlink.mk +++ b/x11/tk/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.4 2001/07/20 01:54:55 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.5 2001/07/23 12:34:33 jlam Exp $ # # This Makefile fragment is included by packages that use tk. # @@ -44,10 +44,12 @@ tkConfig-buildlink: if [ ! -f $${cookie} ]; then \ file=lib/tkConfig.sh; \ ${ECHO_MSG} "Creating script ${BUILDLINK_DIR}/$${file}."; \ - ${SED} -e "s|-L${BUILDLINK_PREFIX.tk}/lib|-L${BUILDLINK_DIR}/lib|g" \ + ${SED} -e "/^TK_PREFIX/s|${BUILDLINK_PREFIX.tcl}|${BUILDLINK_DIR}|g" \ + -e "s|-L${BUILDLINK_PREFIX.tk}/lib|-L${BUILDLINK_DIR}/lib|g" \ -e "s|${BUILDLINK_PREFIX.tk}/lib/libtkstub|-L${BUILDLINK_DIR}/lib/libtkstub|g" \ ${BUILDLINK_PREFIX.tk}/$${file} > ${BUILDLINK_DIR}/$${file}; \ ${CHMOD} +x ${BUILDLINK_DIR}/$${file}; \ + ${ECHO} ${BUILDLINK_PREFIX.tk}/$${file} >> $${cookie}; \ ${TOUCH} ${TOUCH_FLAGS} $${cookie}; \ fi |