Import math/p5-Math-BigInt-GMP version 1.37
[dports.git] / math / p5-Math-BigInt-GMP / Makefile
1 # New ports collection makefile for:    math/p5-Math-BigInt-GMP
2 # Date created:                         7 February 2007
3 # Whom:                                 Maxime Henrion <mux@FreeBSD.org>
4 #
5 # $FreeBSD: ports/math/p5-Math-BigInt-GMP/Makefile,v 1.17 2012/11/17 05:59:25 svnexp Exp $
6 #
7
8 PORTNAME=       Math-BigInt-GMP
9 PORTVERSION=    1.37
10 CATEGORIES=     math perl5
11 MASTER_SITES=   CPAN
12 PKGNAMEPREFIX=  p5-
13
14 MAINTAINER=     perl@FreeBSD.org
15 COMMENT=        Math::BigInt::GMP - Use the GMP library for Math::BigInt routines
16
17 LICENSE=        ART10 GPLv1
18 LICENSE_COMB=   dual
19
20 BUILD_DEPENDS=  p5-Math-BigInt>=1.997:${PORTSDIR}/math/p5-Math-BigInt
21 LIB_DEPENDS=    gmp.10:${PORTSDIR}/math/gmp
22 RUN_DEPENDS=    p5-Math-BigInt>=1.997:${PORTSDIR}/math/p5-Math-BigInt
23
24 PERL_CONFIGURE= yes
25 CONFIGURE_ARGS= INC="-I${LOCALBASE}/include"
26
27 MAN3=           Math::BigInt::GMP.3
28
29 post-patch:
30         @${PERL} -pi -e "s!-lgmp!-L${LOCALBASE}/lib $$&!;" \
31                      -e "if (/'LIBS'/) { print qq!'INC' => '-I${LOCALBASE}/include',!; }" \
32                 ${WRKSRC}/Makefile.PL
33
34 .include <bsd.port.mk>