# $Id: Portfile 24955 2007-05-09 04:27:22Z ryandesign@macports.org $ PortSystem 1.0 name kernel-tools version 8J2135 categories sysutils maintainers sfiera@macports.org description Tools required to build xnu for Intel long_description \ Installs a number of tools needed to build the xnu kernel on Intel, \ including (but not limited to) relpath and seg_hack homepage http://kernel.macosforge.org/ master_sites http://www.macosforge.org/files distfiles kernel-tools-${version}.root.tar.gz checksums md5 e47e75b43211a9094875d60502cc4e35 platforms darwin use_configure no build {} pre-extract { xinstall -d ${worksrcpath} } extract.dir ${worksrcpath} destroot { cd ${worksrcpath}/usr/local foreach top {include lib man} { fs-traverse file ${top} { switch -exact [file type ${file}] { file { xinstall -m 644 ${file} ${destroot}${prefix}/${file} } directory { xinstall -d -m 755 ${destroot}${prefix}/${file} } link { system "ln -sf [file readlink ${file}] ${destroot}${prefix}/${file}" } } } } foreach top {bin libexec} { fs-traverse file ${top} { switch -exact [file type ${file}] { file { xinstall -m 755 ${file} ${destroot}${prefix}/${file} } directory { xinstall -d -m 755 ${destroot}${prefix}/${file} } link { system "ln -sf [file readlink ${file}] ${destroot}${prefix}/${file}" } } } } }