Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jun 2013 09:30:23 +0000 (UTC)
From:      Johan van Selst <johans@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r322035 - head/lang/gawk
Message-ID:  <201306290930.r5T9UNK3014707@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: johans
Date: Sat Jun 29 09:30:23 2013
New Revision: 322035
URL: http://svnweb.freebsd.org/changeset/ports/322035

Log:
  - Make optional dependency on libmpfr explicit in GNU awk
    This adds support for multiple-precision floating-point computation
  
  PR:		ports/180004
  Submitted by:	Dan Lukes <dan@obluda.cz>

Modified:
  head/lang/gawk/Makefile

Modified: head/lang/gawk/Makefile
==============================================================================
--- head/lang/gawk/Makefile	Sat Jun 29 09:25:14 2013	(r322034)
+++ head/lang/gawk/Makefile	Sat Jun 29 09:30:23 2013	(r322035)
@@ -11,6 +11,9 @@ COMMENT=	The GNU version of Awk
 
 LIB_DEPENDS=	sigsegv:${PORTSDIR}/devel/libsigsegv
 
+OPTIONS_DEFINE=	MPFR
+MPFR_DESC?=	Support multiple-precision floating-point computation
+
 INFO=		gawk gawkinet
 
 USE_XZ=		true
@@ -35,6 +38,12 @@ CONFIGURE_ARGS+=--disable-nls
 PLIST_SUB+=	NLS="@comment "
 .endif
 
+.if ${PORT_OPTIONS:MMPFR}
+LIB_DEPENDS=	mpfr:${PORTSDIR}/math/mpfr
+.else
+CONFIGURE_ARGS+=--without-gmp --without-mpfr
+.endif
+
 post-patch:
 	@${RM} -f ${WRKSRC}/doc/*.info
 	@${REINPLACE_CMD} -e 's/ -export-dynamic/ -Wl,--export-dynamic/' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306290930.r5T9UNK3014707>