From a382f811f00cc359fc6c3d7c7386417af7b05fd1 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. --- pkgtools/pkgfind/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgtools/pkgfind/Makefile') diff --git a/pkgtools/pkgfind/Makefile b/pkgtools/pkgfind/Makefile index 53633829e88..abfed65cf7d 100644 --- a/pkgtools/pkgfind/Makefile +++ b/pkgtools/pkgfind/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2004/06/22 20:01:01 xtraeme Exp $ +# $NetBSD: Makefile,v 1.2 2004/10/07 02:01:38 jlam Exp $ DISTNAME= pkgfind-20040622 CATEGORIES= pkgtools @@ -33,7 +33,7 @@ do-install: SUBST_CLASSES= path SUBST_STAGE.path= post-patch SUBST_FILES.path= pkgfind.c pkgfind.1 -SUBST_SED.path= -e "s,/usr/pkgsrc,${_PKGSRCDIR},g" +SUBST_SED.path= -e "s,/usr/pkgsrc,${PKGSRCDIR},g" SUBST_MESSAGE.path= "Adjusting pkgsrc directory." .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3