void-packages/srcpkgs/cross-arm-none-eabi-gdb/template

37 lines
1.4 KiB
Bash

# Template file for 'cross-arm-none-eabi-gdb'
pkgname=cross-arm-none-eabi-gdb
version=13.2
revision=1
build_style=gnu-configure
configure_args="--target=arm-none-eabi --disable-werror --disable-nls --with-system-readline
--with-system-gdbinit=/etc/gdb/gdbinit --with-system-zlib --without-isl
$(vopt_with guile) $(vopt_if python --with-python=/usr/bin/python3)"
hostmakedepends="pkg-config texinfo $(vopt_if python python3-devel) $(vopt_if guile guile)"
# mpfr is necessary to emulate target floating point behavior
# babeltrace is necessary for Common Trace Format support
makedepends="expat-devel ncurses-devel readline-devel zlib-devel gmp-devel
babeltrace-devel mpfr-devel
$(vopt_if guile guile-devel) $(vopt_if python 'gettext-devel python3-devel')"
depends="gdb-common"
short_desc="GNU Debugger for ARM"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/gdb"
distfiles="${GNU_SITE}/gdb/gdb-${version}.tar.xz"
checksum=fd5bebb7be1833abdb6e023c2f498a354498281df9d05523d8915babeb893f0a
make_check=no # See gdb/template.
if [ "${CROSS_BUILD}" ]; then
# Make python3.x detection work in cross builds
CPPFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
fi
# Package build options
build_options="guile python"
build_options_default="python"
post_install() {
# resolve conflicts with gdb-common
rm -r ${DESTDIR}/usr/{share/{gdb,info},include}
}