# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8::et:sw=4:ts=4:sts=4

PortSystem          1.0

name                msp430-gcc-support-files
version             1.212

description         MSP430 header and linker files
long_description    {*}${description}
categories          cross devel
maintainers         {@edilmedeiros gmail.com:jose.edil+macports} \
                    openmaintainer
platforms           any
supported_archs     noarch
license             BSD

homepage            http://www.ti.com/tool/msp430-gcc-opensource
master_sites        https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-LlCjWuAbzH/9.3.1.2/

use_zip             yes

checksums           md5     1f316453879c0cdea3a83e152eac69c1 \
                    rmd160  dc7f246ef24571a15b28e890b2fac4baf976eaef \
                    sha256  3b1a39f10a344dfefb767e60ac35becef4c065013be86993195b138a5fb0b8d6 \
                    size    22257819

worksrcdir          ${name}
use_configure       no
build               {}

destroot {
    set installdir ${destroot}${prefix}/msp430-elf
    xinstall -d -m 755 ${installdir}/include
    xinstall -d -m 755 ${installdir}/lib
    xinstall -m 644 {*}[glob ${worksrcpath}/include/*.h]  ${installdir}/include
    xinstall -m 644 {*}[glob ${worksrcpath}/include/*.ld] ${installdir}/lib
}

destroot.violate_mtree  yes

notes "
MSP430 support files were installed in ${prefix}/msp430-elf.
"
