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

PortSystem          1.0
PortGroup           crossbinutils 1.0
 
crossbinutils.setup msp430 2.21.1a
#Set the right version
set lts_date        20120406
version             ${version}-${lts_date}
revision            1

conflicts           ${name}-devel
maintainers         nomaintainer

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

patchfiles          ${name}-${version}.patch:main

checksums           ${name}-${version}.patch \
                    rmd160  377a17d7374b5efa3b0732d88d958b722eaa2d0b \
                    sha256  20c0f7ed58dbdae86cf5bcf8741a49e4f3b5596311eb68142d606e2409b55819 \
                    ${distname}${extract.suffix} \
                    rmd160  de5ce1d7cb0d44e3ec18c557beefb2a292d59a60 \
                    sha256  cdecfa69f02aa7b05fbcdf678e33137151f361313b2f3e48aba925f64eabf654

patch.pre_args-replace  -p0 -p1

configure.args-append \
                    --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 \
                    --disable-werror

livecheck.type      none
