[130976] trunk/dports/lang/libcxx
jeremyhu at macports.org
jeremyhu at macports.org
Sun Jan 4 02:44:48 PST 2015
Revision: 130976
https://trac.macports.org/changeset/130976
Author: jeremyhu at macports.org
Date: 2015-01-04 02:44:48 -0800 (Sun, 04 Jan 2015)
Log Message:
-----------
libcxx: Some progress on Leopard, but not there yet. We need to bring in libcompiler-rt for __divdi3.
Modified Paths:
--------------
trunk/dports/lang/libcxx/Portfile
Added Paths:
-----------
trunk/dports/lang/libcxx/files/
trunk/dports/lang/libcxx/files/leopard-buildit.patch
Modified: trunk/dports/lang/libcxx/Portfile
===================================================================
--- trunk/dports/lang/libcxx/Portfile 2015-01-04 10:41:52 UTC (rev 130975)
+++ trunk/dports/lang/libcxx/Portfile 2015-01-04 10:44:48 UTC (rev 130976)
@@ -37,9 +37,9 @@
set root_name ${name}-${version}-${revision}
platform darwin {
- if {${os.major} < 10} {
+ if {${os.major} < 9} {
pre-fetch {
- ui_error "${name} is not supported on Leopard or earlier."
+ ui_error "${name} is not supported on Tiger or earlier."
error "unsupported platform"
}
}
@@ -61,6 +61,9 @@
supported_archs i386 x86_64
+ patchfiles-append \
+ leopard-buildit.patch
+
build.dir ${worksrcpath}/lib
build.cmd ./buildit
build.env-append \
@@ -72,8 +75,8 @@
# We want to use the host's libc++ everywhere because we want to ensure
# that only *ONE* copy of this library is in any process's address space.
- # On Snow Leopard, this port provides this library in /usr for binary
- # compatibility with Lion and later.
+ # On Snow Leopard and earlier, this port provides this library in /usr for
+ # binary compatibility with Lion and later.
#
# On newer OS version, this port does not install the content to /usr and
# just leaves it to expert users who may want to replace their system
Added: trunk/dports/lang/libcxx/files/leopard-buildit.patch
===================================================================
--- trunk/dports/lang/libcxx/files/leopard-buildit.patch (rev 0)
+++ trunk/dports/lang/libcxx/files/leopard-buildit.patch 2015-01-04 10:44:48 UTC (rev 130976)
@@ -0,0 +1,11 @@
+--- lib/buildit.orig 2015-01-04 02:09:13.000000000 -0800
++++ lib/buildit 2015-01-04 02:09:42.000000000 -0800
+@@ -50,7 +50,7 @@ case $TRIPLE in
+ RC_CFLAGS="-arch i386 -arch x86_64"
+ fi
+ SOEXT=dylib
+- if [ "$MACOSX_DEPLOYMENT_TARGET" = "10.6" ]
++ if [ "$MACOSX_DEPLOYMENT_TARGET" = "10.5" ] || [ "$MACOSX_DEPLOYMENT_TARGET" = "10.6" ]
+ then
+ EXTRA_FLAGS="-nostdinc++ -std=c++11 -U__STRICT_ANSI__"
+ LDSHARED_FLAGS="-o libc++.1.dylib \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150104/6ff015e0/attachment-0001.html>
More information about the macports-changes
mailing list