diff options
author | minskim <minskim@pkgsrc.org> | 2005-09-08 21:32:35 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2005-09-08 21:32:35 +0000 |
commit | 385fd06032d8a6d6322ba5f5ab46a129fc9d8960 (patch) | |
tree | 737dd41ac0b963b9a71f1736ae86fe3793fc9b29 /lang | |
parent | 9a6344ada273afb5890d98f56b3a7b84808abaa9 (diff) | |
download | pkgsrc-385fd06032d8a6d6322ba5f5ab46a129fc9d8960.tar.gz |
Use TCL_VERSION and TK_VERSION instead of hardcoding the Tcl/Tk
version numbers.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/tk-tclX/Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lang/tk-tclX/Makefile b/lang/tk-tclX/Makefile index fff12ae16a2..d09325d62da 100644 --- a/lang/tk-tclX/Makefile +++ b/lang/tk-tclX/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.26 2005/05/16 01:15:32 jlam Exp $ +# $NetBSD: Makefile,v 1.27 2005/09/08 21:32:35 minskim Exp $ # DISTNAME= tclx8.3.5-src @@ -11,6 +11,9 @@ MAINTAINER= jwise@NetBSD.org HOMEPAGE= http://tclx.sourceforge.net/ COMMENT= Extended Tcl (TclX), a set of Tcl extensions for system programming +.include "../../lang/tcl/Makefile.version" +.include "../../x11/tk/Makefile.version" + CONFLICTS+= tclX-[0-9]* PKG_INSTALLATION_TYPES= overwrite pkgviews @@ -27,9 +30,10 @@ TEST_TARGET= test .include "../../mk/bsd.prefs.mk" -CONFIGURE_ENV+= \ - PKGSRC_TCL_SRC_DIR="${PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl8.4.9" \ - PKGSRC_TK_SRC_DIR="${PKGSRCDIR}/x11/tk/${WRKDIR:T}/tk8.4.9" +PKGSRC_TCL_SRC_DIR="${PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl${TCL_VERSION}" +PKGSRC_TK_SRC_DIR="${PKGSRCDIR}/x11/tk/${WRKDIR:T}/tk${TK_VERSION}" +CONFIGURE_ENV+= PKGSRC_TCL_SRC_DIR="${PKGSRC_TCL_SRC_DIR}" \ + PKGSRC_TK_SRC_DIR="${PKGSRC_TK_SRC_DIR}" MAKE_ENV+= GTAR=${GTAR} CHOWN=${CHOWN} CHMOD=${CHMOD} \ SHAREMODE=${SHAREMODE} SHAREOWN=${SHAREOWN} \ @@ -48,10 +52,10 @@ INSTALLATION_DIRS= bin include post-extract: ${MV} ${WRKSRC}/../doc/Memory.n ${WRKSRC}/../doc/TclXMemory.n - @if [ ! -r ${PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl8.4.8 ]; then \ + @if [ ! -r ${PKGSRC_TCL_SRC_DIR} ]; then \ cd ../../lang/tcl && ${MAKE} extract; \ fi - @if [ ! -r ${PKGSRCDIR}/x11/tk/${WRKDIR:T}/tk8.4.8 ]; then \ + @if [ ! -r ${PKGSRC_TK_SRC_DIR} ]; then \ cd ../../x11/tk && ${MAKE} extract; \ fi |