# $Id: Portfile 104991 2013-04-06 23:05:55Z mfeiri@macports.org $

PortSystem              1.0
PortGroup               xcode 1.0

name                    dtrace
version                 96
categories              sysutils
maintainers             mfeiri openmaintainer
homepage                http://opensource.apple.com/source/${name}/
master_sites            http://opensource.apple.com/tarballs/${name}/
license                 APSL-2 CDDL
description             DTrace support tools
long_description        The ctfconvert, ctfmerge and ctfdump tools for \
                        DTrace, required to build the XNU kernel. The main \
                        dtrace tool and libraries are not included, because \
                        these rely on an unpublished private framework.

checksums               rmd160  d2a3dedb021cb926d48e8671df1fb2e7fd08ebc0 \
                        sha256  132d5e02b9141a6fade1a1e5c51d4b65382ef13ac9e72c3c9001bff54a5e0b38

xcode.destroot.path     ${prefix}/bin
xcode.target            libelf.a ctfconvert ctfmerge ctfdump

# for ppc support
if {${os.major} == 9} {
    version         48.1
    checksums       rmd160  530acfb4bb2b69b121e5f461abba2a78ab53bd57 \
                    sha256  3fdee5d4fcb36a4dae0f877dbe50330bd905cb09b10e70e7a219370a6e30760a

    depends_build           path:${prefix}/lib/libiberty.a:binutils
    xcode.build.settings    LIBRARY_SEARCH_PATHS='${prefix}/lib'          
    xcode.destroot.settings LIBRARY_SEARCH_PATHS='${prefix}/lib'
}

livecheck.type          regex
livecheck.regex         "${name}-(\[\\d.\]+)"
