[90446] trunk/dports/devel/ld64/Portfile

mfeiri at macports.org mfeiri at macports.org
Mon Mar 5 14:40:05 PST 2012


Revision: 90446
          http://trac.macports.org/changeset/90446
Author:   mfeiri at macports.org
Date:     2012-03-05 14:40:05 -0800 (Mon, 05 Mar 2012)
Log Message:
-----------
fix libLTO linking #33439 and accept darwin 8 support #32105

Modified Paths:
--------------
    trunk/dports/devel/ld64/Portfile

Modified: trunk/dports/devel/ld64/Portfile
===================================================================
--- trunk/dports/devel/ld64/Portfile	2012-03-05 22:08:09 UTC (rev 90445)
+++ trunk/dports/devel/ld64/Portfile	2012-03-05 22:40:05 UTC (rev 90446)
@@ -7,13 +7,16 @@
 
 name                    ld64
 version                 128.2
+revision                1
 set llvm_version        3.0
 categories              devel
 maintainers             mfeiri
 homepage                http://opensource.apple.com/source/${name}/
 master_sites            http://opensource.apple.com/tarballs/${name}/
 license                 APSL-2.0
-depends_build           port:llvm-${llvm_version}
+depends_build           port:llvm-${llvm_version} port:libunwind-headers \
+                        path:include/mach-o/dyld_priv.h:dyld-headers \
+                        path:include/mach-o/arm/reloc.h:cctools-headers
 universal_variant       no
 description             ld64 is the new mach-o linker
 long_description        ld64 combines several object files and libraries, \
@@ -27,7 +30,7 @@
 xcode.destroot.path     ${prefix}/bin
 
 post-extract {
-    reinplace {s|/Developer/usr/lib|$(DEVELOPER_DIR)/usr/lib|g} \
+    reinplace "s|/Developer/usr/lib|${prefix}/libexec/llvm-${llvm_version}/lib|g" \
         ${worksrcpath}/ld64.xcodeproj/project.pbxproj
      reinplace "s|/usr/share/man/man1|${prefix}/share/man/man1|g" \
         ${worksrcpath}/ld64.xcodeproj/project.pbxproj
@@ -50,49 +53,47 @@
     destroot.env    OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags] -I${prefix}/include'
 }
 
+post-destroot {
+    system "install_name_tool -change ${prefix}/libexec/llvm-${llvm_version}/lib/libLTO.dylib \
+            @executable_path/../lib/libLTO.dylib ${destroot}${prefix}/bin/ld"
+}
 
-if {${os.major} < 9} {
+
+if {${os.major} < 8} {
     pre-fetch {
-        ui_error "${name} requires Mac OS X 10.5 or later."
+        ui_error "${name} requires Mac OS X 10.4 or later."
         return -code error "incompatible Mac OS X version"
     }
 }
 
 
+platform darwin 8 {
+    version             62.1
+    checksums           rmd160 5b53ecb7b7a7e40e7420192fdf609e43151a736a \
+                        sha256 82ccb66eb5a452b8bb47771ebbdb73bed7e8824e3cbd58fa2d6d6fc91ca26b87
+    depends_build       port:llvm-${llvm_version}
+}
+
 platform darwin 9 {
-
     version             85.2.1
-    revision            2
+    revision            3
     checksums           rmd160 42c80bd4ad6e9f96a757245e6a2b95084c009ff1 \
                         sha256 4bcbcbdfd62efdc46c51700b8f5dae2cbd1638e9e50f649d5c7f242d32fca804
-
+    depends_build       port:llvm-${llvm_version}
     patchfiles          patch-MATH85-ld.cpp.diff
 }
 
-
 platform darwin 10 {
-
     version             127.2
-    revision            2
+    revision            3
     checksums           rmd160  8ee709341549a1944732daef6ebab7ef1acfcc6e \
                         sha256  97b75547b2bd761306ab3e15ae297f01e7ab9760b922bc657f4ef72e4e052142
-
-    depends_build-append port:libunwind-headers \
-                        path:include/mach-o/dyld_priv.h:dyld-headers \
-                        path:include/mach-o/arm/reloc.h:cctools-headers
-
     post-destroot {
         file rename ${destroot}${prefix}/bin/libprunetrie.a ${destroot}${prefix}/lib/libprunetrie.a
     }
 }
 
-
 platform darwin 11 {
-
-    depends_build-append port:libunwind-headers \
-                        path:include/mach-o/dyld_priv.h:dyld-headers \
-                        path:include/mach-o/arm/reloc.h:cctools-headers
-
     post-destroot {
         file rename ${destroot}${prefix}/bin/libprunetrie.a ${destroot}${prefix}/lib/libprunetrie.a
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120305/d364bca1/attachment.html>


More information about the macports-changes mailing list