# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name xnu-headers version 2050.22.13 categories devel platforms darwin maintainers mfeiri openmaintainer license APSL BSD conflicts poll-emulator 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 441c0a19ef10eab6fb33a41169aaefafe4d4c433 \ sha256 54011448f0cbb84792146657f4f5f8f64beca52e63bd0eb6028aadedf153a4d6 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/ } platform darwin 9 { version 1228.15.4 distname xnu-${version} checksums rmd160 c5b7ede52d829769db40aa31461f9c3c7485252a \ sha256 74a90c98f22eb17b0d971b62e3f515930646deb1914a63931e864bc1aa8a0927 destroot.env-append RELPATH=${prefix}/bin/relpath depends_skip_archcheck-append bootstrap_cmds 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 destroot.env-append RELPATH=${prefix}/bin/relpath depends_skip_archcheck-append bootstrap_cmds 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 destroot.env-append RELPATH=${prefix}/bin/relpath depends_skip_archcheck-append bootstrap_cmds 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.\]+)"