From 04ce68172d7451240da810cbd75cc83d12465813 Mon Sep 17 00:00:00 2001 From: hubertf Date: Tue, 16 Oct 2001 00:44:25 +0000 Subject: * use PKGSRCDIR to get to pkgsrc/math/pari if you want to build something! when WRKOBJDIR is set, BUILD_ROOT points somewhere into the obj dir * clean up litter in pre-clean XXX is there a good reason we don't support a post-clean? --- math/p5-Math-Pari/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/math/p5-Math-Pari/Makefile b/math/p5-Math-Pari/Makefile index d8292e1d634..ae323a91744 100644 --- a/math/p5-Math-Pari/Makefile +++ b/math/p5-Math-Pari/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2001/10/03 02:41:41 hubertf Exp $ +# $NetBSD: Makefile,v 1.3 2001/10/16 00:44:25 hubertf Exp $ # DISTNAME= Math-Pari-2.001804 @@ -19,13 +19,16 @@ PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Math/Pari/.packlist # XXX: could be improved... post-extract: - if [ ! -d ${BUILD_ROOT}/math/pari/${WRKDIR_BASENAME} ]; then \ - cd ${BUILD_ROOT}/math/pari && ${MAKE}; \ + if [ ! -d ${PKGSRCDIR}/math/pari/${WRKDIR_BASENAME} ]; then \ + cd ${PKGSRCDIR}/math/pari && ${MAKE}; \ fi ${RM} -f ${WRKSRC}/pari-* - ${LN} -sf ${BUILD_ROOT}/math/pari/${WRKDIR_BASENAME}/pari-* ${WRKSRC}/ + ${LN} -sf ${PKGSRCDIR}/math/pari/${WRKDIR_BASENAME}/pari-* ${WRKSRC}/ do-configure: @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL +pre-clean: + cd ${PKGSRCDIR}/math/pari && ${MAKE} clean + .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3