aboutsummaryrefslogtreecommitdiff
path: root/math/p5-Math-BigInt-GMP/Makefile
blob: 6635786f161ee65ac67e75aa3a64e5b032c160a3 (plain) (blame)
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
# New ports collection makefile for:	math/p5-Math-BigInt-GMP
# Date created:				7 February 2007
# Whom:					Maxime Henrion <mux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	Math-BigInt-GMP
PORTVERSION=	1.36
CATEGORIES=	math perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Math::BigInt::GMP - Use the GMP library for Math::BigInt routines

LIB_DEPENDS=	gmp.10:${PORTSDIR}/math/gmp

LICENSE_COMB=	dual
LICENSE=	ART20 GPLv1

PERL_CONFIGURE=	yes
CONFIGURE_ARGS+=	INC="-I${LOCALBASE}/include"

MAN3=		Math::BigInt::GMP.3

post-patch:
	@${PERL} -pi -e "s!-lgmp!-L${LOCALBASE}/lib $$&!;" \
		     -e "if (/'LIBS'/) { print qq!'INC' => '-I${LOCALBASE}/include',!; }" \
		${WRKSRC}/Makefile.PL

.include <bsd.port.mk>