# -*- 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
# Please keep the msp430-gdb and msp430-gdb-devel ports as similar as possible.
set name_common [join [lrange [split ${name} -] 0 1] -]
set name_target [lindex [split ${name_common} -] 0]
set name_package [lindex [split ${name_common} -] 1]
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. \
This is the development version.
homepage https://www.gnu.org/software/gdb/gdb.html
dist_subdir ${name_common}
distname ${name_package}-${version}
patch_sites sourceforge:project/mspgcc/Patches/${distname}/
rmd160 b5821fafe6920dfd30b73606bbf819b8296dfb4e \
sha256 3c24dde332e33bfe2d5980c726d76224ebf8304278112a07bf701f8d2145d9bc \
${name_common}-${version}-${epoch}.patch \
rmd160 84fd86c8cee99575eb7db409d113f1e5bc71d7f2 \
sha256 b70b54df5e00d24a3a5b744545a87ce656bdc88546081c6ffabefbc4d6c42956 \
depends_run port:mspdebug
worksrcdir ${name_package}-[string trimright ${version} a-zA-Z]
patchfiles ${name_common}-${version}-${epoch}.patch \
0002-bfdio-Invalid-size-of-memset.patch \
0003-elflink-Possible-use-of-unintialized-variable.patch \
0004-interp-Missing-return-value.patch \
0005-tui-Unknown-type-name.patch \
0006-elflink-Null-pointer-arithmetic.patch
configure.args --target=${name_target} \
build.env-append CFLAGS=-I${prefix}/include
configure.env-append CFLAGS=-I${prefix}/include
file delete "${destroot}${prefix}/lib/x86_64/libiberty.a"