summaryrefslogtreecommitdiff
path: root/x11/tk83
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2005-04-11 02:44:26 +0000
committerjschauma <jschauma@pkgsrc.org>2005-04-11 02:44:26 +0000
commitf7f6de3c152383a3ac2e21e3909bd51c60330be6 (patch)
tree684868e4e0114f8b366c7c1b2742a821d7619111 /x11/tk83
parent654a1a7092cc0427bff2c1dbd25d9a132429e3bb (diff)
downloadpkgsrc-f7f6de3c152383a3ac2e21e3909bd51c60330be6.tar.gz
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@.
Diffstat (limited to 'x11/tk83')
-rw-r--r--x11/tk83/Makefile9
1 files changed, 7 insertions, 2 deletions
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}