pkgsrc-wip/gdb/Makefile
Makoto Fujiwara e5be0109e0 Bump version 7.6 to 7.6.1
---------
GDB 7.6.1 provides the following fixes and improvements to GDB 7.6:

  * PR tdep/15420 (Cannot debug threaded programs on newer versions
    of x86-solaris - Solaris 10, Update 10 or later)
  * PR remote/15455 (QTro remote packet broken)
  * PR build/15476 (Build failure due to incomplete enum type in utils.h)
  * PR server/15594 (tls support in 64x32 x86 gdbserver doesn't extend
    address to 64 bit)
  * PR server/15075 (dprintf inteferes with "next")
  * PR server/15434 (dprintf uses a synchronous 'continue' even in
    non-stop mode)
  * PR tui/14880 (in split register layouts, up results in assertion
    failure in value.c)
  * PR c++/15519 (GDB 7.6 is 94x slower than GDB 7.5.1 using a certain
    core file)
  * PR gdb/15837 (GDB prints entry values for local variables)
  * PR gdb/15415 (gdb resolves symbolic links when passing argv[0])
  * PR cli/15603 (CTRL-C can no longer interrupt inferior)
  * PR gdb/15604 (gdbserver socket leak 7.5 regression)
   ---------
2013-10-01 15:47:03 +00:00

84 lines
2.5 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2013/10/01 15:47:03 makoto Exp $
#
DISTNAME= gdb-7.6.1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=gdb/}
MAINTAINER= pkgsrc-users@NetBSD.org
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-*-* NetBSD-*-x86_64
BROKEN_GETTEXT_DETECTION= yes
GNU_CONFIGURE= YES
USE_PKGLOCALEDIR= YES
USE_LIBTOOL= YES
USE_TOOLS+= gmake msgfmt makeinfo
REPLACE_LOCALEDIR_PATTERNS+= Make-in
INSTALL_TARGET= install install-info
TEST_TARGET= check
INFO_FILES= yes
CONFIGURE_ENV+= CONFIG_LDFLAGS=${LDFLAGS:M*:Q}
AUTO_MKDIRS= yes
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
# Work around a bug in gdb's configure
CONFIGURE_ENV+= ac_cv_header_curses_h=yes
.elif ${OPSYS} == "NetBSD"
.include "../../mk/curses.buildlink3.mk"
CONFIGURE_ARGS+= -with-curses
CONFIGURE_ENV+= gdb_cv_var_elf=yes
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}
## Remove "-pc" string, without this, getting following message:
## *** Gdb does not support native target i386-pc-dragonfly"
CONFIGURE_ARGS+= --target=${TARGET_STR}
TEST_ENV= DEJAGNU=${WRKDIR}/../files/dragonfly-default.exp
.endif
# pkg_add: Conflicting PLIST with autoconf-2.69nb1: info/standards.info
post-patch:
${RM} ${WRKSRC}/etc/standards.info
post-install:
.if ${OPSYS} == "DragonFly"
# Following are installed by binutils
#. for f in ansidecl.h bfdlink.h dis-asm.h symcat.h
# (cd ${WRKSRC}/include; ${INSTALL_DATA} ${f} ${DESTDIR}${PREFIX}/include)
#. endfor
(cd ${DESTDIR}${PREFIX}/bin; ${LN} ${TARGET_STR}-gdb gdb)
(cd ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; ${LN} ${TARGET_STR}-gdb.1 gdb.1)
.endif
#
# PATH of libiberty.a differs between clang and gcc: (and conflicts to other toolchain)
# Rename to avoid conflict to native and other toolchain
# and clang differs its path so, (the same as avr-binutils).
(cd ${DESTDIR}${PREFIX}; \
for d in ${MACHINE_ARCH}/libiberty.a libiberty.a; \
do if [ -f lib/$$d ]; then \
${MV} lib/$$d lib/gdb/libiberty.a; \
break; \
fi; \
done; )
.include "../../mk/termcap.buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"