Revision: 133349 https://trac.macports.org/changeset/133349 Author: devans@macports.org Date: 2015-02-26 13:36:16 -0800 (Thu, 26 Feb 2015) Log Message: ----------- opusfile: patch to fix build for 10.5.8 and earlier (#46968). Modified Paths: -------------- trunk/dports/audio/opusfile/Portfile Added Paths: ----------- trunk/dports/audio/opusfile/files/ trunk/dports/audio/opusfile/files/patch-src-http.c.diff Modified: trunk/dports/audio/opusfile/Portfile =================================================================== --- trunk/dports/audio/opusfile/Portfile 2015-02-26 21:30:33 UTC (rev 133348) +++ trunk/dports/audio/opusfile/Portfile 2015-02-26 21:36:16 UTC (rev 133349) @@ -5,6 +5,7 @@ name opusfile version 0.6 +revision 1 categories audio license BSD platforms darwin @@ -25,6 +26,10 @@ port:libogg \ port:libopus +patchfiles patch-src-http.c.diff + +configure.args --disable-silent-rules + livecheck.type regex livecheck.url ${master_sites} livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" Added: trunk/dports/audio/opusfile/files/patch-src-http.c.diff =================================================================== --- trunk/dports/audio/opusfile/files/patch-src-http.c.diff (rev 0) +++ trunk/dports/audio/opusfile/files/patch-src-http.c.diff 2015-02-26 21:36:16 UTC (rev 133349) @@ -0,0 +1,11 @@ +--- src/http.c.orig 2015-02-26 10:23:12.000000000 -0800 ++++ src/http.c 2015-02-26 10:27:55.000000000 -0800 +@@ -721,7 +721,7 @@ + char service[6]; + memset(&hints,0,sizeof(hints)); + hints.ai_socktype=SOCK_STREAM; +-#if !defined(_WIN32) ++#if defined(AI_NUMERICSERV) + hints.ai_flags=AI_NUMERICSERV; + #endif + OP_ASSERT(_port<=65535U);