[110337] trunk/dports/net/libproxy/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Fri Aug 30 01:02:49 PDT 2013


Revision: 110337
          https://trac.macports.org/changeset/110337
Author:   jeremyhu at macports.org
Date:     2013-08-30 01:02:49 -0700 (Fri, 30 Aug 2013)
Log Message:
-----------
libproxy: Workaround possible build failure

Modified Paths:
--------------
    trunk/dports/net/libproxy/Portfile

Modified: trunk/dports/net/libproxy/Portfile
===================================================================
--- trunk/dports/net/libproxy/Portfile	2013-08-30 07:29:41 UTC (rev 110336)
+++ trunk/dports/net/libproxy/Portfile	2013-08-30 08:02:49 UTC (rev 110337)
@@ -96,7 +96,10 @@
 }
 
 post-patch {
-	reinplace "s:-D_POSIX_C_SOURCE=1:-D_POSIX_C_SOURCE=200112L:" ${worksrcpath}/libproxy/CMakeLists.txt
+	if {${os.major} < 13 && [string match "*clang*" ${configure.compiler}]} {
+		# <rdar://problem/12941376>
+		reinplace "s:-D_POSIX_C_SOURCE=200112L:-D_POSIX_C_SOURCE=200112L -D_DARWIN_C_SOURCE=1:" ${worksrcpath}/libproxy/CMakeLists.txt
+	}
 }
 
 livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130830/b55671ff/attachment.html>


More information about the macports-changes mailing list