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. --- math/p5-Math-Pari/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'math') diff --git a/math/p5-Math-Pari/Makefile b/math/p5-Math-Pari/Makefile index 492f1ef37c1..e993c96ac0f 100644 --- a/math/p5-Math-Pari/Makefile +++ b/math/p5-Math-Pari/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2004/04/27 21:26:08 snj Exp $ +# $NetBSD: Makefile,v 1.14 2004/10/07 02:01:38 jlam Exp $ # DISTNAME= Math-Pari-2.010501 @@ -23,14 +23,14 @@ PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Math/Pari/.packlist # XXX: could be improved... post-extract: - if [ ! -d ${_PKGSRCDIR}/math/pari/${WRKDIR_BASENAME} ]; then \ - cd ${_PKGSRCDIR}/math/pari && ${MAKE} configure; \ + if [ ! -d ${PKGSRCDIR}/math/pari/${WRKDIR_BASENAME} ]; then \ + cd ${PKGSRCDIR}/math/pari && ${MAKE} configure; \ fi ${RM} -f ${WRKSRC}/pari-* - ${LN} -sf ${_PKGSRCDIR}/math/pari/${WRKDIR_BASENAME}/pari-* ${WRKSRC}/ + ${LN} -sf ${PKGSRCDIR}/math/pari/${WRKDIR_BASENAME}/pari-* ${WRKSRC}/ pre-clean: - cd ${_PKGSRCDIR}/math/pari && ${MAKE} clean + cd ${PKGSRCDIR}/math/pari && ${MAKE} clean .include "../../lang/perl5/module.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3