aboutsummaryrefslogtreecommitdiffstats
path: root/math/p5-Math-GMP/Makefile
blob: 594ad213a1b38ff91ba462e48f6cd2372a1d3004 (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
# New ports collection makefile for:    Math-GMP
# Date created:             Wed Jan  3 11:09:25 2001
# Whom:                 will
#
# $FreeBSD$
#

PORTNAME=   Math-GMP
PORTVERSION=    2.06
PORTREVISION=   1
CATEGORIES= math perl5
MASTER_SITES=   CPAN
PKGNAMEPREFIX=  p5-

MAINTAINER= perl@FreeBSD.org
COMMENT=    Perl module that provides an interface to the GMP library

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

PERL_CONFIGURE= yes

MAN3=       Math::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>