summaryrefslogtreecommitdiff
path: root/devel/libgphoto2
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-01-31 10:53:40 +0000
committerjperkin <jperkin@pkgsrc.org>2018-01-31 10:53:40 +0000
commit600bb8576184e7f43e0708aa0685a1aaefb3ad5b (patch)
treea6ed18112d82df22809db387870a81d2af624b84 /devel/libgphoto2
parent6b01bc9c8be9aab35c130c83533d5f92b9d7aa19 (diff)
downloadpkgsrc-600bb8576184e7f43e0708aa0685a1aaefb3ad5b.tar.gz
libgphoto2: Set _{POSIX,XOPEN}*_SOURCE correctly.
Diffstat (limited to 'devel/libgphoto2')
-rw-r--r--devel/libgphoto2/distinfo9
-rw-r--r--devel/libgphoto2/patches/patch-camlibs_barbie_barbie.c16
-rw-r--r--devel/libgphoto2/patches/patch-camlibs_kodak_dc120_dc120.c16
-rw-r--r--devel/libgphoto2/patches/patch-camlibs_kodak_dc120_library.c16
-rw-r--r--devel/libgphoto2/patches/patch-camlibs_panasonic_coolshot_library.c16
-rw-r--r--devel/libgphoto2/patches/patch-camlibs_st2205_st2205.c16
-rw-r--r--devel/libgphoto2/patches/patch-libgphoto2__port_gphoto2_gphoto2-port-portability.h26
-rw-r--r--devel/libgphoto2/patches/patch-libgphoto2_gphoto2-file.c16
8 files changed, 130 insertions, 1 deletions
diff --git a/devel/libgphoto2/distinfo b/devel/libgphoto2/distinfo
index 70903883b4f..18a2176f06e 100644
--- a/devel/libgphoto2/distinfo
+++ b/devel/libgphoto2/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.28 2016/02/04 11:58:00 wiz Exp $
+$NetBSD: distinfo,v 1.29 2018/01/31 10:53:40 jperkin Exp $
SHA1 (libgphoto2-2.5.8.tar.bz2) = 976feb07d51026e6ca647f9fa333c500c5e0c041
RMD160 (libgphoto2-2.5.8.tar.bz2) = bbb57fdace9783f9829bafbd89818949f6d0fce3
@@ -9,5 +9,12 @@ SHA1 (patch-an) = 60d109d29834c01cdae29bcebde153e35af17884
SHA1 (patch-ao) = 01e7eea353ef12b97b54aeb34f00abfd1f50c3ff
SHA1 (patch-camlibs_ax203_jpeg__memsrcdest.c) = 763f39f07023aa82de6e91014a3fbf19e9e79afa
SHA1 (patch-camlibs_ax203_jpeg__memsrcdest.h) = a78c6fd04f1fb72863ce609ac3ad25ebe12dc51c
+SHA1 (patch-camlibs_barbie_barbie.c) = 0dc3d60155ce221b356d59c173d5842b9b2cc98d
SHA1 (patch-camlibs_jl2005c_jpeg__memsrcdest.c) = 0b178dc031b0b051a230eff6cc6c322596d1a8ee
SHA1 (patch-camlibs_jl2005c_jpeg__memsrcdest.h) = 49bff8c0523d9cf87be92856cef3dd9127b983a0
+SHA1 (patch-camlibs_kodak_dc120_dc120.c) = 5b009334d954fcfa7b852281fa0bcc73b7355bbc
+SHA1 (patch-camlibs_kodak_dc120_library.c) = da5842b447e5cf2627c52b2fed64ec9b12d427d5
+SHA1 (patch-camlibs_panasonic_coolshot_library.c) = bb476c660d8ef011f11da119a718357d9672aadf
+SHA1 (patch-camlibs_st2205_st2205.c) = 2269a9d6d143bd74c49e21fafb706c6ee528748e
+SHA1 (patch-libgphoto2__port_gphoto2_gphoto2-port-portability.h) = 9f62a7c4213f8be273b6da7b2cbbd1f68e697631
+SHA1 (patch-libgphoto2_gphoto2-file.c) = 2b63f2e3bb3b6ef73c8d860efdda5e342f093eb8
diff --git a/devel/libgphoto2/patches/patch-camlibs_barbie_barbie.c b/devel/libgphoto2/patches/patch-camlibs_barbie_barbie.c
new file mode 100644
index 00000000000..a704e5d68ee
--- /dev/null
+++ b/devel/libgphoto2/patches/patch-camlibs_barbie_barbie.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-camlibs_barbie_barbie.c,v 1.1 2018/01/31 10:53:40 jperkin Exp $
+
+Set _POSIX_C_SOURCE correctly.
+
+--- camlibs/barbie/barbie.c.orig 2014-06-04 18:19:35.000000000 +0000
++++ camlibs/barbie/barbie.c
+@@ -21,7 +21,9 @@
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA
+ */
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ #define _POSIX_C_SOURCE 199309L
++#endif
+
+ #include "config.h"
+
diff --git a/devel/libgphoto2/patches/patch-camlibs_kodak_dc120_dc120.c b/devel/libgphoto2/patches/patch-camlibs_kodak_dc120_dc120.c
new file mode 100644
index 00000000000..8e317d231c1
--- /dev/null
+++ b/devel/libgphoto2/patches/patch-camlibs_kodak_dc120_dc120.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-camlibs_kodak_dc120_dc120.c,v 1.1 2018/01/31 10:53:40 jperkin Exp $
+
+Set _POSIX_C_SOURCE correctly.
+
+--- camlibs/kodak/dc120/dc120.c.orig 2015-02-22 08:30:09.000000000 +0000
++++ camlibs/kodak/dc120/dc120.c
+@@ -19,7 +19,9 @@
+ */
+
+ #define _BSD_SOURCE
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ #define _POSIX_C_SOURCE 199309L
++#endif
+
+ #include "config.h"
+
diff --git a/devel/libgphoto2/patches/patch-camlibs_kodak_dc120_library.c b/devel/libgphoto2/patches/patch-camlibs_kodak_dc120_library.c
new file mode 100644
index 00000000000..7c30db40c6b
--- /dev/null
+++ b/devel/libgphoto2/patches/patch-camlibs_kodak_dc120_library.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-camlibs_kodak_dc120_library.c,v 1.1 2018/01/31 10:53:40 jperkin Exp $
+
+Set _POSIX_C_SOURCE correctly.
+
+--- camlibs/kodak/dc120/library.c.orig 2015-02-22 08:30:12.000000000 +0000
++++ camlibs/kodak/dc120/library.c
+@@ -19,7 +19,9 @@
+ */
+
+ #define _BSD_SOURCE
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ #define _POSIX_C_SOURCE 199309L
++#endif
+ #include "config.h"
+
+ #include <stdio.h>
diff --git a/devel/libgphoto2/patches/patch-camlibs_panasonic_coolshot_library.c b/devel/libgphoto2/patches/patch-camlibs_panasonic_coolshot_library.c
new file mode 100644
index 00000000000..b217da156b3
--- /dev/null
+++ b/devel/libgphoto2/patches/patch-camlibs_panasonic_coolshot_library.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-camlibs_panasonic_coolshot_library.c,v 1.1 2018/01/31 10:53:40 jperkin Exp $
+
+Set _POSIX_C_SOURCE correctly.
+
+--- camlibs/panasonic/coolshot/library.c.orig 2014-06-27 05:31:22.000000000 +0000
++++ camlibs/panasonic/coolshot/library.c
+@@ -24,7 +24,9 @@
+ /* Boston, MA 02110-1301 USA */
+ /****************************************************************/
+
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ #define _POSIX_C_SOURCE 199309L
++#endif
+ #define _BSD_SOURCE
+
+ #include "config.h"
diff --git a/devel/libgphoto2/patches/patch-camlibs_st2205_st2205.c b/devel/libgphoto2/patches/patch-camlibs_st2205_st2205.c
new file mode 100644
index 00000000000..b61f4fd1be6
--- /dev/null
+++ b/devel/libgphoto2/patches/patch-camlibs_st2205_st2205.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-camlibs_st2205_st2205.c,v 1.1 2018/01/31 10:53:40 jperkin Exp $
+
+Set _POSIX_C_SOURCE correctly.
+
+--- camlibs/st2205/st2205.c.orig 2014-07-22 21:59:09.000000000 +0000
++++ camlibs/st2205/st2205.c
+@@ -18,7 +18,9 @@
+ * Boston, MA 02110-1301 USA
+ */
+ #define _BSD_SOURCE
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ #define _POSIX_C_SOURCE 1
++#endif
+ #include "config.h"
+
+ #include <stdio.h>
diff --git a/devel/libgphoto2/patches/patch-libgphoto2__port_gphoto2_gphoto2-port-portability.h b/devel/libgphoto2/patches/patch-libgphoto2__port_gphoto2_gphoto2-port-portability.h
new file mode 100644
index 00000000000..cee3cfedf12
--- /dev/null
+++ b/devel/libgphoto2/patches/patch-libgphoto2__port_gphoto2_gphoto2-port-portability.h
@@ -0,0 +1,26 @@
+$NetBSD: patch-libgphoto2__port_gphoto2_gphoto2-port-portability.h,v 1.1 2018/01/31 10:53:40 jperkin Exp $
+
+Set _XOPEN_SOURCE / _POSIX_C_SOURCE correctly.
+
+--- libgphoto2_port/gphoto2/gphoto2-port-portability.h.orig 2014-06-27 05:26:01.000000000 +0000
++++ libgphoto2_port/gphoto2/gphoto2-port-portability.h
+@@ -176,7 +176,9 @@ typedef struct {
+
+ /* XOPEN needed for usleep */
+ #ifndef _XOPEN_SOURCE
++# if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ # define _XOPEN_SOURCE 500
++# endif
+ #else
+ # if ((_XOPEN_SOURCE - 0) < 500)
+ # undef _XOPEN_SOURCE
+@@ -186,7 +188,9 @@ typedef struct {
+
+ /* for nanosleep */
+ # ifndef _POSIX_C_SOURCE
++# if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ # define _POSIX_C_SOURCE 199309
++# endif
+ # endif
+ # include <time.h>
+
diff --git a/devel/libgphoto2/patches/patch-libgphoto2_gphoto2-file.c b/devel/libgphoto2/patches/patch-libgphoto2_gphoto2-file.c
new file mode 100644
index 00000000000..9b26c9b6720
--- /dev/null
+++ b/devel/libgphoto2/patches/patch-libgphoto2_gphoto2-file.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-libgphoto2_gphoto2-file.c,v 1.1 2018/01/31 10:53:40 jperkin Exp $
+
+Set _POSIX_SOURCE correctly.
+
+--- libgphoto2/gphoto2-file.c.orig 2014-11-05 20:37:59.000000000 +0000
++++ libgphoto2/gphoto2-file.c
+@@ -24,7 +24,9 @@
+ * This file contains internal functions. Use of these functions from
+ * external software modules is considered <strong>deprecated</strong>.
+ */
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ #define _POSIX_SOURCE
++#endif
+ #define _BSD_SOURCE
+
+ #include "config.h"