aboutsummaryrefslogtreecommitdiffstats
path: root/math/p5-Math-MPFR/Makefile
blob: 2830bcfb4362c29c628730b8a129db47649c4ee0 (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
33
34
35
36
# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$

PORTNAME=   Math-MPFR
PORTVERSION=    4.03
PORTREVISION=   1
CATEGORIES= math perl5
MASTER_SITES=   CPAN
PKGNAMEPREFIX=  p5-

MAINTAINER= perl@FreeBSD.org
COMMENT=    Perl interface to MPFR Library

LICENSE=    ART10 GPLv1+
LICENSE_COMB=   dual

LIB_DEPENDS=    libgmp.so:math/gmp \
        libmpfr.so:math/mpfr
TEST_DEPENDS=   p5-Math-GMP>=0:math/p5-Math-GMP \
        p5-Math-GMPf>=0:math/p5-Math-GMPf \
        p5-Math-GMPq>=0:math/p5-Math-GMPq \
        p5-Math-GMPz>=0:math/p5-Math-GMPz

USE_PERL5=  configure
USES=       localbase perl5

post-patch:
    @${REINPLACE_CMD} -e 's| -lquadmath||' ${WRKSRC}/Makefile.PL

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Math/MPFR/MPFR.so
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Math/MPFR/Prec/Prec.so
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Math/MPFR/Random/Random.so
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Math/MPFR/V/V.so

.include <bsd.port.mk>