[60401] trunk/dports/audio/libsdl_mixer

blb at macports.org blb at macports.org
Tue Nov 10 18:54:20 PST 2009


Revision: 60401
          http://trac.macports.org/changeset/60401
Author:   blb at macports.org
Date:     2009-11-10 18:54:20 -0800 (Tue, 10 Nov 2009)
Log Message:
-----------
audio/libsdl_mixer - fix build for Mac OS X < 10.6; ticket #22452

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

Added Paths:
-----------
    trunk/dports/audio/libsdl_mixer/files/
    trunk/dports/audio/libsdl_mixer/files/patch-leopard.diff

Modified: trunk/dports/audio/libsdl_mixer/Portfile
===================================================================
--- trunk/dports/audio/libsdl_mixer/Portfile	2009-11-11 01:54:09 UTC (rev 60400)
+++ trunk/dports/audio/libsdl_mixer/Portfile	2009-11-11 02:54:20 UTC (rev 60401)
@@ -20,6 +20,8 @@
 master_sites    ${homepage}release/
 distname        ${my_name}-${version}
 
+patchfiles      patch-leopard.diff
+
 checksums       md5     a357558552436b0b5ea0333b3e2327df \
                 sha1    ee644e805aca76c0ad368c3697206f7ee3266a33 \
                 rmd160  973cded82066e4fa35179a753b04d831ee3b28f3
@@ -34,7 +36,7 @@
                 --with-smpeg-prefix=${prefix} \
                 --disable-smpegtest
 
-patch {
+post-patch {
     reinplace "s|`find_lib\\(.*\\.dylib\\)|${prefix}/lib/`find_lib\\1|g" ${worksrcpath}/configure
 }
 

Added: trunk/dports/audio/libsdl_mixer/files/patch-leopard.diff
===================================================================
--- trunk/dports/audio/libsdl_mixer/files/patch-leopard.diff	                        (rev 0)
+++ trunk/dports/audio/libsdl_mixer/files/patch-leopard.diff	2009-11-11 02:54:20 UTC (rev 60401)
@@ -0,0 +1,13 @@
+Index: native_midi/native_midi_macosx.c
+===================================================================
+--- native_midi/native_midi_macosx.c	(Revision 5228)
++++ native_midi/native_midi_macosx.c	(Arbeitskopie)
+@@ -107,7 +107,7 @@
+         if (AUGraphGetIndNode(graph, i, &node) != noErr)
+             continue;  /* better luck next time. */
+ 
+-#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4 /* this is deprecated, but works back to 10.0 */
++#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060 /* this is deprecated, but works back to 10.0 */
+         {
+             struct ComponentDescription desc;
+             UInt32 classdatasize = 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091110/f05154dd/attachment-0001.html>


More information about the macports-changes mailing list