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

set lts_date        20120406
# Set revision in order to force rebuild to include the new patches.
revision            7

crossgcc.setup      msp430 4.6.3

distname            gcc-${version}
distfiles           ${distname}${extract.suffix}:gcc
extract.only        ${distname}${extract.suffix}

version             ${version}-20120406
conflicts           ${name}-devel
maintainers         {g5pw @g5pw}

homepage            http://mspgcc.sourceforge.net/
patch_sites         sourceforge:project/mspgcc/Patches/LTS/${lts_date}/:lts \
                    sourceforge:project/mspgcc/Patches/${distname}/:main

patchfiles          ${name}-${version}.patch:main \
                    msp430-gcc-4.6.3-20120406-sf3540953.patch:lts \
                    msp430-gcc-4.6.3-20120406-sf3559978.patch:lts

checksums           msp430-gcc-4.6.3-20120406.patch \
                    rmd160  6e19902c346a6cfe4bf47900a67ae84e70a5d7e2 \
                    sha256  c17f51a76f52ff0e3117290d035f031d620ebbf5bce586227e0a9d8906714353 \
                    msp430-gcc-4.6.3-20120406-sf3540953.patch \
                    rmd160  474e8b8bb6dc50c72002a9a01d786dbcd43f6507 \
                    sha256  a6f6921e967a9c7dd7e4a3e6e3eaffbe3eff2bc7ea0ffd73a72fde5ef3b5b692 \
                    msp430-gcc-4.6.3-20120406-sf3559978.patch \
                    rmd160  357158689350e66235fd387d4ba499553b375b76 \
                    sha256  191169fadbe41afd01f29ef5dcd4180276728a391ef42826e0031253e0ddf5bf \
                    gcc-4.6.3.tar.bz2 \
                    rmd160  9abb2f940d08fc84f2d91b6a6ce8d662ca889269 \
                    sha256  e8f5853d4eec2f5ebaf8a72ae4d53c436aacf98153b2499f8635b48c4718a093

depends_run         port:msp430mcu

patch.pre_args      -p1

# see https://trac.macports.org/ticket/57153
# see https://github.com/macports/macports-ports/pull/3329
# TODO: Needed?
configure.args-delete \
                    --disable-libcc1

livecheck.type      none
