# -*- 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

PortSystem          1.0
PortGroup           xcode 1.0

name                dtrace
version             370.40.1
categories          sysutils
maintainers         nomaintainer
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.

homepage            http://opensource.apple.com/source/${name}/
master_sites        http://opensource.apple.com/tarballs/${name}/

checksums           rmd160  5d0f9440b344302f6a8722cd658809818811458f \
                    sha256  94a3d46a7f06b962e184fbe968ff79c4092e6b89c0414b7f7996245b3ff381a4 \
                    size    1285649

xcode.destroot.path ${prefix}/bin
xcode.target        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.\]+)"
