aboutsummaryrefslogtreecommitdiffstats
path: root/math/gmp-ecm/Makefile
blob: 34dbedaff246df1a305591d5ae98546d6b24abcc (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
37
38
# New ports collection makefile for:    gmp-ecm
# Date created:     2006-06-03
# Whom:         Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#

PORTNAME=   gmp-ecm
PORTVERSION=    6.3
CATEGORIES= math
MASTER_SITES=   https://gforge.inria.fr/frs/download.php/26838/
DISTNAME=   ecm-${PORTVERSION}

MAINTAINER= culot@FreeBSD.org
COMMENT=    Elliptic Curve Method for Integer Factorization

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

LICENSE=    GPLv2 LGPL21
LICENSE_COMB=   multi

USE_GNOME=  gnometarget
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= ac_cv_prog_XSLTPROC=no \
        --with-gmp=${LOCALBASE}

MAN1=       ecm.1
PLIST_FILES=    bin/ecm include/ecm.h lib/libecm.a lib/libecm.la

post-patch:
    @${REINPLACE_CMD} s/__GMP_BITS_PER_MP_LIMB/GMP_NUMB_BITS/g \
        ${WRKSRC}/*.c ${WRKSRC}/*.h
    @${REINPLACE_CMD} s/GMP_BITS_PER_LIMB/GMP_NUMB_BITS/g \
        ${WRKSRC}/*.c ${WRKSRC}/*.h
    @${REINPLACE_CMD} s/mp_bits_per_limb/GMP_NUMB_BITS/g \
        ${WRKSRC}/*.c ${WRKSRC}/*.h

.include <bsd.port.mk>