[92189] trunk/dports/devel/dyld-headers/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Sat Apr 21 10:01:27 PDT 2012
Revision: 92189
https://trac.macports.org/changeset/92189
Author: jeremyhu at macports.org
Date: 2012-04-21 10:01:26 -0700 (Sat, 21 Apr 2012)
Log Message:
-----------
dyld-headers: Don't waste time building dyld since we just want the headers
Modified Paths:
--------------
trunk/dports/devel/dyld-headers/Portfile
Modified: trunk/dports/devel/dyld-headers/Portfile
===================================================================
--- trunk/dports/devel/dyld-headers/Portfile 2012-04-21 16:45:48 UTC (rev 92188)
+++ trunk/dports/devel/dyld-headers/Portfile 2012-04-21 17:01:26 UTC (rev 92189)
@@ -1,12 +1,10 @@
# $Id$
PortSystem 1.0
-PortGroup xcode 1.0
-PortGroup xcodeversion 1.0
-minimum_xcodeversions {10 3.2.3}
name dyld-headers
version 195.6
+revision 1
categories devel
maintainers mfeiri jeremyhu openmaintainer
homepage http://opensource.apple.com/source/dyld/
@@ -23,29 +21,38 @@
if {${os.major} < 9} {
# The main reason for using the older 97.1 on Tiger is because of the change for Availability.h
version 97.1
+ revision 1
distname dyld-${version}
checksums rmd160 86f82f58d610e7beea4b035aa528d2fdea85dcb8 \
sha256 917c88c6efb507511353e82ce9b453ac9c4da3156fafae4955ae11d2fcc4f181
} elseif {${os.major} < 11} {
# We can probably use 195 headers or later on Leopard but I haven't verified yet.
version 132.13
+ revision 1
distname dyld-${version}
checksums rmd160 15636fd3b237575a8301d0d1d659f4aa7e018012 \
sha256 31d8767d4fcb2b9f861fe91cae97f411fe0df48b1bd5f5725d09311b5e62346e
}
-xcode.target libdyld
-xcode.configuration Release
-
-post-extract {
+post-patch {
reinplace "s|/usr/local|${prefix}|g" \
${worksrcpath}/dyld.xcodeproj/project.pbxproj
reinplace "s|/usr|${prefix}|g" \
${worksrcpath}/dyld.xcodeproj/project.pbxproj
+
+ if {${os.major} < 9} {
+ reinplace "/version.pl/s/\".*\"/\"echo 'const char __dyld_version\[\] = \\\\\"@(#) dyld-97.1\\\\\";' > \${BUILT_PRODUCTS_DIR}\\/version.c\\\\n\"/" ${worksrcpath}/dyld.xcodeproj/project.pbxproj
+ reinplace "s/AVAILABLE_MAC_OS_X_VERSION_10_\\(.\\)_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5/AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER/" ${worksrcpath}/include/mach-o/dyld.h
+ reinplace "s/AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER/__attribute__((weak_import))/" ${worksrcpath}/include/dlfcn.h
+ }
}
-post-destroot {
- file delete -force ${destroot}${applications_dir}
+use_configure no
+build {}
+
+destroot {
+ system "ditto ${worksrcpath}/include ${destroot}${prefix}/include"
+ #system "ditto ${worksrcpath}/doc/man ${destroot}${prefix}/share/man"
}
livecheck.type regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120421/17c5a39b/attachment.html>
More information about the macports-changes
mailing list