Unbreak this port

PR:		221334
Reported by:	pi
MFH:		2017Q3
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2017-08-19 04:49:28 +00:00
parent 4342c1ea79
commit a7391a96c7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=448283
5 changed files with 56 additions and 2 deletions

View file

@ -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

View file

@ -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"

View file

@ -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"

View file

@ -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"

View file

@ -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 <unistd.h>