# -*- 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 PortGroup crossgcc 1.0 crossgcc.setup msp430-elf 8.3.0 crossgcc.setup_libc newlib 2.4.0 revision 2 set vers_patch 8.3.0.16 set name_patch msp430-gcc-${vers_patch}-source-patches set file_patch ${name_patch}.tar.bz2 maintainers nomaintainer homepage http://www.ti.com/tool/msp430-gcc-opensource master_sites-append http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/latest/exports/:patch distfiles-append ${file_patch}:patch checksums-append ${file_patch} \ rmd160 fa0c6ddd1d9e7a44ad470671c5c5be9a61a0051a \ sha256 2732abaf76e1da9e224b25d442c2f764c487087603ae1d954d6e980e48f37af7 \ size 143805 depends_run port:msp430-gcc-support-files depends_extract-append \ port:bzip2 post-extract { system -W ${workpath} "${prefix}/bin/bzip2 -dc ${distpath}/${file_patch} | /usr/bin/tar xf -" } pre-patch { system -W ${worksrcpath} "/usr/bin/patch -p0 < ${workpath}/${name_patch}/gcc-8_3_0-release.patch" system -W ${workpath}/newlib-2.4.0 "/usr/bin/patch -p0 < ${workpath}/${name_patch}/newlib-2_4_0.patch" } configure.args-append \ --enable-target-optspace \ --enable-newlib-nano-formatted-io