pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/mpeg4ip fix compile time error on Darwin in...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/39201ec0dc69
branches:  trunk
changeset: 550425:39201ec0dc69
user:      chuck <chuck%pkgsrc.org@localhost>
date:      Fri Nov 21 21:09:57 2008 +0000

description:
fix compile time error on Darwin in player/lib/audio/portaudio:

In file included from pa_mac_core.c:124:
pa_host.h:55: error: conflicting types for 'uint32'
/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:64: error: previous declaration of 'uint32' was here

use <inttypes.h> and uint32_t instead.

note that according to player/lib/audio/Makefile.am, this old portaudio
lib is used only if HAVE_MAC_OSX.

diffstat:

 multimedia/mpeg4ip/distinfo         |   3 +-
 multimedia/mpeg4ip/patches/patch-ak |  63 +++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+), 1 deletions(-)

diffs (81 lines):

diff -r c819b4b96f4a -r 39201ec0dc69 multimedia/mpeg4ip/distinfo
--- a/multimedia/mpeg4ip/distinfo       Fri Nov 21 18:56:55 2008 +0000
+++ b/multimedia/mpeg4ip/distinfo       Fri Nov 21 21:09:57 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2007/08/09 20:02:36 drochner Exp $
+$NetBSD: distinfo,v 1.11 2008/11/21 21:09:57 chuck Exp $
 
 SHA1 (mpeg4ip-1.5.0.1.tar.gz) = 1271de695ed65284d9c39aa91bf26c5494603fd3
 RMD160 (mpeg4ip-1.5.0.1.tar.gz) = fee5c21c17a470e6de349e07d233a1eb46b2064a
@@ -13,3 +13,4 @@
 SHA1 (patch-ah) = b5db1d879cf790c2b9c7e9132b14e1fc59e9cb4d
 SHA1 (patch-ai) = 8815f81cc09bb36944bf33691aaf9060b545c76e
 SHA1 (patch-aj) = f0aeab4c17bb8a737a9ae3d4385c9f2989540ea7
+SHA1 (patch-ak) = 8a89f6eb4860b12479a062303c15a4f09416c964
diff -r c819b4b96f4a -r 39201ec0dc69 multimedia/mpeg4ip/patches/patch-ak
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mpeg4ip/patches/patch-ak       Fri Nov 21 21:09:57 2008 +0000
@@ -0,0 +1,63 @@
+$NetBSD: patch-ak,v 1.1 2008/11/21 21:09:57 chuck Exp $
+
+--- player/lib/audio/portaudio/pa_host.h.orig  2004-04-01 18:54:23.000000000 -0500
++++ player/lib/audio/portaudio/pa_host.h       2008-11-21 15:46:31.000000000 -0500
+@@ -48,18 +48,7 @@
+ #define SUPPORT_AUDIO_CAPTURE  (1)
+ #endif
+ 
+-#ifndef int32
+-    typedef long int32;
+-#endif
+-#ifndef uint32
+-    typedef unsigned long uint32;
+-#endif
+-#ifndef int16
+-    typedef short int16;
+-#endif
+-#ifndef uint16
+-    typedef unsigned short uint16;
+-#endif
++#include <inttypes.h>
+ 
+ /* Used to convert between various sample formats. */
+ typedef void (PortAudioConverter)(
+@@ -75,11 +64,11 @@
+ 
+ typedef struct internalPortAudioStream
+ {
+-    uint32                    past_Magic;  /* ID for struct to catch bugs. */
++    uint32_t                  past_Magic;  /* ID for struct to catch bugs. */
+     
+     /* Begin user specified information. */
+-    uint32                    past_FramesPerUserBuffer;
+-    uint32                    past_NumUserBuffers;
++    uint32_t                  past_FramesPerUserBuffer;
++    uint32_t                  past_NumUserBuffers;
+     double                    past_SampleRate;     /* Closest supported sample rate. */
+     int                       past_NumInputChannels;
+     int                       past_NumOutputChannels;
+@@ -89,7 +78,7 @@
+     PaSampleFormat            past_OutputSampleFormat;
+     PortAudioCallback        *past_Callback;
+     void                     *past_UserData;
+-    uint32                    past_Flags;
++    uint32_t                  past_Flags;
+     /* End user specified information. */
+     
+     void                     *past_DeviceData;
+@@ -102,11 +91,11 @@
+     volatile int              past_StopNow;       /* Background should stop playing now. */
+     /* These buffers are used when the native format does not match the user format. */
+     void                     *past_InputBuffer;
+-    uint32                    past_InputBufferSize; /* Size in bytes of the input buffer. */
++    uint32_t                  past_InputBufferSize; /* Size in bytes of the input buffer. */
+     void                     *past_OutputBuffer;
+-    uint32                    past_OutputBufferSize;
++    uint32_t                  past_OutputBufferSize;
+     /* Measurements */
+-    uint32                    past_NumCallbacks;
++    uint32_t                  past_NumCallbacks;
+     PaTimestamp               past_FrameCount;    /* Frames output to buffer. */
+     /* For measuring CPU utilization. */
+     double                    past_AverageInsideCount;



Home | Main Index | Thread Index | Old Index