| @@ -1,18 +1,17 @@ | | | @@ -1,18 +1,17 @@ |
1 | # $NetBSD: Makefile,v 1.47 2015/05/03 19:45:09 joerg Exp $ | | 1 | # $NetBSD: Makefile,v 1.48 2015/08/17 15:02:51 wiz Exp $ |
2 | # | | | |
3 | | | 2 | |
4 | DISTNAME= gdb-7.9 | | 3 | DISTNAME= gdb-7.9 |
5 | PKGREVISION= 1 | | 4 | PKGREVISION= 2 |
6 | CATEGORIES= devel | | 5 | CATEGORIES= devel |
7 | MASTER_SITES= ${MASTER_SITE_GNU:=gdb/} | | 6 | MASTER_SITES= ${MASTER_SITE_GNU:=gdb/} |
8 | | | 7 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://www.gnu.org/software/gdb/gdb.html | | 9 | HOMEPAGE= http://www.gnu.org/software/gdb/gdb.html |
11 | COMMENT= Symbolic debugger for multiple language frontends | | 10 | COMMENT= Symbolic debugger for multiple language frontends |
12 | LICENSE= gnu-gpl-v3 | | 11 | LICENSE= gnu-gpl-v3 |
13 | | | 12 | |
14 | BROKEN_GETTEXT_DETECTION= yes | | 13 | BROKEN_GETTEXT_DETECTION= yes |
15 | GNU_CONFIGURE= YES | | 14 | GNU_CONFIGURE= YES |
16 | USE_PKGLOCALEDIR= YES | | 15 | USE_PKGLOCALEDIR= YES |
17 | USE_LIBTOOL= YES | | 16 | USE_LIBTOOL= YES |
18 | USE_TOOLS+= gmake msgfmt makeinfo | | 17 | USE_TOOLS+= gmake msgfmt makeinfo |
| @@ -29,32 +28,26 @@ AUTO_MKDIRS= yes | | | @@ -29,32 +28,26 @@ AUTO_MKDIRS= yes |
29 | .include "../../mk/bsd.prefs.mk" | | 28 | .include "../../mk/bsd.prefs.mk" |
30 | | | 29 | |
31 | .if ${OPSYS} == "SunOS" | | 30 | .if ${OPSYS} == "SunOS" |
32 | # Work around a bug in gdb's configure | | 31 | # Work around a bug in gdb's configure |
33 | CONFIGURE_ENV+= ac_cv_header_curses_h=yes | | 32 | CONFIGURE_ENV+= ac_cv_header_curses_h=yes |
34 | .elif ${OPSYS} == "NetBSD" | | 33 | .elif ${OPSYS} == "NetBSD" |
35 | .include "../../mk/curses.buildlink3.mk" | | 34 | .include "../../mk/curses.buildlink3.mk" |
36 | CONFIGURE_ARGS+= -with-curses | | 35 | CONFIGURE_ARGS+= -with-curses |
37 | CONFIGURE_ENV+= gdb_cv_var_elf=yes | | 36 | CONFIGURE_ENV+= gdb_cv_var_elf=yes |
38 | MAKE_ENV+= gdb_cv_var_elf=yes | | 37 | MAKE_ENV+= gdb_cv_var_elf=yes |
39 | CONFIGURE_ENV+= gdb_cv_struct_lwp=yes | | 38 | CONFIGURE_ENV+= gdb_cv_struct_lwp=yes |
40 | MAKE_ENV+= gdb_cv_struct_lwp=yes | | 39 | MAKE_ENV+= gdb_cv_struct_lwp=yes |
41 | | | 40 | |
42 | .elif ${OPSYS} == "Linux" | | | |
43 | USE_TOOLS+= aclocal autoheader autoconf | | | |
44 | pre-configure: | | | |
45 | ${RUN} cd ${WRKSRC}/gdb/gdbserver && \ | | | |
46 | aclocal && autoheader && autoconf | | | |
47 | | | | |
48 | .elif ${OPSYS} == "DragonFly" | | 41 | .elif ${OPSYS} == "DragonFly" |
49 | TARGET_STR= ${MACHINE_ARCH}--dragonfly | | 42 | TARGET_STR= ${MACHINE_ARCH}--dragonfly |
50 | BUILD_DEFS+= ${TARGET_STR} | | 43 | BUILD_DEFS+= ${TARGET_STR} |
51 | ## Remove "-pc" string, without this, getting following message: | | 44 | ## Remove "-pc" string, without this, getting following message: |
52 | ## *** Gdb does not support native target i386-pc-dragonfly" | | 45 | ## *** Gdb does not support native target i386-pc-dragonfly" |
53 | CONFIGURE_ARGS+= --target=${TARGET_STR} | | 46 | CONFIGURE_ARGS+= --target=${TARGET_STR} |
54 | TEST_ENV= DEJAGNU=${WRKDIR}/../files/dragonfly-default.exp | | 47 | TEST_ENV= DEJAGNU=${WRKDIR}/../files/dragonfly-default.exp |
55 | .endif | | 48 | .endif |
56 | | | 49 | |
57 | post-install: | | 50 | post-install: |
58 | .if ${OPSYS} == "DragonFly" | | 51 | .if ${OPSYS} == "DragonFly" |
59 | # Following are installed by binutils | | 52 | # Following are installed by binutils |
60 | #. for f in ansidecl.h bfdlink.h dis-asm.h symcat.h | | 53 | #. for f in ansidecl.h bfdlink.h dis-asm.h symcat.h |