diff options
author | johans <johans@FreeBSD.org> | 2013-06-29 17:30:23 +0800 |
---|---|---|
committer | johans <johans@FreeBSD.org> | 2013-06-29 17:30:23 +0800 |
commit | b3ecd6c364f406fbc76a4c126f9d2eed5fbe47b7 (patch) | |
tree | a4934a5ff519b81b3dcab796a9eb9b3bdc48ad5f /lang/gawk/Makefile | |
parent | f525c7402415ec78c1ab48c28dbecd8df5dda3fc (diff) | |
download | freebsd-ports-gnome-b3ecd6c364f406fbc76a4c126f9d2eed5fbe47b7.tar.gz freebsd-ports-gnome-b3ecd6c364f406fbc76a4c126f9d2eed5fbe47b7.tar.zst freebsd-ports-gnome-b3ecd6c364f406fbc76a4c126f9d2eed5fbe47b7.zip |
- 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>
Diffstat (limited to 'lang/gawk/Makefile')
-rw-r--r-- | lang/gawk/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lang/gawk/Makefile b/lang/gawk/Makefile index d5891d5b1f6c..a01d1ec07ac4 100644 --- a/lang/gawk/Makefile +++ b/lang/gawk/Makefile @@ -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/' \ |