summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-11 21:24:09 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-11 21:24:09 +0000
commitcb51973fced6a434e069d98539bb9a4579e1b1ba (patch)
tree7cd6b929e09aa4f0b6341d701b2db03effdb6d3b /math
parent527a9f8933857310bad23ba910b4fa19054926dd (diff)
downloadpkgsrc-cb51973fced6a434e069d98539bb9a4579e1b1ba.tar.gz
Use better hack as suggested by jlam: query pari for its WRKSRC and use
that.
Diffstat (limited to 'math')
-rw-r--r--math/p5-Math-Pari/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/math/p5-Math-Pari/Makefile b/math/p5-Math-Pari/Makefile
index 4a5815a8a90..d91f1b247f6 100644
--- a/math/p5-Math-Pari/Makefile
+++ b/math/p5-Math-Pari/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2006/01/11 19:36:59 joerg Exp $
+# $NetBSD: Makefile,v 1.22 2006/01/11 21:24:09 joerg Exp $
#
DISTNAME= Math-Pari-2.010501
@@ -21,15 +21,17 @@ PERL5_PACKLIST= auto/Math/Pari/.packlist
#TEST_TARGET= # the tests need looking at
# XXX: could be improved...
+PKGSRCDIR.pari= ${.CURDIR}/../../math/pari
+WRKSRC.pari_cmd= \
+ cd ${PKGSRCDIR.pari} && ${MAKE} show-var VARNAME=WRKSRC
+
post-extract:
- if [ ! -d ${PKGSRCDIR}/math/pari/${WRKDIR_BASENAME} ]; then \
- cd ${PKGSRCDIR}/math/pari && ${MAKE} configure; \
- fi
+ cd ${PKGSRCDIR.pari:Q} && ${MAKE} configure; \
${RM} -f ${WRKSRC}/pari-*
- ${LN} -sf ${WRKSRC}/../../../../math/pari/${WRKDIR_BASENAME}/pari-* ${WRKSRC}/
+ ${LN} -sf ${WRKSRC.pari_cmd:sh:Q} ${WRKSRC}
pre-clean:
- cd ${PKGSRCDIR}/math/pari && ${MAKE} clean
+ cd ${PKGSRCDIR.pari:Q} && ${MAKE} clean
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"