Lines 2-9
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= gdb |
4 |
PORTNAME= gdb |
5 |
PORTVERSION= 7.6.1 |
5 |
PORTVERSION= 7.6.2 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= devel |
6 |
CATEGORIES= devel |
8 |
MASTER_SITES= GNU |
7 |
MASTER_SITES= GNU |
9 |
|
8 |
|
Lines 13-24
Link Here
|
13 |
LICENSE= GPLv3 |
12 |
LICENSE= GPLv3 |
14 |
|
13 |
|
15 |
USE_BZIP2= yes |
14 |
USE_BZIP2= yes |
|
|
15 |
USES= iconv gmake |
16 |
USE_CSTD= gnu89 |
16 |
USE_CSTD= gnu89 |
17 |
USES= iconv gmake |
|
|
18 |
GNU_CONFIGURE= yes |
17 |
GNU_CONFIGURE= yes |
19 |
CONFIGURE_ENV= CONFIGURED_M4=m4 CONFIGURED_BISON=byacc |
18 |
CONFIGURE_ENV= CONFIGURED_M4=m4 CONFIGURED_BISON=byacc |
20 |
CONFIGURE_ARGS= --program-suffix=${PORTVERSION:S/.//g} \ |
19 |
CONFIGURE_ARGS= --program-suffix=${PORTVERSION:S/.//g} \ |
21 |
--with-gdb-datadir=${PREFIX}/share/gdb${PORTVERSION:S/.//g} \ |
20 |
--with-gdb-datadir=${PREFIX}/share/gdb${PORTVERSION:S/.//g} \ |
|
|
21 |
--with-separate-debug-dir=/usr/lib/debug \ |
22 |
${ICONV_CONFIGURE_ARG} \ |
22 |
${ICONV_CONFIGURE_ARG} \ |
23 |
--without-libunwind-ia64 \ |
23 |
--without-libunwind-ia64 \ |
24 |
--enable-targets=all |
24 |
--enable-targets=all |
Lines 25-64
Link Here
|
25 |
CFLAGS:= ${CFLAGS:C/ +$//} # blanks at EOL creep in sometimes |
25 |
CFLAGS:= ${CFLAGS:C/ +$//} # blanks at EOL creep in sometimes |
26 |
CFLAGS+= -DRL_NO_COMPAT |
26 |
CFLAGS+= -DRL_NO_COMPAT |
27 |
EXCLUDE= dejagnu expect sim texinfo intl |
27 |
EXCLUDE= dejagnu expect sim texinfo intl |
|
|
28 |
EXTRACT_AFTER_ARGS= ${EXCLUDE:S/^/--exclude /} |
29 |
|
28 |
VER= ${PORTVERSION:S/.//g} |
30 |
VER= ${PORTVERSION:S/.//g} |
29 |
PLIST_SUB= VER=${VER} |
31 |
PLIST_SUB= VER=${VER} |
30 |
EXTRACT_AFTER_ARGS= ${EXCLUDE:S/^/--exclude /} |
|
|
31 |
|
32 |
|
32 |
ONLY_FOR_ARCHS= i386 amd64 powerpc powerpc64 # untested elsewhere, might work |
33 |
ONLY_FOR_ARCHS= i386 amd64 powerpc powerpc64 # untested elsewhere, might work |
33 |
|
34 |
|
34 |
OPTIONS_DEFINE= DEBUG EXPAT PYTHON THREADS TUI GDB_LINK |
35 |
OPTIONS_DEFINE= DEBUG EXPAT GDB_LINK PYTHON THREADS TUI |
|
|
36 |
|
37 |
OPTIONS_DEFAULT= THREADS TUI GDB_LINK PORT_READLINE |
38 |
|
39 |
OPTIONS_SINGLE= READLINE |
35 |
OPTIONS_SINGLE_READLINE= BASE_READLINE BUNDLED_READLINE PORT_READLINE |
40 |
OPTIONS_SINGLE_READLINE= BASE_READLINE BUNDLED_READLINE PORT_READLINE |
36 |
OPTIONS_SINGLE= READLINE |
41 |
|
|
|
42 |
GDB_LINK_DESC= Create the gdb link |
37 |
BASE_READLINE_DESC= from base system(EXPERIMENTAL) |
43 |
BASE_READLINE_DESC= from base system(EXPERIMENTAL) |
38 |
BUNDLED_READLINE_DESC= from gdb distfile |
44 |
BUNDLED_READLINE_DESC= from gdb distfile |
39 |
PORT_READLINE_DESC= from devel/readline port |
45 |
PORT_READLINE_DESC= from devel/readline port |
40 |
GDB_LINK_DESC= Create the gdb link |
|
|
41 |
TUI_DESC= Text User Interface enabled |
46 |
TUI_DESC= Text User Interface enabled |
42 |
OPTIONS_DEFAULT= THREADS TUI GDB_LINK PORT_READLINE |
|
|
43 |
|
47 |
|
44 |
# Activating the plist |
48 |
OPTIONS_SUB= yes |
45 |
OPTIONS_SUB=yes |
|
|
46 |
|
49 |
|
|
|
50 |
BASE_READLINE_USES= readline |
51 |
BASE_READLINE_CFLAGS= -D_rl_echoing_p=readline_echoing_p |
52 |
BUNDLED_READLINE_CONFIGURE_OFF= --with-system-readline |
47 |
DEBUG_CFLAGS= -g |
53 |
DEBUG_CFLAGS= -g |
48 |
EXPAT_CONFIGURE_ON= --with-expat=yes |
54 |
EXPAT_CONFIGURE_ON= --with-expat=yes |
49 |
EXPAT_CONFIGURE_OFF= --without-expat |
55 |
EXPAT_CONFIGURE_OFF= --without-expat |
50 |
EXPAT_LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 |
56 |
EXPAT_LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 |
51 |
TUI_CONFIGURE_ENABLE= tui |
|
|
52 |
PYTHON_CONFIGURE_ON= --with-python=${PYTHON_CMD} |
57 |
PYTHON_CONFIGURE_ON= --with-python=${PYTHON_CMD} |
53 |
PYTHON_CONFIGURE_OFF= --without-python |
58 |
PYTHON_CONFIGURE_OFF= --without-python |
54 |
PORT_READLINE_USES= readline:port |
59 |
PORT_READLINE_USES= readline:port |
55 |
BASE_READLINE_USES= readline |
60 |
TUI_CONFIGURE_ENABLE= tui |
56 |
BASE_READLINE_CFLAGS= -D_rl_echoing_p=readline_echoing_p |
|
|
57 |
BUNDLED_READLINE_CONFIGURE_OFF= --with-system-readline |
58 |
|
61 |
|
59 |
.include <bsd.port.options.mk> |
62 |
.include <bsd.port.options.mk> |
60 |
|
63 |
|
61 |
.if empty(PORT_OPTIONS:MBUNDLED_READLINE) |
64 |
.if ! ${PORT_OPTIONS:MBUNDLED_READLINE} |
62 |
EXCLUDE+= readline |
65 |
EXCLUDE+= readline |
63 |
.endif |
66 |
.endif |
64 |
|
67 |
|
Lines 67-73
Link Here
|
67 |
.endif |
70 |
.endif |
68 |
|
71 |
|
69 |
.if ${PORT_OPTIONS:MTHREADS} |
72 |
.if ${PORT_OPTIONS:MTHREADS} |
70 |
EXTRA_PATCHES= ${FILESDIR}/extrapatch-gdb-configure.tgt ${FILESDIR}/extrapatch-gdb-Makefile.in |
73 |
EXTRA_PATCHES= ${FILESDIR}/extrapatch-gdb-configure.tgt \ |
|
|
74 |
${FILESDIR}/extrapatch-gdb-Makefile.in |
71 |
.endif |
75 |
.endif |
72 |
|
76 |
|
73 |
.if ${ARCH} == "amd64" |
77 |
.if ${ARCH} == "amd64" |
Lines 75-105
Link Here
|
75 |
.endif |
79 |
.endif |
76 |
|
80 |
|
77 |
post-patch: |
81 |
post-patch: |
78 |
@${REINPLACE_CMD} -e 's/$$/ [GDB v${PORTVERSION} for FreeBSD]/' \ |
82 |
@${REINPLACE_CMD} -e 's|$$| [GDB v${PORTVERSION} for FreeBSD]|' \ |
79 |
${WRKSRC}/gdb/version.in |
83 |
${WRKSRC}/gdb/version.in |
|
|
84 |
|
80 |
.if ${PORT_OPTIONS:MTHREADS} |
85 |
.if ${PORT_OPTIONS:MTHREADS} |
81 |
@${CP} ${FILESDIR}/fbsd-threads.c ${WRKSRC}/gdb/ |
86 |
@${CP} ${FILESDIR}/fbsd-threads.c ${WRKSRC}/gdb/ |
82 |
.endif |
87 |
.endif |
83 |
|
88 |
|
84 |
do-install: |
89 |
do-install: |
85 |
${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb ${STAGEDIR}${PREFIX}/bin/gdb${VER} |
90 |
${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb \ |
86 |
${INSTALL_MAN} ${WRKSRC}/gdb/gdb.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/gdb${VER}.1 |
91 |
${STAGEDIR}${PREFIX}/bin/gdb${VER} |
|
|
92 |
${INSTALL_MAN} ${WRKSRC}/gdb/gdb.1 \ |
93 |
${STAGEDIR}${MAN1PREFIX}/man/man1/gdb${VER}.1 |
94 |
|
87 |
.if ${PORT_OPTIONS:MTUI} |
95 |
.if ${PORT_OPTIONS:MTUI} |
88 |
${LN} -sf gdb${VER} ${STAGEDIR}${PREFIX}/bin/gdbtui${VER} |
96 |
${LN} -sf gdb${VER} ${STAGEDIR}${PREFIX}/bin/gdbtui${VER} |
89 |
.endif |
97 |
.endif |
|
|
98 |
|
90 |
.if ${PORT_OPTIONS:MGDB_LINK} |
99 |
.if ${PORT_OPTIONS:MGDB_LINK} |
91 |
${LN} -sf gdb${VER} ${STAGEDIR}${PREFIX}/bin/gdb |
100 |
${LN} -sf gdb${VER} ${STAGEDIR}${PREFIX}/bin/gdb |
92 |
.endif |
101 |
.endif |
|
|
102 |
|
93 |
.if ${PORT_OPTIONS:MPYTHON} |
103 |
.if ${PORT_OPTIONS:MPYTHON} |
94 |
(cd ${WRKSRC}/gdb; ${GMAKE} DESTDIR=${STAGEDIR} install-python ) |
104 |
(cd ${WRKSRC}/gdb; ${GMAKE} DESTDIR=${STAGEDIR} install-python ) |
95 |
(cd ${WRKSRC}/gdb/data-directory; ${GMAKE} DESTDIR=${STAGEDIR} install-python ) |
105 |
(cd ${WRKSRC}/gdb/data-directory ; \ |
|
|
106 |
${GMAKE} DESTDIR=${STAGEDIR} install-python ) |
96 |
.endif |
107 |
.endif |
97 |
|
108 |
|
98 |
post-install: |
|
|
99 |
.if ${PORT_OPTIONS:MPYTHON} |
109 |
.if ${PORT_OPTIONS:MPYTHON} |
100 |
${CHMOD} u+w ${STAGEDIR}${PREFIX}/share/gdb${VER}/python/gdb/*.py* |
110 |
. for f in gdb gdb/command gdb/function |
101 |
${CHMOD} u+w ${STAGEDIR}${PREFIX}/share/gdb${VER}/python/gdb/command/*.py* |
111 |
@(cd ${STAGEDIR}${PREFIX}/share/gdb${VER}/python/${f} ; ${CHMOD} 644 *.py* ) |
102 |
${CHMOD} u+w ${STAGEDIR}${PREFIX}/share/gdb${VER}/python/gdb/function/*.py* |
112 |
. endfor |
103 |
.endif |
113 |
.endif |
104 |
|
114 |
|
105 |
.include <bsd.port.mk> |
115 |
.include <bsd.port.mk> |