summaryrefslogtreecommitdiff
path: root/x11/tk/Makefile
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/tk/Makefile
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/tk/Makefile')
-rw-r--r--x11/tk/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/x11/tk/Makefile b/x11/tk/Makefile
index 6a843178cf5..3c103c83295 100644
--- a/x11/tk/Makefile
+++ b/x11/tk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2005/01/05 09:15:45 adam Exp $
+# $NetBSD: Makefile,v 1.41 2005/04/11 02:44:26 jschauma Exp $
DISTNAME= tk8.4.9-src
PKGNAME= tk-8.4.9
@@ -29,6 +29,13 @@ CONFIGURE_ARGS+= --mandir=${WRKDIR}/man
.include "../../lang/tcl/buildlink3.mk"
+post-build:
+ ${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}
${RM} -rf ${WRKDIR}/man