# -*- 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 # $Id: Portfile 88657 2012-01-07 00:45:47Z pixilla@macports.org $ PortSystem 1.0 name msp430-gdb version 7.2 distname gdb-${version} set crossgcc-target msp430 set version_date 20110103 categories cross maintainers gmail.com:a2piratesoft nomaintainer description GDB for the MSP430 processors long_description msp430-gdb is a version of the GNU Debugger that \ through the mspdebug program can be used to debug \ code for the MSP430 processors. homepage http://www.gnu.org/software/gdb/gdb.html license GPL-3+ platforms darwin master_sites gnu:gdb patch_sites http://downloads.sourceforge.net/project/mspgcc/Patches/${distname}/ use_bzip2 yes checksums ${name}-${version}-${version_date}.patch \ rmd160 09d8427721b0a54ecddda373fcd5af6f9496e55c \ sha256 5631fce178ed3bf05b6c60957e56501ea22b3618febc2fa790249a1b86447aa0 \ ${distname}${extract.suffix} \ rmd160 2f2f5eb331593a276f1b7024ac35f7ca1520653d \ sha256 bf444b88ab845243364c3d410be9e3f43a57f96ff594d65a37842ea03c3410f0 depends_run port:mspdebug patchfiles ${name}-${version}-${version_date}.patch worksrcdir gdb-[string trimright ${version} a-zA-Z] configure.args --target=msp430 \ --disable-Werror \ patch.args -p1 build.env-append CFLAGS="-I${prefix}/include" configure.env-append CFLAGS="-I${prefix}/include" if {${configure.compiler} == "clang"} { configure.compiler llvm-gcc-4.2 } post-destroot { #remove libiberty.a file delete "${destroot}/${prefix}/lib/x86_64/libiberty.a" file delete "${destroot}/${prefix}/share/info/bfd.info" file delete "${destroot}/${prefix}/share/info/standards.info" file delete -force "${destroot}/${prefix}/share/locale" } livecheck.regex "gdb-((?!.*gdb.*|\\${extract.suffix}).*)\\${extract.suffix}"