svn commit: r322035 - head/lang/gawk
Johan van Selst
johans at FreeBSD.org
Sat Jun 29 09:30:23 UTC 2013
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 at 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/' \
More information about the svn-ports-head
mailing list