pkgsrc/cross/avr-gdb/Makefile
rillig 1b41af41b8 cross/*: let pkglint autofix indentation and variable alignment
pkglint -Wall -F -r cross

xtensa-esp32-elf-gcc has been manually edited afterwards because when
realigning variable assignments, pkglint only allows one long outlier
line. This package has two long SITES.* lines, therefore pkglint wanted
to indent the variable values much further to the right. This needs to be
fixed in pkglint.
2019-06-08 10:53:26 +00:00

45 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.24 2019/06/08 10:53:26 rillig Exp $
DISTNAME= gdb-7.12.1
PKGNAME= ${DISTNAME:S/^/avr-/}
CATEGORIES= cross
MASTER_SITES= ${MASTER_SITE_GNU:=gdb/}
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= GNU gdb for Atmel AVR 8-bit RISC microcontrollers
LICENSE= gnu-gpl-v3
USE_TOOLS+= gmake
USE_LANGUAGES+= c c++
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CONFIG_LDFLAGS=${LDFLAGS:M*:Q}
CONFIGURE_ARGS+= --target=avr
CONFIGURE_ARGS+= --program-prefix=avr
CONFIGURE_ARGS+= --with-curses
# elfread.c is to be included in init.c to support bfd_target_elf_flavour
CONFIGURE_ENV+= gdb_cv_var_elf=yes
MAKE_ENV+= gdb_cv_var_elf=yes
# Native gdb has following lines also activated
#CONFIGURE_ENV+= gdb_cv_struct_lwp=yes
#MAKE_ENV+= gdb_cv_struct_lwp=yes
INSTALLATION_DIRS= bin
TEST_TARGET= check
pre-configure:
cd ${WRKSRC} ; ${RM} -rf dejagnu expect sim tcl texinfo
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb ${DESTDIR}${PREFIX}/bin/avr-gdb
.include "../../mk/bsd.prefs.mk"
CPPFLAGS+= -D__STDC_LIMIT_MACROS
# to link -lcurses.7 => /usr/lib/libcurses.so.7
# instead of terminfo
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"