[73005] trunk/dports/devel/ld64/Portfile
mfeiri at macports.org
mfeiri at macports.org
Sun Oct 31 17:59:04 PDT 2010
Revision: 73005
http://trac.macports.org/changeset/73005
Author: mfeiri at macports.org
Date: 2010-10-31 17:58:59 -0700 (Sun, 31 Oct 2010)
Log Message:
-----------
ld64: check xcodeversion and relocate OTHER_CFLAGS
Modified Paths:
--------------
trunk/dports/devel/ld64/Portfile
Modified: trunk/dports/devel/ld64/Portfile
===================================================================
--- trunk/dports/devel/ld64/Portfile 2010-11-01 00:19:53 UTC (rev 73004)
+++ trunk/dports/devel/ld64/Portfile 2010-11-01 00:58:59 UTC (rev 73005)
@@ -2,6 +2,8 @@
PortSystem 1.0
PortGroup xcode 1.0
+PortGroup xcodeversion 1.0
+minimum_xcodeversions {10 3.2.3}
name ld64
version 97.14
@@ -37,11 +39,6 @@
xcode.target all ObjectDump machocheck
xcode.destroot.path ${prefix}/bin
- pre-configure {
- build.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config --cflags]'
- destroot.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config --cflags]'
- }
-
post-patch {
reinplace "s|/usr/share/man/man1|${prefix}/share/man/man1|g" \
${worksrcpath}/ld64.xcodeproj/project.pbxproj
@@ -50,6 +47,16 @@
reinplace "s|\$(RC_ProjectSourceVersion)|${version}|g" \
${worksrcpath}/ld64.xcodeproj/project.pbxproj
}
+
+ pre-build {
+ build.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config --cflags]'
+ destroot.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config --cflags]'
+ }
+ pre-destroot {
+ build.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config --cflags]'
+ destroot.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config --cflags]'
+ }
+
}
@@ -80,11 +87,6 @@
xcode.build.settings HEADER_SEARCH_PATHS=${workpath}/libunwind/include
xcode.destroot.settings HEADER_SEARCH_PATHS=${workpath}/libunwind/include
- pre-configure {
- build.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config --cflags]'
- destroot.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config --cflags]'
- }
-
post-extract {
system "cd ${workpath} && ${svn.cmd} ${svn.pre_args} ${svn.method} ${svn.url}@${svn.revision}"
file mkdir ${workpath}/libunwind/include/mach-o/arm
@@ -106,6 +108,15 @@
}
}
+ pre-build {
+ build.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config --cflags]'
+ destroot.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config --cflags]'
+ }
+ pre-destroot {
+ build.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config --cflags]'
+ destroot.env OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config --cflags]'
+ }
+
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/20101031/5b69e15a/attachment.html>
More information about the macports-changes
mailing list