From 220108ffc1e4104514b7b7a08f2239a16ec90e9c Mon Sep 17 00:00:00 2001 From: sunpoet Date: Sat, 19 Aug 2017 14:39:02 +0000 Subject: MFH: r448283 Unbreak this port PR: 221334 Reported by: pi Approved by: ports-secteam (blanket) --- graphics/gmt/Makefile | 2 -- graphics/gmt/files/patch-src-gmt_io.c | 14 ++++++++++++++ graphics/gmt/files/patch-src-gmtmath.c | 14 ++++++++++++++ graphics/gmt/files/patch-src-grdmath.c | 14 ++++++++++++++ graphics/gmt/files/patch-src-misc-gmtdigitize.c | 14 ++++++++++++++ 5 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 graphics/gmt/files/patch-src-gmt_io.c create mode 100644 graphics/gmt/files/patch-src-gmtmath.c create mode 100644 graphics/gmt/files/patch-src-grdmath.c create mode 100644 graphics/gmt/files/patch-src-misc-gmtdigitize.c diff --git a/graphics/gmt/Makefile b/graphics/gmt/Makefile index e96aa96..3b6daac 100644 --- a/graphics/gmt/Makefile +++ b/graphics/gmt/Makefile @@ -25,8 +25,6 @@ LICENSE_COMB= multi LICENSE_DISTFILES_GPLv2= ${DISTNAME}${EXTRACT_SUFX} LICENSE_DISTFILES_LGPL3= ${GSHHG_DISTNAME}${EXTRACT_SUFX} -BROKEN= fails to build - LIB_DEPENDS= libnetcdf.so:science/netcdf RUN_DEPENDS= bash:shells/bash diff --git a/graphics/gmt/files/patch-src-gmt_io.c b/graphics/gmt/files/patch-src-gmt_io.c new file mode 100644 index 0000000..f048f58 --- /dev/null +++ b/graphics/gmt/files/patch-src-gmt_io.c @@ -0,0 +1,14 @@ +--- src/gmt_io.c.orig 2016-03-07 01:35:42 UTC ++++ src/gmt_io.c +@@ -80,11 +80,7 @@ + */ + + /* Circumvent Solaris problem. See bug #817 */ +-#ifdef __FreeBSD__ +-#define _XOPEN_SOURCE +-#else + #define _XOPEN_SOURCE 600 +-#endif + + #define GMT_WITH_NO_PS + #include "gmt.h" diff --git a/graphics/gmt/files/patch-src-gmtmath.c b/graphics/gmt/files/patch-src-gmtmath.c new file mode 100644 index 0000000..fef1c4c --- /dev/null +++ b/graphics/gmt/files/patch-src-gmtmath.c @@ -0,0 +1,14 @@ +--- src/gmtmath.c.orig 2016-03-07 01:35:42 UTC ++++ src/gmtmath.c +@@ -61,11 +61,7 @@ + */ + + /* Circumvent Solaris problem. See bug #817 */ +-#ifdef __FreeBSD__ +-#define _XOPEN_SOURCE +-#else + #define _XOPEN_SOURCE 600 +-#endif + + #include "gmt.h" + diff --git a/graphics/gmt/files/patch-src-grdmath.c b/graphics/gmt/files/patch-src-grdmath.c new file mode 100644 index 0000000..51d98b6 --- /dev/null +++ b/graphics/gmt/files/patch-src-grdmath.c @@ -0,0 +1,14 @@ +--- src/grdmath.c.orig 2016-03-07 01:35:42 UTC ++++ src/grdmath.c +@@ -51,11 +51,7 @@ + */ + + /* Circumvent Solaris problem. See bug #817 */ +-#ifdef __FreeBSD__ +-#define _XOPEN_SOURCE +-#else + #define _XOPEN_SOURCE 600 +-#endif + + #include "gmt.h" + diff --git a/graphics/gmt/files/patch-src-misc-gmtdigitize.c b/graphics/gmt/files/patch-src-misc-gmtdigitize.c new file mode 100644 index 0000000..78d57d8 --- /dev/null +++ b/graphics/gmt/files/patch-src-misc-gmtdigitize.c @@ -0,0 +1,14 @@ +--- src/misc/gmtdigitize.c.orig 2016-03-07 01:35:42 UTC ++++ src/misc/gmtdigitize.c +@@ -38,11 +38,7 @@ + */ + + /* Circumvent Solaris problem. See bug #817 */ +-#ifdef __FreeBSD__ +-#define _XOPEN_SOURCE +-#else + #define _XOPEN_SOURCE 600 +-#endif + + #ifdef HAVE_UNISTD_H + #include -- cgit v1.1