[88638] trunk/dports/audio/portaudio

hum at macports.org hum at macports.org
Fri Jan 6 03:38:41 PST 2012


Revision: 88638
          http://trac.macports.org/changeset/88638
Author:   hum at macports.org
Date:     2012-01-06 03:38:38 -0800 (Fri, 06 Jan 2012)
Log Message:
-----------
portaudio: add a patch for clang; see #32720.

Modified Paths:
--------------
    trunk/dports/audio/portaudio/Portfile

Added Paths:
-----------
    trunk/dports/audio/portaudio/files/
    trunk/dports/audio/portaudio/files/patch-clang.diff

Modified: trunk/dports/audio/portaudio/Portfile
===================================================================
--- trunk/dports/audio/portaudio/Portfile	2012-01-06 07:54:57 UTC (rev 88637)
+++ trunk/dports/audio/portaudio/Portfile	2012-01-06 11:38:38 UTC (rev 88638)
@@ -36,6 +36,10 @@
 
 worksrcdir          ${name}
 
+if {${configure.compiler} == "clang"} {
+    patchfiles-append   patch-clang.diff
+}
+
 post-destroot {
     xinstall -d ${destroot}${prefix}/share/doc/${name}
     xinstall -m 644 -W ${worksrcpath} \

Added: trunk/dports/audio/portaudio/files/patch-clang.diff
===================================================================
--- trunk/dports/audio/portaudio/files/patch-clang.diff	                        (rev 0)
+++ trunk/dports/audio/portaudio/files/patch-clang.diff	2012-01-06 11:38:38 UTC (rev 88638)
@@ -0,0 +1,20 @@
+--- src/hostapi/coreaudio/pa_mac_core.c.orig	2011-10-20 18:40:12.000000000 +0900
++++ src/hostapi/coreaudio/pa_mac_core.c	2012-01-06 18:52:44.000000000 +0900
+@@ -629,7 +629,7 @@
+ 
+     VVDBUG(("InitializeDeviceInfo(): macCoreDeviceId=%ld\n", macCoreDeviceId));
+ 
+-    memset(deviceInfo, 0, sizeof(deviceInfo));
++    memset(deviceInfo, 0, sizeof(*deviceInfo));
+ 
+     deviceInfo->structVersion = 2;
+     deviceInfo->hostApi = hostApiIndex;
+--- test/patest_mono.c.orig	2006-08-26 17:27:53.000000000 +0900
++++ test/patest_mono.c	2012-01-06 20:21:35.000000000 +0900
+@@ -152,4 +152,4 @@
+     fprintf( stderr, "Error number: %d\n", err );
+     fprintf( stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
+     return err;
+-}
+\ No newline at end of file
++}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120106/5f430f50/attachment.html>


More information about the macports-changes mailing list