[130973] trunk/dports/lang/libcxxabi/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Sun Jan 4 01:49:32 PST 2015
Revision: 130973
https://trac.macports.org/changeset/130973
Author: jeremyhu at macports.org
Date: 2015-01-04 01:49:32 -0800 (Sun, 04 Jan 2015)
Log Message:
-----------
libcxxabi: Build on Leopard
Modified Paths:
--------------
trunk/dports/lang/libcxxabi/Portfile
Modified: trunk/dports/lang/libcxxabi/Portfile
===================================================================
--- trunk/dports/lang/libcxxabi/Portfile 2015-01-04 09:19:47 UTC (rev 130972)
+++ trunk/dports/lang/libcxxabi/Portfile 2015-01-04 09:49:32 UTC (rev 130973)
@@ -41,9 +41,9 @@
use_configure no
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"
}
}
@@ -63,6 +63,22 @@
supported_archs i386 x86_64
+ if {${os.major} < 10} {
+ patchfiles-append \
+ leopard.patch
+
+ depends_build-append \
+ port:libunwind \
+ port:libmacho
+
+ pre-build {
+ system "nm -g ${prefix}/lib/libmacho.a ${prefix}/lib/libunwind.a 2> /dev/null | grep ' \[DST\] ' | awk '{print \$3}' > ${worksrcpath}/unexported_symbols"
+ }
+
+ build.env-append \
+ EXTRA_LDFLAGS="${prefix}/lib/libmacho.a ${prefix}/lib/libunwind.a -unexported_symbols_list ${worksrcpath}/unexported_symbols"
+ }
+
build.dir ${worksrcpath}/lib
build.cmd ./buildit
build.env-append \
@@ -70,6 +86,7 @@
CXX="${configure.cxx} ${configure.cppflags}" \
RC_XBS=1 \
RC_CFLAGS="[get_canonical_archflags]" \
+ RC_ProjectSourceVersion="${version}" \
TRIPLE="-apple-darwin${os.major}"
# We want to use the host's libc++abi everywhere because we want to ensure
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150104/89979560/attachment.html>
More information about the macports-changes
mailing list