[104741] trunk/dports/devel
mfeiri at macports.org
mfeiri at macports.org
Mon Apr 1 15:29:18 PDT 2013
Revision: 104741
https://trac.macports.org/changeset/104741
Author: mfeiri at macports.org
Date: 2013-04-01 15:29:18 -0700 (Mon, 01 Apr 2013)
Log Message:
-----------
xnu-headers: new port
Added Paths:
-----------
trunk/dports/devel/xnu-headers/
trunk/dports/devel/xnu-headers/Portfile
Added: trunk/dports/devel/xnu-headers/Portfile
===================================================================
--- trunk/dports/devel/xnu-headers/Portfile (rev 0)
+++ trunk/dports/devel/xnu-headers/Portfile 2013-04-01 22:29:18 UTC (rev 104741)
@@ -0,0 +1,93 @@
+# $Id$
+
+PortSystem 1.0
+name xnu-headers
+version 2050.18.24
+categories devel
+platforms darwin
+maintainers mfeiri openmaintainer
+license APSL BSD
+description X is Not Unix (XNU) kernel headers
+long_description Header files for the XNU kernel used in \
+ Mac OS X and Darwin
+
+homepage http://opensource.apple.com/source/xnu/
+master_sites http://opensource.apple.com/tarballs/xnu/
+distname xnu-${version}
+checksums rmd160 e54a424b8b0dfe7d3a6f1305b64659d7b9e1ecbf \
+ sha256 5d018b33efd9eebb05142958432b9a5058febe04a3b92ba5a16a285490a83445
+
+
+depends_build port:bootstrap_cmds port:developer_cmds port:dtrace
+use_configure no
+
+build {}
+
+destroot.target installhdrs
+destroot.args DSTROOT=${destroot}${prefix}
+
+variant universal {
+ destroot.env-append RC_ARCHS='${configure.universal_archs}'
+}
+
+post-destroot {
+ file rename -force ${destroot}${prefix}/usr/include ${destroot}${prefix}/
+ file rename -force ${destroot}${prefix}/System/Library/Frameworks ${destroot}${prefix}/Library/
+}
+
+
+if {${os.major} < 9} {
+ pre-fetch {
+ ui_error "${name} requires Mac OS X 10.5 or later."
+ return -code error "incompatible Mac OS X version"
+ }
+}
+
+platform darwin 9 {
+ version 1228.15.4
+ distname xnu-${version}
+ checksums rmd160 c5b7ede52d829769db40aa31461f9c3c7485252a \
+ sha256 74a90c98f22eb17b0d971b62e3f515930646deb1914a63931e864bc1aa8a0927
+
+ post-extract {
+ reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/makedefs/MakeInc.cmd
+ reinplace "s|\$(shell tconf --product)|MacOSX|g" ${worksrcpath}/bsd/sys/Makefile
+ }
+}
+
+platform darwin 10 {
+ version 1504.15.3
+ distname xnu-${version}
+ checksums rmd160 5e1e06b46047bf79babe75a05da2e1d4899418b6 \
+ sha256 1e1fa65e9acf2e0c22cdc1a882d22a3b3eb2d89c273a907aa589da52d202341f
+
+ post-extract {
+ reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/makedefs/MakeInc.cmd
+ reinplace "s|\$(shell tconf --product)|MacOSX|g" ${worksrcpath}/bsd/sys/Makefile
+ }
+}
+
+platform darwin 11 {
+ version 1699.26.8
+ distname xnu-${version}
+ checksums rmd160 4e20cb7173cc3df369e631498c582177eb834896 \
+ sha256 76f0e6e703218b3b1620b29b7fabb5eb177c990af20711a90085a5a6afc54022
+
+ post-extract {
+ reinplace "s|\$(\$\{SDKROOT\}/usr/local/libexec/availability.pl --macosx)|10.0 10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8|g" ${worksrcpath}/bsd/sys/make_symbol_aliasing.sh
+ reinplace "s|\$(\$\{SDKROOT\}/usr/local/libexec/availability.pl --ios)|2.0 2.1 2.2 3.0 3.1 3.2 4.0 4.1 4.2 4.3 5.0 5.1|g" ${worksrcpath}/bsd/sys/make_symbol_aliasing.sh
+ reinplace "s|exit 1||g" ${worksrcpath}/bsd/sys/make_symbol_aliasing.sh
+ }
+}
+
+platform darwin 12 {
+ post-extract {
+ reinplace "s|\$(\$\{SDKROOT\}/usr/local/libexec/availability.pl --macosx)|10.0 10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8|g" ${worksrcpath}/bsd/sys/make_symbol_aliasing.sh
+ reinplace "s|\$(\$\{SDKROOT\}/usr/local/libexec/availability.pl --ios)|2.0 2.1 2.2 3.0 3.1 3.2 4.0 4.1 4.2 4.3 5.0 5.1|g" ${worksrcpath}/bsd/sys/make_symbol_aliasing.sh
+ reinplace "s|exit 1||g" ${worksrcpath}/bsd/sys/make_symbol_aliasing.sh
+ }
+}
+
+
+livecheck.type regex
+livecheck.regex "xnu-(\[\\d.\]+)"
Property changes on: trunk/dports/devel/xnu-headers/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130401/9039dc7a/attachment-0001.html>
More information about the macports-changes
mailing list