void-packages/srcpkgs/avr-gdb/template
Érico Nogueira c2934f34bf avr-gdb: update to 11.1 and clean up.
Also added build option for Guile.

Co-authored-by: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
2021-10-03 05:17:28 -03:00

36 lines
1.3 KiB
Bash

# Template file for 'avr-gdb'
pkgname=avr-gdb
version=11.1
revision=1
wrksrc=gdb-${version}
build_style=gnu-configure
configure_args="--target=avr --disable-werror --disable-nls --with-system-readline
--with-system-gdbinit=/etc/gdb/gdbinit --with-system-zlib
$(vopt_with guile) $(vopt_if python --with-python=/usr/bin/python3)"
hostmakedepends="pkg-config texinfo $(vopt_if python python3-devel) $(vopt_if guile guile)"
makedepends="expat-devel ncurses-devel readline-devel zlib-devel gmp-devel
$(vopt_if guile guile-devel) $(vopt_if python 'gettext-devel python3-devel')"
depends="gdb-common"
short_desc="GNU Debugger for AVR"
maintainer="Artur Sinila <opensource@logarithmus.dev>"
license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/gdb"
distfiles="${GNU_SITE}/gdb/gdb-${version}.tar.xz"
checksum=cccfcc407b20d343fb320d4a9a2110776dd3165118ffd41f4b1b162340333f94
make_check=no # See gdb/template.
replaces="cross-avr-gdb>=0"
patch_args="-Np1"
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}
}