[90363] trunk/dports/devel/ld64/Portfile
mfeiri at macports.org
mfeiri at macports.org
Sat Mar 3 11:22:06 PST 2012
Revision: 90363
http://trac.macports.org/changeset/90363
Author: mfeiri at macports.org
Date: 2012-03-03 11:22:05 -0800 (Sat, 03 Mar 2012)
Log Message:
-----------
ld64: update to 128.2, better fix for #32253, simplifications
Modified Paths:
--------------
trunk/dports/devel/ld64/Portfile
Modified: trunk/dports/devel/ld64/Portfile
===================================================================
--- trunk/dports/devel/ld64/Portfile 2012-03-03 19:13:09 UTC (rev 90362)
+++ trunk/dports/devel/ld64/Portfile 2012-03-03 19:22:05 UTC (rev 90363)
@@ -6,8 +6,7 @@
minimum_xcodeversions {10 3.2.3}
name ld64
-version 127.2
-revision 1
+version 128.2
set llvm_version 3.0
categories devel
maintainers mfeiri
@@ -20,7 +19,38 @@
long_description ld64 combines several object files and libraries, \
resolves references, and produces an ouput file.
+checksums ${distname}${extract.suffix} \
+ rmd160 0da68b89669233d7b6cc6ebdb92482e191bc9051 \
+ sha256 96a912464e2d4d3d7cdaab0744003b0fa93d139f203c82867f659ee94b4ae9f7
+xcode.target all ObjectDump machocheck
+xcode.destroot.path ${prefix}/bin
+
+post-extract {
+ reinplace {s|/Developer/usr/lib|$(DEVELOPER_DIR)/usr/lib|g} \
+ ${worksrcpath}/ld64.xcodeproj/project.pbxproj
+ reinplace "s|/usr/share/man/man1|${prefix}/share/man/man1|g" \
+ ${worksrcpath}/ld64.xcodeproj/project.pbxproj
+ reinplace "s|usr/share/man/man1|${prefix}/share/man/man1|g" \
+ ${worksrcpath}/ld64.xcodeproj/project.pbxproj
+ reinplace "s|/usr/local|${prefix}|g" \
+ ${worksrcpath}/ld64.xcodeproj/project.pbxproj
+ reinplace "s|/Developer/usr/local|${prefix}|g" \
+ ${worksrcpath}/ld64.xcodeproj/project.pbxproj
+ reinplace "s|\$(RC_ProjectSourceVersion)|${version}|g" \
+ ${worksrcpath}/ld64.xcodeproj/project.pbxproj
+}
+
+pre-build {
+ build.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags] -I${prefix}/include'
+ destroot.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags] -I${prefix}/include'
+}
+pre-destroot {
+ build.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags] -I${prefix}/include'
+ destroot.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags] -I${prefix}/include'
+}
+
+
if {${os.major} < 9} {
pre-fetch {
ui_error "${name} requires Mac OS X 10.5 or later."
@@ -32,92 +62,25 @@
platform darwin 9 {
version 85.2.1
- revision 1
- checksums md5 6dac3ce6d3b495df9a3996cd5781c874 \
- sha1 31a7debf4c407c32b8bd1a51a4b4a7ae68dc8b85 \
- rmd160 42c80bd4ad6e9f96a757245e6a2b95084c009ff1
+ revision 2
+ checksums rmd160 42c80bd4ad6e9f96a757245e6a2b95084c009ff1 \
+ sha256 4bcbcbdfd62efdc46c51700b8f5dae2cbd1638e9e50f649d5c7f242d32fca804
patchfiles patch-MATH85-ld.cpp.diff
- xcode.target all ObjectDump machocheck
- xcode.destroot.path ${prefix}/bin
-
- post-patch {
- reinplace {s|/Developer/usr/lib|$(DEVELOPER_DIR)/usr/lib|g} \
- ${worksrcpath}/ld64.xcodeproj/project.pbxproj
- reinplace "s|/usr/share/man/man1|${prefix}/share/man/man1|g" \
- ${worksrcpath}/ld64.xcodeproj/project.pbxproj
- reinplace "s|/Developer/usr/local|${prefix}|g" \
- ${worksrcpath}/ld64.xcodeproj/project.pbxproj
- reinplace "s|\$(RC_ProjectSourceVersion)|${version}|g" \
- ${worksrcpath}/ld64.xcodeproj/project.pbxproj
- }
-
- pre-build {
- build.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags]'
- destroot.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags]'
- }
- pre-destroot {
- build.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags]'
- destroot.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags]'
- }
-
}
platform darwin 10 {
- master_sites-append http://opensource.apple.com/source/dyld/dyld-195.5/include/mach-o/dyld_priv.h?txt&dummy=:dyld \
- http://opensource.apple.com/source/cctools/cctools-806/include/mach-o/arm/reloc.h?txt&dummy=:cctools
- distfiles-append dyld_priv.h:dyld reloc.h:cctools
- extract.only ${distname}${extract.suffix}
- checksums ${distname}${extract.suffix} \
- md5 fceb0f082ad30c5b03ff357f97a93f53 \
- sha1 df51258a75e4c5f0df185b99f74f7232d310f45e \
- rmd160 8ee709341549a1944732daef6ebab7ef1acfcc6e \
- dyld_priv.h \
- md5 f553d448c70abe57b2f7f85fcca8c59e \
- sha1 bc699271351794c3fa30e93f18ff2646780ee125 \
- rmd160 5ab99fdb47eda0ce2dcda5b57a7d3d3f02e627e7 \
- reloc.h \
- md5 6ce50950669d083aab458f196ec3a2fc \
- sha1 87f0265f0f6abefd1e2cf12fe29242fb219fd71f \
- rmd160 b9c6c4fcf7731a508b82dd09af81fa8b26caf3ef
+ version 127.2
+ revision 2
+ checksums rmd160 8ee709341549a1944732daef6ebab7ef1acfcc6e \
+ sha256 97b75547b2bd761306ab3e15ae297f01e7ab9760b922bc657f4ef72e4e052142
- # dyld_priv.h has been stealth-updated, remove this code when updating to the next version
- dist_subdir ${name}/${version}_1
+ depends_build-append port:libunwind-headers \
+ path:include/mach-o/dyld_priv.h:dyld-headers \
+ path:include/mach-o/arm/reloc.h:cctools-headers
- depends_build-append port:libunwind-headers
- xcode.target all ObjectDump machocheck
- xcode.configuration Release
- xcode.destroot.path ${prefix}/bin
-
- post-extract {
- file mkdir ${worksrcpath}/build/${xcode.configuration}/include/mach-o/arm
- file copy ${worksrcpath}/src/ld/parsers ${worksrcpath}/build/${xcode.configuration}/include/
- file copy ${distpath}/dyld_priv.h ${worksrcpath}/build/${xcode.configuration}/include/mach-o/
- file copy ${distpath}/reloc.h ${worksrcpath}/build/${xcode.configuration}/include/mach-o/arm/
-
- reinplace {s|/Developer/usr/lib|$(DEVELOPER_DIR)/usr/lib|g} \
- ${worksrcpath}/ld64.xcodeproj/project.pbxproj
- reinplace "s|/usr/share/man/man1|${prefix}/share/man/man1|g" \
- ${worksrcpath}/ld64.xcodeproj/project.pbxproj
- reinplace "s|usr/share/man/man1|${prefix}/share/man/man1|g" \
- ${worksrcpath}/ld64.xcodeproj/project.pbxproj
- reinplace "s|/usr/local|${prefix}|g" \
- ${worksrcpath}/ld64.xcodeproj/project.pbxproj
- reinplace "s|\$(RC_ProjectSourceVersion)|${version}|g" \
- ${worksrcpath}/ld64.xcodeproj/project.pbxproj
- }
-
- pre-build {
- build.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags]'
- destroot.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags]'
- }
- pre-destroot {
- build.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags]'
- destroot.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags]'
- }
-
post-destroot {
file rename ${destroot}${prefix}/bin/libprunetrie.a ${destroot}${prefix}/lib/libprunetrie.a
}
@@ -126,74 +89,15 @@
platform darwin 11 {
- master_sites-append http://opensource.apple.com/source/dyld/dyld-195.5/include/mach-o/dyld_priv.h?txt&dummy=:dyld \
- http://opensource.apple.com/source/cctools/cctools-806/include/mach-o/arm/reloc.h?txt&dummy=:cctools
- distfiles-append dyld_priv.h:dyld reloc.h:cctools
- extract.only ${distname}${extract.suffix}
- checksums ${distname}${extract.suffix} \
- md5 fceb0f082ad30c5b03ff357f97a93f53 \
- sha1 df51258a75e4c5f0df185b99f74f7232d310f45e \
- rmd160 8ee709341549a1944732daef6ebab7ef1acfcc6e \
- dyld_priv.h \
- md5 f553d448c70abe57b2f7f85fcca8c59e \
- sha1 bc699271351794c3fa30e93f18ff2646780ee125 \
- rmd160 5ab99fdb47eda0ce2dcda5b57a7d3d3f02e627e7 \
- reloc.h \
- md5 6ce50950669d083aab458f196ec3a2fc \
- sha1 87f0265f0f6abefd1e2cf12fe29242fb219fd71f \
- rmd160 b9c6c4fcf7731a508b82dd09af81fa8b26caf3ef
+ depends_build-append port:libunwind-headers \
+ path:include/mach-o/dyld_priv.h:dyld-headers \
+ path:include/mach-o/arm/reloc.h:cctools-headers
- # dyld_priv.h has been stealth-updated, remove this code when updating to the next version
- dist_subdir ${name}/${version}_1
-
- depends_build-append port:libunwind-headers
- xcode.target all ObjectDump machocheck
- xcode.configuration Release
- xcode.destroot.path ${prefix}/bin
-
- post-extract {
- file mkdir ${worksrcpath}/build/${xcode.configuration}/include/mach-o/arm
- file copy ${worksrcpath}/src/ld/parsers ${worksrcpath}/build/${xcode.configuration}/include/
- file copy ${distpath}/dyld_priv.h ${worksrcpath}/build/${xcode.configuration}/include/mach-o/
- file copy ${distpath}/reloc.h ${worksrcpath}/build/${xcode.configuration}/include/mach-o/arm/
-
- reinplace {s|/Developer/usr/lib|$(DEVELOPER_DIR)/usr/lib|g} \
- ${worksrcpath}/ld64.xcodeproj/project.pbxproj
- reinplace "s|/usr/share/man/man1|${prefix}/share/man/man1|g" \
- ${worksrcpath}/ld64.xcodeproj/project.pbxproj
- reinplace "s|usr/share/man/man1|${prefix}/share/man/man1|g" \
- ${worksrcpath}/ld64.xcodeproj/project.pbxproj
- reinplace "s|/usr/local|${prefix}|g" \
- ${worksrcpath}/ld64.xcodeproj/project.pbxproj
- reinplace "s|\$(RC_ProjectSourceVersion)|${version}|g" \
- ${worksrcpath}/ld64.xcodeproj/project.pbxproj
- }
-
- pre-build {
- build.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags]'
- destroot.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags]'
- }
- pre-destroot {
- build.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags]'
- destroot.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags]'
- }
-
post-destroot {
file rename ${destroot}${prefix}/bin/libprunetrie.a ${destroot}${prefix}/lib/libprunetrie.a
}
}
-if {${os.major} > 11} {
- distfiles
- build { }
- destroot {
- file link -symbolic "${destroot}${prefix}/bin/ld" "/usr/bin/ld"
- file link -symbolic "${destroot}${prefix}/bin/rebase" "/usr/bin/rebase"
- file link -symbolic "${destroot}${prefix}/share/man/man1/ld.1" "/usr/share/man/man1/ld.1"
- file link -symbolic "${destroot}${prefix}/share/man/man1/rebase.1" "/usr/share/man/man1/rebase.1"
- }
-}
-
livecheck.type regex
livecheck.regex "${name}-(\[\\d.\]+)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120303/2f076f3e/attachment.html>
More information about the macports-changes
mailing list