summaryrefslogtreecommitdiff
path: root/lang/tcl-tclX
diff options
context:
space:
mode:
authorjoerg <joerg>2006-01-11 21:06:37 +0000
committerjoerg <joerg>2006-01-11 21:06:37 +0000
commitb9fb8bf08e5aab0b812ba86c8c7eb01ced163149 (patch)
treeb6f20ae50e44c7cef2c55c26f875d5fa2a5eb543 /lang/tcl-tclX
parent810648ec9d53daf64daf9a4c2ce012dc7bbfbc36 (diff)
downloadpkgsrc-b9fb8bf08e5aab0b812ba86c8c7eb01ced163149.tar.gz
Access TCL source much more correctly and working for configurations
with CREATE_WRKDIR_SYMLINK=no. Based on jlam's idea for math/p5-Math-Pari.
Diffstat (limited to 'lang/tcl-tclX')
-rw-r--r--lang/tcl-tclX/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/lang/tcl-tclX/Makefile b/lang/tcl-tclX/Makefile
index 14aa96f7f5c..e1e1edc5fa8 100644
--- a/lang/tcl-tclX/Makefile
+++ b/lang/tcl-tclX/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2005/12/05 20:50:28 rillig Exp $
+# $NetBSD: Makefile,v 1.31 2006/01/11 21:06:37 joerg Exp $
#
DISTNAME= tclx8.3.5-src
@@ -29,7 +29,11 @@ TEST_TARGET= test
.include "../../mk/bsd.prefs.mk"
-PKGSRC_TCL_SRC_DIR= ${PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl${TCL_VERSION}
+PKGSRCDIR.tcl= ${.CURDIR}/../../lang/tcl
+WRKSRC.tcl_cmd= \
+ cd ${PKGSRCDIR.tcl} && ${MAKE} show-var VARNAME=WRKSRC
+
+PKGSRC_TCL_SRC_DIR= ${WRKSRC.tcl_cmd:sh}/../
CONFIGURE_ENV+= PKGSRC_TCL_SRC_DIR=${PKGSRC_TCL_SRC_DIR:Q}
MAKE_ENV+= GTAR=${GTAR:Q} CHOWN=${CHOWN:Q} CHMOD=${CHMOD:Q} \
@@ -44,7 +48,7 @@ INSTALLATION_DIRS= bin include
post-extract:
@${MV} ${WRKSRC}/../doc/Memory.n ${WRKSRC}/../doc/TclXMemory.n
@if [ ! -r ${PKGSRC_TCL_SRC_DIR} ]; then \
- cd ../../lang/tcl && ${MAKE} extract; \
+ cd ${PKGSRCDIR.tcl} && ${MAKE} extract; \
fi
post-build:
@@ -60,6 +64,6 @@ post-install:
# so...
pre-clean:
- @cd ../../lang/tcl && ${MAKE} clean
+ @cd ${PKGSRCDIR.tcl} && ${MAKE} clean
.include "../../mk/bsd.pkg.mk"