From 33dc62d7b5adcb49c168af04248687af5a2c8d64 Mon Sep 17 00:00:00 2001 From: jschauma Date: Mon, 11 Apr 2005 02:44:26 +0000 Subject: patch tclConfig.sh and tkConfig.sh so that they do not contain references to the build environment, which of course no longer exists once we install the file. Also make sure that variables are set using double quotes, so that variables inside are expanded. Ok jwise@. --- x11/tk83/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'x11/tk83') diff --git a/x11/tk83/Makefile b/x11/tk83/Makefile index 157dc4589c4..fdb64e9f1fd 100644 --- a/x11/tk83/Makefile +++ b/x11/tk83/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2005/03/08 17:24:45 tv Exp $ +# $NetBSD: Makefile,v 1.4 2005/04/11 02:44:26 jschauma Exp $ DISTNAME= tk8.3.4 PKGNAME= tk-8.3.4 @@ -49,12 +49,17 @@ post-patch: ${RM} -f mkLinks.tmp; \ ${CHMOD} +x mkLinks; -pre-install: +post-build: cd ${WRKSRC}; for file in \ tkUnixInit.o libtk83.so wish; \ do \ ${TOUCH} $${file}; \ done + ${SED} -e "s|^\(.*\)='\(.*\)'|\1=\"\2\"|" \ + -e "s|${WRKSRC}|${PREFIX}/lib|" \ + -e "s|${WRKDIR}/${DISTNAME:C/-src//}|${PREFIX}|" \ + ${WRKSRC}/tkConfig.sh > ${WRKSRC}/tkConfig.sh.tmp && \ + ${MV} ${WRKSRC}/tkConfig.sh.tmp ${WRKSRC}/tkConfig.sh post-install: cd ${WRKDIR} && ${PAX} -rwpm man ${PREFIX} -- cgit v1.2.3