# -*- 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           github 1.0
PortGroup           gnuradio 1.0

name                gr-mac
maintainers         {michaelld @michaelld} openmaintainer
description         Provides augmented functionality (blocks, GRC definitions, apps, etc) for GNU Radio.
long_description    {*}${description}
license             GPL-3

if {${subport} eq ${name}} {
    version         20140919
    revision        9
    replaced_by     gr37-mac
    PortGroup       obsolete 1.0
}

subport gr37-mac {

    name            gr37-mac

    github.setup    jmalsbury gr-mac 3ed6f0893341f48fc7fb000ca1cf679524b033a4
    # Change github.tarball_from to 'releases' or 'archive' next update
    github.tarball_from tarball
    version         20140919
    revision        1
    checksums       rmd160 9aab2a5b9e0a54019cc08980fe482fc126602970 \
                    sha256 5eacd2f208034dcc8d34cfdc5dbc2715aeb2c7d35855983221f371e21215e9a3

    # patch to fix radio GRC hier blocks
    patchfiles-append   patch-examples_radios.diff

    conflicts \
        gr-mac

}

# include examples in destroot
post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/gnuradio/examples
    copy ${worksrcpath}/examples ${destroot}${prefix}/share/gnuradio/examples/mac
}

