pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/pkgsrc-2017Q1]: pkgsrc/audio/libsamplerate Pullup ticket #5358 - requ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a3766c0df636
branches:  pkgsrc-2017Q1
changeset: 360295:a3766c0df636
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Tue Apr 25 17:59:54 2017 +0000

description:
Pullup ticket #5358 - requested by sevan
audio/libsamplerate: build fix

Revisions pulled up:
- audio/libsamplerate/distinfo                                  1.12
- audio/libsamplerate/patches/patch-examples_audio__out.h       1.1
- audio/libsamplerate/patches/patch-examples_audio_out.c        1.2

---
   Module Name:    pkgsrc
   Committed By:   maya
   Date:           Mon Apr 24 10:08:40 UTC 2017

   Modified Files:
           pkgsrc/audio/libsamplerate: distinfo
           pkgsrc/audio/libsamplerate/patches: patch-examples_audio_out.c
   Added Files:
           pkgsrc/audio/libsamplerate/patches: patch-examples_audio__out.h

   Log Message:
   libsamplerate: declare AUDIO_OUT_s once and in audio_out.h
   Fixes build failure with GCC 4.5.3 (netbsd 6.0)

diffstat:

 audio/libsamplerate/distinfo                            |   5 ++-
 audio/libsamplerate/patches/patch-examples_audio__out.h |  17 +++++++++++++++
 audio/libsamplerate/patches/patch-examples_audio_out.c  |  19 ++++++++++++++--
 3 files changed, 36 insertions(+), 5 deletions(-)

diffs (65 lines):

diff -r 843fcc7be470 -r a3766c0df636 audio/libsamplerate/distinfo
--- a/audio/libsamplerate/distinfo      Tue Apr 25 17:54:53 2017 +0000
+++ b/audio/libsamplerate/distinfo      Tue Apr 25 17:59:54 2017 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.10.12.1 2017/04/13 11:25:37 bsiegert Exp $
+$NetBSD: distinfo,v 1.10.12.2 2017/04/25 17:59:54 bsiegert Exp $
 
 SHA1 (libsamplerate-0.1.9.tar.gz) = ed60f957a4ff87aa15cbb1f3dbd886fa7e5e9566
 RMD160 (libsamplerate-0.1.9.tar.gz) = ec6f3542b5e43f398ad7e5dfd9dc35902b06d762
 SHA512 (libsamplerate-0.1.9.tar.gz) = 78596657963cbf06785e3e6e1190b093df71da52ca340e75bd8246a962cd79dd1c90fa5527c607cebcb296e2c1ee605015278b274e3b768f2f3fbeb0eadfb728
 Size (libsamplerate-0.1.9.tar.gz) = 4336641 bytes
-SHA1 (patch-examples_audio_out.c) = 7b6cbcdc31e8e7da1d3453f9a59ee910296e4109
+SHA1 (patch-examples_audio__out.h) = 52d0f7666d4ff5b1463e7242f3ff2befc0d35606
+SHA1 (patch-examples_audio_out.c) = 4fb964da017372431dde99b71b5aa96cbb66a64c
diff -r 843fcc7be470 -r a3766c0df636 audio/libsamplerate/patches/patch-examples_audio__out.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/libsamplerate/patches/patch-examples_audio__out.h   Tue Apr 25 17:59:54 2017 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-examples_audio__out.h,v 1.1.2.2 2017/04/25 17:59:54 bsiegert Exp $
+
+Declare AUDIO_OUT_s once and in audio_out.h
+
+--- examples/audio_out.h.orig  2016-09-13 10:20:20.000000000 +0000
++++ examples/audio_out.h
+@@ -6,7 +6,9 @@
+ ** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
+ */
+ 
+-typedef       struct AUDIO_OUT_s AUDIO_OUT ;
++typedef       struct AUDIO_OUT_s
++{     int magic ;
++} AUDIO_OUT ;
+ 
+ typedef int (*get_audio_callback_t) (void *callback_data, float *samples, int frames) ;
+ 
diff -r 843fcc7be470 -r a3766c0df636 audio/libsamplerate/patches/patch-examples_audio_out.c
--- a/audio/libsamplerate/patches/patch-examples_audio_out.c    Tue Apr 25 17:54:53 2017 +0000
+++ b/audio/libsamplerate/patches/patch-examples_audio_out.c    Tue Apr 25 17:59:54 2017 +0000
@@ -1,10 +1,23 @@
-$NetBSD: patch-examples_audio_out.c,v 1.1 2012/07/04 08:59:23 adam Exp $
+$NetBSD: patch-examples_audio_out.c,v 1.1.38.1 2017/04/25 17:59:54 bsiegert Exp $
 
 Fix building on Mac OS X.
+declare typedef AUDIO_OUT_s once and in audio_out.h
 
---- examples/audio_out.c.orig  2012-06-22 20:14:44.000000000 +0000
+--- examples/audio_out.c.orig  2016-09-13 10:20:20.000000000 +0000
 +++ examples/audio_out.c
-@@ -168,7 +168,6 @@ linux_close (AUDIO_OUT *audio_out)
+@@ -33,11 +33,6 @@
+ #define MAKE_MAGIC(a,b,c,d,e,f,g,h)           \
+                       ((a) + ((b) << 1) + ((c) << 2) + ((d) << 3) + ((e) << 4) + ((f) << 5) + ((g) << 6) + ((h) << 7))
+ 
+-typedef       struct AUDIO_OUT_s
+-{     int magic ;
+-} AUDIO_OUT ;
+-
+-
+ /*------------------------------------------------------------------------------
+ **    Linux (ALSA and OSS) functions for playing a sound.
+ */
+@@ -432,7 +427,6 @@ opensoundsys_close (AUDIO_OUT *audio_out
  
  #if (defined (__MACH__) && defined (__APPLE__)) /* MacOSX */
  



Home | Main Index | Thread Index | Old Index