2013-02-06 12:26:45 +01:00
|
|
|
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
2001-06-05 07:22:15 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2010-01-19 12:20:07 +01:00
|
|
|
PORTNAME= gmp
|
2013-10-05 23:04:40 +02:00
|
|
|
PORTVERSION= 5.1.3
|
2014-04-23 15:25:16 +02:00
|
|
|
PORTREVISION= 2
|
2001-06-05 07:22:15 +02:00
|
|
|
CATEGORIES= math devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= gmp
|
|
|
|
|
2004-01-18 11:50:15 +01:00
|
|
|
MAINTAINER= ale@FreeBSD.org
|
2013-12-14 05:47:22 +01:00
|
|
|
COMMENT= Free library for arbitrary precision arithmetic
|
2001-06-05 07:22:15 +02:00
|
|
|
|
2011-05-10 10:35:57 +02:00
|
|
|
LICENSE= LGPL3
|
|
|
|
|
2013-02-06 12:26:45 +01:00
|
|
|
OPTIONS_DEFINE= CPU_OPTS
|
|
|
|
CPU_OPTS_DESC= Enable assembly optimizations for your CPU
|
2012-01-30 12:00:07 +01:00
|
|
|
|
2014-04-23 15:25:16 +02:00
|
|
|
USES= libtool:keepla
|
2013-10-05 23:04:40 +02:00
|
|
|
USE_XZ= yes
|
2014-03-02 23:29:23 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-03-31 03:32:17 +02:00
|
|
|
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
|
2010-01-19 12:20:07 +01:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
|
|
|
--infodir=${PREFIX}/info \
|
|
|
|
--mandir=${PREFIX}/man \
|
|
|
|
--enable-cxx
|
2007-02-07 08:00:22 +01:00
|
|
|
USE_LDCONFIG= yes
|
2001-06-05 07:22:15 +02:00
|
|
|
|
2005-08-29 15:57:39 +02:00
|
|
|
INFO= gmp
|
2004-06-10 00:49:30 +02:00
|
|
|
|
2010-01-19 12:20:07 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-02-06 12:26:45 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MCPU_OPTS}
|
2010-01-19 12:20:07 +01:00
|
|
|
CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL}
|
|
|
|
.elif ${ARCH:S/64//} != ${ARCH}
|
2013-12-14 05:47:22 +01:00
|
|
|
.if ${ARCH} == powerpc64
|
|
|
|
CONFIGURE_ENV+= ABI="mode64"
|
|
|
|
.else
|
2010-01-19 12:20:07 +01:00
|
|
|
CONFIGURE_ENV+= ABI="64"
|
2013-12-14 05:47:22 +01:00
|
|
|
.endif
|
2010-01-19 12:20:07 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= ABI="32"
|
|
|
|
.endif
|
|
|
|
|
2003-03-31 03:32:17 +02:00
|
|
|
post-extract:
|
2006-04-04 08:05:02 +02:00
|
|
|
@${RM} -f ${WRKSRC}/doc/gmp.info*
|
2003-03-31 03:32:17 +02:00
|
|
|
|
2010-01-19 12:20:07 +01:00
|
|
|
post-patch:
|
2011-05-10 10:35:57 +02:00
|
|
|
@${REINPLACE_CMD} "s/\(athlon64\-\*\-\*\)/amd64-*-* | \1/;s/\(x86_64)\)/amd64 | \1/" \
|
2010-01-19 12:20:07 +01:00
|
|
|
${WRKSRC}/configure
|
|
|
|
|
2009-12-17 11:05:46 +01:00
|
|
|
regression-test check: build
|
2008-06-25 12:30:39 +02:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
|
|
|
|
|
2010-01-19 12:20:07 +01:00
|
|
|
.include <bsd.port.post.mk>
|