summaryrefslogtreecommitdiff
path: root/x11/tk
diff options
context:
space:
mode:
authorjschauma <jschauma>2005-04-11 02:44:26 +0000
committerjschauma <jschauma>2005-04-11 02:44:26 +0000
commit035213957261618427f78254726eb0278e058bae (patch)
tree684868e4e0114f8b366c7c1b2742a821d7619111 /x11/tk
parent7651aa3d1dd453fea1efe2b66dd0be94a090e17c (diff)
downloadpkgsrc-035213957261618427f78254726eb0278e058bae.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')
-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