aboutsummaryrefslogtreecommitdiffstats
path: root/math/mpc/Makefile
blob: e2a3295d60a5f91faba16d7cb7f095840527030a (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
# New ports collection makefile for:    mpc
# Date created:         05 April, 2009
# Whom:             Wen Heping <wenheping@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   mpc
PORTVERSION=    0.9
CATEGORIES= math devel
MASTER_SITES=   http://www.multiprecision.org/mpc/download/

MAINTAINER= gerald@FreeBSD.org
COMMENT=    Library of complex numbers with arbitrarily high precision

LIB_DEPENDS=    gmp:${PORTSDIR}/math/gmp \
        mpfr:${PORTSDIR}/math/mpfr

PORTSCOUT=  site:http://www.multiprecision.org/index.php?prog=mpc&page=download

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-gmp=${LOCALBASE} \
        --with-mpfr=${LOCALBASE}
USE_LDCONFIG=   yes

INFO=       mpc
PLIST_FILES=    include/mpc.h \
        lib/libmpc.a lib/libmpc.la lib/libmpc.so lib/libmpc.so.2

LATEST_LINK=    math_mpc

regression-test: build
    @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check

.include <bsd.port.mk>