[130866] trunk/dports/www/serf1/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Fri Jan 2 21:18:33 PST 2015


Revision: 130866
          https://trac.macports.org/changeset/130866
Author:   jeremyhu at macports.org
Date:     2015-01-02 21:18:33 -0800 (Fri, 02 Jan 2015)
Log Message:
-----------
serf1: Expand MACOSX_DEPLOYMENT_TARGET workaround to Leopard too

Modified Paths:
--------------
    trunk/dports/www/serf1/Portfile

Modified: trunk/dports/www/serf1/Portfile
===================================================================
--- trunk/dports/www/serf1/Portfile	2015-01-03 02:49:54 UTC (rev 130865)
+++ trunk/dports/www/serf1/Portfile	2015-01-03 05:18:33 UTC (rev 130866)
@@ -41,8 +41,14 @@
                 CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
                 LINKFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
 
-platform darwin 8 {
-    build.args-append   CC="MACOSX_DEPLOYMENT_TARGET=10.4 ${configure.cc}"
+platform darwin {
+    # Workaround buggy Leopard headers combined with scons buggy lack of MACOSX_DEPLOYMENT_TARGET propagation:
+    #
+    # $ echo | /usr/bin/gcc-4.2 -include Availability.h -include available.h -x c -
+    # In file included from <command-line>:0:
+    # /usr/include/available.h:111:6: error: #error __MAC_OS_X_VERSION_MAX_ALLOWED must be >= __MAC_OS_X_VERSION_MIN_REQUIRED
+
+    build.args-append   CC="MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target} ${configure.cc}"
 }
 
 build.target    APR=${prefix} \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150102/200dc533/attachment.html>


More information about the macports-changes mailing list