2001-06-05 07:22:15 +02:00
|
|
|
# New ports collection makefile for: libgmp3
|
|
|
|
# Date created: Jan 11, 2001
|
|
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2010-01-19 12:20:07 +01:00
|
|
|
PORTNAME= gmp
|
2011-05-10 10:35:57 +02:00
|
|
|
PORTVERSION= 5.0.2
|
2001-06-05 07:22:15 +02:00
|
|
|
CATEGORIES= math devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= gmp
|
|
|
|
DISTNAME= gmp-${PORTVERSION}
|
|
|
|
|
2004-01-18 11:50:15 +01:00
|
|
|
MAINTAINER= ale@FreeBSD.org
|
2003-02-20 19:26:42 +01:00
|
|
|
COMMENT= A free library for arbitrary precision arithmetic
|
2001-06-05 07:22:15 +02:00
|
|
|
|
2010-01-19 12:20:07 +01:00
|
|
|
CONFLICTS= libgmp-4.*
|
|
|
|
|
|
|
|
OPTIONS= CPU_OPTS "Enable assembly optimizations for your CPU" off
|
|
|
|
|
2011-05-10 10:35:57 +02:00
|
|
|
LICENSE= LGPL3
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING.LIB
|
|
|
|
|
2008-06-25 12:30:39 +02:00
|
|
|
USE_BZIP2= yes
|
2010-01-19 12:20:07 +01:00
|
|
|
HAS_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
|
2009-03-25 13:43:26 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
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>
|
|
|
|
|
|
|
|
.if !defined(WITH_CPU_OPTS)
|
|
|
|
CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL}
|
|
|
|
.elif ${ARCH:S/64//} != ${ARCH}
|
|
|
|
CONFIGURE_ENV+= ABI="64"
|
|
|
|
.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>
|