# -*- 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 # $Id: Portfile 88831 2012-01-13 08:41:24Z ryandesign@macports.org $ PortSystem 1.0 name msp430-gcc version 4.5.3 # Parameters for this port. set crossgcc-target msp430 set version_date 20110706 set lts_date 20110716 set default-languages "c,c++" maintainers gmail.com:a2piratesoft openmaintainer categories cross devel description A port of the GCC toolchain for the Texas Instruments MSP430 family of ultra low power MCUs long_description Here you will find a port of the GCC toolchain for the Texas Instruments MSP430 family of ultra \ low power MCUs, This includes the GNU C compiler (GCC), the assembler and linker (binutils), the \ debugger (GDB), and some other tools needed to make a complete development environment for the \ MSP430. These tools can be used on Windows, Linux, BSD and most other flavours of Unix. However, \ the full debug environment is currently limited to Windows, Linux and BSD. MSP430 development is \ no longer limited to Windows! platforms darwin distname gcc-${version} homepage http://mspgcc.sourceforge.net/ master_sites gnu:gcc/gcc-${version}/ patch_sites http://downloads.sourceforge.net/project/mspgcc/Patches/${distname}/ \ http://downloads.sourceforge.net/project/mspgcc/Patches/LTS/${lts_date}/ # gcc is .bz2. use_bzip2 yes patchfiles ${name}-${version}-${version_date}.patch \ ${name}-${version}-${version_date}-sf3370978.patch \ ${name}-${version}-${version_date}-sf3390964.patch \ ${name}-${version}-${version_date}-sf3394176.patch \ ${name}-${version}-${version_date}-sf3396639.patch \ ${name}-${version}-${version_date}-sf3409864.patch \ ${name}-${version}-${version_date}-sf3417263.patch \ ${name}-${version}-${version_date}-sf3431602.patch \ ${name}-${version}-${version_date}-sf3433730.patch checksums ${name}-${version}-${version_date}.patch \ rmd160 b56181f27e562da224a18cab78a418dc728cdbe2 \ sha256 cbaefcc28766407346ff1f85f9d6e77846fda043994c16bf220768dd33c38294 \ ${name}-${version}-${version_date}-sf3370978.patch \ rmd160 d7560e75d17d20f71358fc60b4c7296f642c2e97 \ sha256 d375b9f5c4497d6a8ec5548abdc0f51c2cf464791833668dd1cbf5bbe753c7a4 \ ${name}-${version}-${version_date}-sf3390964.patch \ rmd160 51d316881abf862ca3afedd4c713252a08d0f44b \ sha256 24820a4931d2b0685730c128fc339f3c513f718d3e900eea32425f94f35d19f9 \ ${name}-${version}-${version_date}-sf3394176.patch \ rmd160 e13d40918920ebb6915d71f108edc8b870cb03b9 \ sha256 06f03f032382e497cce5678f35cf4b3d8e56272c435f0ca45d86fcd28e8c8067 \ ${name}-${version}-${version_date}-sf3396639.patch \ rmd160 39ad917d3267d7283ea45d256a811560d927aa32 \ sha256 faabe1bdcbb5ff196d91c97e3e33ddc65efecf9a89099b67590c4a86cdb6b040 \ ${name}-${version}-${version_date}-sf3409864.patch \ rmd160 2c6ac501f65060bf3d4182cd598b00a449b1091b \ sha256 ea53a39b71018c674b7c1bcd3dddb213da26d242d5622a7d34ed5e8c022148a6 \ ${name}-${version}-${version_date}-sf3417263.patch \ rmd160 e0b4f078347d611133a632c1bea2dccdd722bbb5 \ sha256 654c257424115ebcc2034a0cf680a477fe88a247434fc8fb80dff03fde89d0ca \ ${name}-${version}-${version_date}-sf3431602.patch \ rmd160 be5e66a17bdffc53c2953e4d7a92077955429f1c \ sha256 2d880cb5f7038397768dab9bd61a0eab3ce06d4b7e46fb31256d552e45f08152 \ ${name}-${version}-${version_date}-sf3433730.patch \ rmd160 7a9c1115c136c19a6cf7fde459197bc07fd21757 \ sha256 5c9b4a992f80b56bb7f7be56eb9a3e7663b97a05bf4487208da7c9f9b20aa197 \ ${distname}${extract.suffix} \ rmd160 d07aa90f2186b4e082dfd5ad5d5188c097fb6247 \ sha256 0a8847af44a9b33813b199997a73139517c96adfd519eaf24c79d4d9d09f65de worksrcdir gcc-${version} # All cross ports violate the mtree layout. destroot.violate_mtree yes depends_lib port:gmp \ port:mpfr \ port:libiconv \ port:libmpc \ port:msp430-binutils depends_run port:msp430mcu depends_build port:gettext patch.args -p1 # Build in a different directory, as advised in the README file. pre-configure { file mkdir "${workpath}/build" } configure.cc_archflags configure.cxx_archflags configure.ld_archflags configure.dir ${workpath}/build configure.cmd ${workpath}/gcc-${version}/configure #configure.cflags-append -I${prefix}/include -L${prefix}/lib configure.args --enable-languages=${default-languages} \ --target=${crossgcc-target} \ --with-mpc=${prefix} \ --with-gmp=${prefix} \ --with-mpfr=${prefix} \ --disable-nls build.dir ${workpath}/build post-destroot { # libiberty.a is not useful once msp430-gcc is built file delete -force ${destroot}${prefix}/share/man/man7 \ ${destroot}${prefix}/share/info/* \ ${destroot}${prefix}/lib/x86_64/libiberty.a \ ${destroot}${prefix}/lib/libiberty.a } livecheck.type regex livecheck.url http://mirrors.ibiblio.org/gnu/ftp/gnu/gcc/ livecheck.regex "href=\"gcc-(\[^/\]+)/\""