gdb-git: Sync with devel/gdb

This package still does not build.
This commit is contained in:
Kamil Rytarowski 2017-09-05 13:54:25 +02:00
parent 7ba011ba77
commit 94a99889b7

View file

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.11 2015/03/15 14:22:19 bsiegert Exp $
#
DISTNAME= gdb-7.9
DISTNAME= gdb-8.0
CATEGORIES= devel
GIT_REPOSITORIES= gdb
GIT_REPO.gdb= git://sourceware.org/git/binutils-gdb.git
@ -13,20 +13,27 @@ HOMEPAGE= http://www.gnu.org/software/gdb/gdb.html
COMMENT= Symbolic debugger for multiple language frontends
LICENSE= gnu-gpl-v3
#NOT_FOR_PLATFORM= Darwin-*-* DragonFly-*-*
USE_LANGUAGES= c c++11
BROKEN_GETTEXT_DETECTION= yes
GNU_CONFIGURE= YES
USE_PKGLOCALEDIR= YES
USE_LIBTOOL= YES
USE_TOOLS+= gmake msgfmt makeinfo perl
USE_TOOLS+= gmake msgfmt makeinfo perl:build
REPLACE_LOCALEDIR_PATTERNS+= Make-in
INSTALL_TARGET= install install-info
TEST_TARGET= check
INFO_FILES= yes
CONFIGURE_ENV+= CONFIG_LDFLAGS=${LDFLAGS:M*:Q}
USE_LANGUAGES= c c++
# In gdb/configure, depcomp is parsed with sed.
SUBST_CLASSES+= fix-depcomp
SUBST_STAGE.fix-depcomp+= pre-configure
SUBST_MESSAGE.fix-depcomp+= Read depcomp directly
SUBST_FILES.fix-depcomp+= gdb/configure
SUBST_SED.fix-depcomp+= -e 's,< ./depcomp,${_OVERRIDE_PATH.depcomp},'
AUTO_MKDIRS= yes
.include "options.mk"
@ -43,12 +50,6 @@ MAKE_ENV+= gdb_cv_var_elf=yes
CONFIGURE_ENV+= gdb_cv_struct_lwp=yes
MAKE_ENV+= gdb_cv_struct_lwp=yes
.elif ${OPSYS} == "Linux"
USE_TOOLS+= aclocal autoheader autoconf
pre-configure:
${RUN} cd ${WRKSRC}/gdb/gdbserver && \
aclocal && autoheader && autoconf
.elif ${OPSYS} == "DragonFly"
TARGET_STR= ${MACHINE_ARCH}--dragonfly
BUILD_DEFS+= ${TARGET_STR}
@ -59,6 +60,7 @@ TEST_ENV= DEJAGNU=${WRKDIR}/../files/dragonfly-default.exp
.endif
post-install:
${RM} -f ${DESTDIR}/${PREFIX}/lib/charset.alias
.if ${OPSYS} == "DragonFly"
# Following are installed by binutils
#. for f in ansidecl.h bfdlink.h dis-asm.h symcat.h