summaryrefslogtreecommitdiff
path: root/math/p5-Math-Pari/Makefile
blob: 0e62e2949d3646defe36df7ddab8f86f08209a21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $NetBSD: Makefile,v 1.25 2006/03/04 21:30:06 jlam Exp $
#

DISTNAME=		Math-Pari-2.010703
PKGNAME=		p5-${DISTNAME}
SVR4_PKGNAME=		p5mpa
CATEGORIES=		math perl5
MASTER_SITES=		${MASTER_SITE_PERL_CPAN:=Math/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://search.cpan.org/dist/Math-Pari/
COMMENT=		Perl5 interface to the pari math library

# XXX: to use or not to use...
#DEPENDS+=		gnuplot-[0-9]*:../../graphics/gnuplot

GCC_REQD+=		2.95
MAKE_ENV+=		MP_NOGNUPLOT=1
PERL5_PACKLIST=		auto/Math/Pari/.packlist

# XXX: could be improved...
PKGSRCDIR.pari=		${.CURDIR}/../../math/pari
WRKSRC.pari_cmd=		\
	cd ${PKGSRCDIR.pari} && ${MAKE} show-var VARNAME=WRKSRC

post-extract:
	cd ${PKGSRCDIR.pari:Q} && ${MAKE} configure;		\
	${RM} -f ${WRKSRC}/pari-*
	${LN} -sf ${WRKSRC.pari_cmd:sh:Q} ${WRKSRC}

pre-clean:
	cd ${PKGSRCDIR.pari:Q} && ${MAKE} clean

.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"