summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-05-16 13:13:32 +0000
committerjperkin <jperkin@pkgsrc.org>2018-05-16 13:13:32 +0000
commit3edd19a6a320dc4b82f5b4a94043eba1af0fe0e6 (patch)
treedeb40b80ebd24580e953dfcbff2b2d5a863f9d56 /graphics
parentfe5ee2faeb356a8dd23a4a1ac0f275d066c00c33 (diff)
downloadpkgsrc-3edd19a6a320dc4b82f5b4a94043eba1af0fe0e6.tar.gz
eog: Ensure _XOPEN_SOURCE is set correctly on SunOS.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/eog/distinfo4
-rw-r--r--graphics/eog/patches/patch-src_eog-exif-util.c15
-rw-r--r--graphics/eog/patches/patch-src_eog-util.c15
3 files changed, 33 insertions, 1 deletions
diff --git a/graphics/eog/distinfo b/graphics/eog/distinfo
index 2691ebf82b2..3e9f6e6adaf 100644
--- a/graphics/eog/distinfo
+++ b/graphics/eog/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.25 2015/11/03 21:33:56 agc Exp $
+$NetBSD: distinfo,v 1.26 2018/05/16 13:13:32 jperkin Exp $
SHA1 (eog-2.32.1.tar.bz2) = 40fe8ec6bc6cbc118e9ce538e40f8c86b5709a51
RMD160 (eog-2.32.1.tar.bz2) = 3e3a3a4ac51b97a13f278a11ec0bfa90f25b6af2
SHA512 (eog-2.32.1.tar.bz2) = d14a7287389e10d0356ea2a0ed5771b8ba94fa8b7c3eca3bbb003d535a5416b84b02d4868faa3a7eeddb99c70a0d46a6bd0fdc59fc1170f4447d4967b1d63834
Size (eog-2.32.1.tar.bz2) = 2804681 bytes
+SHA1 (patch-src_eog-exif-util.c) = cb02f8e4e5435bd3709747f166f7fa74244cdb48
+SHA1 (patch-src_eog-util.c) = ca2a64707310b3bd6f796cbfc10f82f6874e07b2
diff --git a/graphics/eog/patches/patch-src_eog-exif-util.c b/graphics/eog/patches/patch-src_eog-exif-util.c
new file mode 100644
index 00000000000..ced678c5efc
--- /dev/null
+++ b/graphics/eog/patches/patch-src_eog-exif-util.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_eog-exif-util.c,v 1.1 2018/05/16 13:13:32 jperkin Exp $
+
+Ensure _XOPEN_SOURCE is set correctly on SunOS.
+
+--- src/eog-exif-util.c.orig 2009-08-11 10:49:55.000000000 +0000
++++ src/eog-exif-util.c
+@@ -28,7 +28,7 @@
+ #include "config.h"
+ #endif
+
+-#ifdef HAVE_STRPTIME
++#if defined(HAVE_STRPTIME) && (!defined(__sun) || (!defined(_XOPEN_SOURCE) && (__STDC_VERSION__-0 < 199901L)))
+ #define _XOPEN_SOURCE
+ #endif
+ #include <time.h>
diff --git a/graphics/eog/patches/patch-src_eog-util.c b/graphics/eog/patches/patch-src_eog-util.c
new file mode 100644
index 00000000000..b50d9090473
--- /dev/null
+++ b/graphics/eog/patches/patch-src_eog-util.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_eog-util.c,v 1.1 2018/05/16 13:13:32 jperkin Exp $
+
+Ensure _XOPEN_SOURCE is set correctly on SunOS.
+
+--- src/eog-util.c.orig 2010-11-13 13:16:52.000000000 +0000
++++ src/eog-util.c
+@@ -27,7 +27,7 @@
+ #endif
+
+ #include <sys/time.h>
+-#ifdef HAVE_STRPTIME
++#if defined(HAVE_STRPTIME) && (!defined(__sun) || (!defined(_XOPEN_SOURCE) && (__STDC_VERSION__-0 < 199901L)))
+ #define _XOPEN_SOURCE
+ #endif /* HAVE_STRPTIME */
+