diff options
author | skrll <skrll> | 2001-04-27 09:16:18 +0000 |
---|---|---|
committer | skrll <skrll> | 2001-04-27 09:16:18 +0000 |
commit | 365afe0267d5ce9573afc40dba5aea2276f92b0e (patch) | |
tree | c03b0565791f4363f154cadbdb2d3b99987f8d2a /lang/tk-tclX/Makefile | |
parent | a9e3b3308274cbdf209d2756ec71253ada535394 (diff) | |
download | pkgsrc-365afe0267d5ce9573afc40dba5aea2276f92b0e.tar.gz |
Do previous changes to make the source for tcl available differently and
hopefully in a cleaner way.
Do the same for the tk sources for tk-tclX
Both should now build.
{tcl,tk}-tclX/Makefile have an awful lot in common so someone might like to
split a lot of it out.
Diffstat (limited to 'lang/tk-tclX/Makefile')
-rw-r--r-- | lang/tk-tclX/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lang/tk-tclX/Makefile b/lang/tk-tclX/Makefile index cdf088f407d..3f05f65067b 100644 --- a/lang/tk-tclX/Makefile +++ b/lang/tk-tclX/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2001/02/17 09:07:36 agc Exp $ +# $NetBSD: Makefile,v 1.4 2001/04/27 09:16:19 skrll Exp $ # DISTNAME= tclX8.2.0 @@ -20,6 +20,10 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS+= --enable-shared --with-tcl=${PREFIX}/lib \ --with-tk=${PREFIX}/lib +CONFIGURE_ENV+= \ + PKGSRC_TCL_SRC_DIR="${BUILD_ROOT}/lang/tcl/${WRKDIR:T}/tcl8.3.2" \ + PKGSRC_TK_SRC_DIR="${BUILD_ROOT}/x11/tk/${WRKDIR:T}/tk8.3.2" + MAKE_ENV+= GTAR=${GTAR} CHOWN=${CHOWN} CHMOD=${CHMOD} \ SHAREMODE=${SHAREMODE} SHAREOWN=${SHAREOWN} \ SHAREGRP=${SHAREGRP} @@ -31,6 +35,16 @@ PATCHDIR= ${.CURDIR}/../../lang/tcl-tclX/patches post-extract: ${MV} ${WRKSRC}/../doc/Memory.n ${WRKSRC}/../doc/TclXMemory.n + @if [ ! -e ${BUILD_ROOT}/lang/tcl/${WRKDIR:T}/tcl8.3.2 ]; then \ + cd ../../lang/tcl && ${MAKE} extract; \ + fi + @if [ ! -e ${BUILD_ROOT}/x11/tk/${WRKDIR:T}/tk8.3.2 ]; then \ + cd ../../x11/tk && ${MAKE} extract; \ + fi + +pre-clean: + @cd ../../lang/tcl && ${MAKE} clean + @cd ../../x11/tk && ${MAKE} clean do-build: @cd ${WRKSRC}/../tk/unix && ${MAKE_ENV} ${MAKE} |