summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorwiedi <wiedi>2016-12-11 19:42:45 +0000
committerwiedi <wiedi>2016-12-11 19:42:45 +0000
commit64a975d83d6fc078eb5b73ef8e9a8eb1550cd084 (patch)
tree87a5d04902debc71e023a94bb2e3875aa320983f /devel
parent7b13462d148cb5543292bfcb6bf4f052b5657771 (diff)
downloadpkgsrc-64a975d83d6fc078eb5b73ef8e9a8eb1550cd084.tar.gz
add patch to work around -Werror=declaration-after-statement on SunOS
Diffstat (limited to 'devel')
-rw-r--r--devel/SDL2/Makefile4
-rw-r--r--devel/SDL2/distinfo3
-rw-r--r--devel/SDL2/patches/patch-src_audio_sun_SDL__sunaudio.c29
3 files changed, 33 insertions, 3 deletions
diff --git a/devel/SDL2/Makefile b/devel/SDL2/Makefile
index 12add6669a5..db308233712 100644
--- a/devel/SDL2/Makefile
+++ b/devel/SDL2/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2016/10/30 18:10:21 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2016/12/11 19:42:45 wiedi Exp $
DISTNAME= SDL2-2.0.5
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.libsdl.org/release/
diff --git a/devel/SDL2/distinfo b/devel/SDL2/distinfo
index 823b9a4f565..2d2cb0dbead 100644
--- a/devel/SDL2/distinfo
+++ b/devel/SDL2/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.22 2016/10/30 18:10:21 wiz Exp $
+$NetBSD: distinfo,v 1.23 2016/12/11 19:42:45 wiedi Exp $
SHA1 (SDL2-2.0.5.tar.gz) = c4f87580630387796df4ac87c362b4f9a721457e
RMD160 (SDL2-2.0.5.tar.gz) = 91283ce74bd451e83651910259cf226cae70e4bb
@@ -6,6 +6,7 @@ SHA512 (SDL2-2.0.5.tar.gz) = 6401f5df08c08316c09bc6ac5b28345c5184bb25770baa5c94c
Size (SDL2-2.0.5.tar.gz) = 4209352 bytes
SHA1 (patch-configure) = 7302a4fc6172b0cb1ca95f36d1cf8516afb6383c
SHA1 (patch-src_audio_bsd_SDL__bsdaudio.c) = a165f34d6ac26d7948a9c36981ea18e2b8bcfa9e
+SHA1 (patch-src_audio_sun_SDL__sunaudio.c) = fc2c8f50b55ae86a1f89e2b829322231240dee7d
SHA1 (patch-src_joystick_bsd_SDL__sysjoystick.c) = 37f19752cbba8def12a210deafec66965e3ad9ac
SHA1 (patch-src_video_SDL__egl.c) = d65856e98b2e49dd364440372ce37679a6f2982b
SHA1 (patch-src_video_x11_SDL__x11opengl.c) = a435634da8b8bd5e74a281b9a26e8fb8a294e56b
diff --git a/devel/SDL2/patches/patch-src_audio_sun_SDL__sunaudio.c b/devel/SDL2/patches/patch-src_audio_sun_SDL__sunaudio.c
new file mode 100644
index 00000000000..73365e151bf
--- /dev/null
+++ b/devel/SDL2/patches/patch-src_audio_sun_SDL__sunaudio.c
@@ -0,0 +1,29 @@
+$NetBSD: patch-src_audio_sun_SDL__sunaudio.c,v 1.1 2016/12/11 19:42:46 wiedi Exp $
+
+move decleration up because SDL wants to use -Werror=declaration-after-statement
+
+--- src/audio/sun/SDL_sunaudio.c.orig 2016-10-20 03:56:26.000000000 +0000
++++ src/audio/sun/SDL_sunaudio.c
+@@ -193,6 +193,10 @@ SUNAUDIO_CloseDevice(_THIS)
+ static int
+ SUNAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
+ {
++#ifdef AUDIO_SETINFO
++ int enc;
++#endif
++ int desired_freq = 0;
+ const int flags = ((iscapture) ? OPEN_FLAGS_INPUT : OPEN_FLAGS_OUTPUT);
+ SDL_AudioFormat format = 0;
+ audio_info_t info;
+@@ -220,10 +224,7 @@ SUNAUDIO_OpenDevice(_THIS, void *handle,
+ return SDL_SetError("Couldn't open %s: %s", devname, strerror(errno));
+ }
+
+-#ifdef AUDIO_SETINFO
+- int enc;
+-#endif
+- int desired_freq = this->spec.freq;
++ desired_freq = this->spec.freq;
+
+ /* Determine the audio parameters from the AudioSpec */
+ switch (SDL_AUDIO_BITSIZE(this->spec.format)) {