[91408] trunk/dports/devel/ld64/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Sat Mar 31 14:55:48 PDT 2012
Revision: 91408
https://trac.macports.org/changeset/91408
Author: jeremyhu at macports.org
Date: 2012-03-31 14:55:48 -0700 (Sat, 31 Mar 2012)
Log Message:
-----------
ld64: Set supported_archs to match XCode project, drop llvm dep on Tiger
Modified Paths:
--------------
trunk/dports/devel/ld64/Portfile
Modified: trunk/dports/devel/ld64/Portfile
===================================================================
--- trunk/dports/devel/ld64/Portfile 2012-03-31 21:53:42 UTC (rev 91407)
+++ trunk/dports/devel/ld64/Portfile 2012-03-31 21:55:48 UTC (rev 91408)
@@ -32,10 +32,12 @@
xcode.destroot.path ${prefix}/bin
post-extract {
- reinplace "s|/Developer/usr/lib|${prefix}/libexec/llvm-${llvm_version}/lib|g" \
+ if {${os.major} >= 9} {
+ 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
- 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" \
@@ -46,23 +48,34 @@
${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'
+if {${os.major} >= 9} {
+ pre-build {
+ build.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags] -I${prefix}/include'
+ }
+ pre-destroot {
+ destroot.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags] -I${prefix}/include'
+ }
+} else {
+ build.env OTHER_CFLAGS='-I${prefix}/include'
+ destroot.env OTHER_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'
-}
post-destroot {
+ if {${os.major} == 8} {
+ move ${destroot}${prefix}/bin/ld64 ${destroot}${prefix}/bin/ld
+ move ${destroot}${prefix}/share/man/man1/ld64.1 ${destroot}${prefix}/share/man/man1/ld.1
+ }
+
# ${prefix}/bin/ld will always use the llvm we built against
# ${prefix}/libexec/ld64/ld uses relative linking for use with the llvm ports
file mkdir -p ${destroot}${prefix}/libexec/ld64
file copy ${destroot}${prefix}/bin/ld ${destroot}${prefix}/libexec/ld64/ld
- system "install_name_tool -change ${prefix}/libexec/llvm-${llvm_version}/lib/libLTO.dylib \
- @executable_path/../lib/libLTO.dylib ${destroot}${prefix}/libexec/ld64/ld"
+ if {${os.major} >= 9} {
+ system "install_name_tool -change ${prefix}/libexec/llvm-${llvm_version}/lib/libLTO.dylib \
+ @executable_path/../lib/libLTO.dylib ${destroot}${prefix}/libexec/ld64/ld"
+ }
+
if {${os.major} >= 10} {
file rename ${destroot}${prefix}/bin/libprunetrie.a ${destroot}${prefix}/lib/libprunetrie.a
}
@@ -82,7 +95,8 @@
revision 1
checksums rmd160 5b53ecb7b7a7e40e7420192fdf609e43151a736a \
sha256 82ccb66eb5a452b8bb47771ebbdb73bed7e8824e3cbd58fa2d6d6fc91ca26b87
- depends_build port:llvm-${llvm_version}
+ supported_archs i386 ppc
+ depends_build
}
platform darwin 9 {
@@ -90,6 +104,7 @@
revision 4
checksums rmd160 42c80bd4ad6e9f96a757245e6a2b95084c009ff1 \
sha256 4bcbcbdfd62efdc46c51700b8f5dae2cbd1638e9e50f649d5c7f242d32fca804
+ supported_archs i386 ppc
depends_build port:llvm-${llvm_version}
patchfiles patch-MATH85-ld.cpp.diff
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120331/dd30d538/attachment.html>
More information about the macports-changes
mailing list