diff options
Diffstat (limited to 'lang/tcl-tclX/Makefile')
-rw-r--r-- | lang/tcl-tclX/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lang/tcl-tclX/Makefile b/lang/tcl-tclX/Makefile index 3fc48dddece..a1bbdfac78d 100644 --- a/lang/tcl-tclX/Makefile +++ b/lang/tcl-tclX/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2001/02/17 09:07:35 agc Exp $ +# $NetBSD: Makefile,v 1.5 2001/04/26 07:17:40 skrll Exp $ # DISTNAME= tclX8.2.0 @@ -25,7 +25,16 @@ MAKE_ENV+= GTAR=${GTAR} CHOWN=${CHOWN} CHMOD=${CHMOD} \ WRKSRC= ${WRKDIR}/tclX8.2.0/unix post-extract: - ${MV} ${WRKSRC}/../doc/Memory.n ${WRKSRC}/../doc/TclXMemory.n + @${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 + +post-patch: + @${MV} ${WRKSRC}/configure ${WRKSRC}/configure.tmp + @${SED} -e 's:@PKGSRC_TCL_SRC_DIR@:${BUILD_ROOT}/lang/tcl/${WRKDIR:T}/tcl8.3.2:g' \ + ${WRKSRC}/configure.tmp > ${WRKSRC}/configure + @${CHMOD} a+x ${WRKSRC}/configure post-build: cd ${WRKSRC}/../tcl/unix && ${MAKE_ENV} ${MAKE} buildhelp @@ -39,6 +48,9 @@ post-install: # we don't want to modify the man page, as it is also used by ../tk-tclX, # so... +pre-clean: + @cd ../../lang/tcl && ${MAKE} clean + test: @(cd ${WRKSRC}; ${MAKE_ENV} ${MAKE} test) |