freebsd-ports/math/gmp-ecm/Makefile
Mathieu Arnold 8d6597e0bb Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:16:16 +00:00

37 lines
879 B
Makefile

# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$
PORTNAME= gmp-ecm
PORTVERSION= 6.3
PORTREVISION= 2
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= libgmp.so:math/gmp
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
CONFLICTS= ecm-[0-9]*
GNU_CONFIGURE= yes
CONFIGURE_ARGS= ac_cv_prog_XSLTPROC=no \
--with-gmp=${LOCALBASE}
USES= libtool
PLIST_FILES= bin/ecm include/ecm.h lib/libecm.a \
man/man1/ecm.1.gz
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>