summaryrefslogtreecommitdiff
path: root/geography
diff options
context:
space:
mode:
authorwiedi <wiedi@pkgsrc.org>2015-12-12 15:27:50 +0000
committerwiedi <wiedi@pkgsrc.org>2015-12-12 15:27:50 +0000
commit8559bc055014de790ba326d47cb877b779aee29a (patch)
tree43cb9c7e6396d20bfd25da59b7a7d036c839fd4a /geography
parentacefc8b50a9ac434b9442803030cdc33dc06190c (diff)
downloadpkgsrc-8559bc055014de790ba326d47cb877b779aee29a.tar.gz
c99 fixes build on SunOS
Diffstat (limited to 'geography')
-rw-r--r--geography/gdal-lib/Makefile4
-rw-r--r--geography/gdal-lib/distinfo3
-rw-r--r--geography/gdal-lib/patches/patch-frmts_grib_degrib18_degrib_myutil.c14
3 files changed, 18 insertions, 3 deletions
diff --git a/geography/gdal-lib/Makefile b/geography/gdal-lib/Makefile
index f152f33aaa2..667a20e0068 100644
--- a/geography/gdal-lib/Makefile
+++ b/geography/gdal-lib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.76 2015/11/26 13:37:30 adam Exp $
+# $NetBSD: Makefile,v 1.77 2015/12/12 15:27:50 wiedi Exp $
DISTNAME= gdal-1.11.3
PKGNAME= ${DISTNAME:S/gdal/gdal-lib/}
@@ -14,7 +14,7 @@ LICENSE= mit
# as a bug and changes the C++ shlib version every release. Therefore
# this package needs revbumping on every geos update.
-USE_LANGUAGES= c c++
+USE_LANGUAGES= c99 c++
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake
diff --git a/geography/gdal-lib/distinfo b/geography/gdal-lib/distinfo
index b706d9f8f48..05e6882b13c 100644
--- a/geography/gdal-lib/distinfo
+++ b/geography/gdal-lib/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.27 2015/11/26 13:37:30 adam Exp $
+$NetBSD: distinfo,v 1.28 2015/12/12 15:27:50 wiedi Exp $
SHA1 (gdal-1.11.3.tar.gz) = f0cfa13f62a2ad0f545327897cb90f0f0e08bc63
RMD160 (gdal-1.11.3.tar.gz) = 8373d8d83d4614cb4086d4048531a4845c588649
SHA512 (gdal-1.11.3.tar.gz) = 689b36a674fd5763a83e63f3a00460c44149a9447d31793d4e4dc2700c862775d565d5915bf3ac9594f0777ae89cf34c90b82820537d0f4d4d5c2c6a5d78d033
Size (gdal-1.11.3.tar.gz) = 10758778 bytes
SHA1 (patch-GDALmake.opt.in) = f8096596d1b808d0c0a02e95ad5d0664b1c895eb
+SHA1 (patch-frmts_grib_degrib18_degrib_myutil.c) = 6179ba75d77607cefa6f2413c50443054308cdd3
diff --git a/geography/gdal-lib/patches/patch-frmts_grib_degrib18_degrib_myutil.c b/geography/gdal-lib/patches/patch-frmts_grib_degrib18_degrib_myutil.c
new file mode 100644
index 00000000000..d17061b8d95
--- /dev/null
+++ b/geography/gdal-lib/patches/patch-frmts_grib_degrib18_degrib_myutil.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-frmts_grib_degrib18_degrib_myutil.c,v 1.1 2015/12/12 15:27:50 wiedi Exp $
+
+fix build on SunOS
+--- frmts/grib/degrib18/degrib/myutil.c.orig 2015-09-16 10:21:15.000000000 +0000
++++ frmts/grib/degrib18/degrib/myutil.c
+@@ -12,7 +12,7 @@
+ */
+
+ /* For S_IFDIR */
+-#define _XOPEN_SOURCE 500
++#define _XOPEN_SOURCE 600
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <ctype.h>