From 17c3aafac1aa4cacaba3e9998eacf16787dfefb4 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 7 Oct 2004 02:01:37 +0000 Subject: * Make PKGSRC_TOPDIR a private variable by renaming it to _PKGSRC_TOPDIR, as it's only used internally by bsd.prefs.mk. * Make _PKGSRCDIR a public variable by renaming it to PKGSRCDIR. Also, generate its value from ${_PKGSRC_TOPDIR} so it's less fragile than the old method of stripping off the last two components of ${.CURDIR}. PKGSRCDIR may now be used after bsd.prefs.mk is defined. * Change all references to _PKGSRCDIR to PKGSRCDIR. --- lang/tcl-tclX/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lang/tcl-tclX') diff --git a/lang/tcl-tclX/Makefile b/lang/tcl-tclX/Makefile index fe5f9c87b88..50c33abe9a9 100644 --- a/lang/tcl-tclX/Makefile +++ b/lang/tcl-tclX/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2004/10/03 00:15:03 tv Exp $ +# $NetBSD: Makefile,v 1.22 2004/10/07 02:01:37 jlam Exp $ # DISTNAME= tclx8.3.5-src @@ -25,7 +25,9 @@ CONFIGURE_ARGS+= --enable-shared \ --enable-tk=NO TEST_TARGET= test -PKGSRC_TCL_SRC_DIR= ${_PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl8.4.6 +.include "../../mk/bsd.prefs.mk" + +PKGSRC_TCL_SRC_DIR= ${PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl8.4.6 CONFIGURE_ENV+= PKGSRC_TCL_SRC_DIR="${PKGSRC_TCL_SRC_DIR}" MAKE_ENV+= GTAR=${GTAR} CHOWN=${CHOWN} CHMOD=${CHMOD} \ -- cgit v1.2.3