# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4
PortGroup crossbinutils 1.0
crossbinutils.setup msp430-elf 2.26
set name_patch msp430-gcc-${vers_patch}-source-patches
set file_patch ${name_patch}.tar.bz2
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 d6b1825ef792a4ca61e34a4bee35aca66d8c8d9e \
sha256 a9ae65464771549c7ffd0909a04fe0f783be7d04e5abe23ef191f536b2a3b8b4 \
depends_extract-append bin:bzip2:bzip2
system -W ${workpath} "${prefix}/bin/bzip2 -dc ${distpath}/${file_patch} | /usr/bin/tar xf -"
system -W ${worksrcpath} "/usr/bin/patch -p0 < ${workpath}/${name_patch}/binutils-2_26.patch"
# --with-mpfr-include=${prefix}/include \
# --with-mpfr-lib=${prefix}/lib \
# --with-gmp-include=${prefix}/include \
# --with-gmp-lib=${prefix}/lib \
# --with-mpc-include=${prefix}/include \
# --with-mpc-lib=${prefix}/lib