diff options
author | John Baldwin <jhb@FreeBSD.org> | 2012-03-09 17:03:28 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2012-03-09 17:03:28 +0000 |
commit | 2b231b984808d69e7356b90f0c283a9cad0e6ca5 (patch) | |
tree | 98cfcccc5a41cb95c1d126d63b7a245e8a137542 /devel/gdb | |
parent | 41fb37c54e699b664754daa931d9f815ba311c47 (diff) | |
download | ports-2b231b984808d69e7356b90f0c283a9cad0e6ca5.tar.gz ports-2b231b984808d69e7356b90f0c283a9cad0e6ca5.zip |
Notes
Diffstat (limited to 'devel/gdb')
-rw-r--r-- | devel/gdb/Makefile | 10 | ||||
-rw-r--r-- | devel/gdb/pkg-plist | 11 |
2 files changed, 20 insertions, 1 deletions
diff --git a/devel/gdb/Makefile b/devel/gdb/Makefile index 54bed0ef8176..cdfe64f55665 100644 --- a/devel/gdb/Makefile +++ b/devel/gdb/Makefile @@ -8,7 +8,7 @@ PORTNAME= gdb PORTVERSION= 7.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU:S,$,:gdb,} MASTER_SITE_SUBDIR=gdb/:gdb @@ -25,6 +25,7 @@ USE_ICONV= yes GNU_CONFIGURE= yes CONFIGURE_ENV+= CONFIGURED_M4=m4 CONFIGURED_BISON=byacc CONFIGURE_ARGS= --program-suffix=${PORTVERSION:S/.//g} \ + --with-gdb-datadir=${PREFIX}/share/gdb${PORTVERSION:S/.//g} \ --with-libiconv-prefix=${LOCALBASE} \ --with-system-readline \ --without-libunwind \ @@ -78,8 +79,10 @@ CONFIGURE_ARGS+= --without-expat .if defined(WITH_PYTHON) CONFIGURE_ARGS+= --with-python=${PYTHON_CMD} +PLIST_SUB+= PYTHON="" .else CONFIGURE_ARGS+= --without-python +PLIST_SUB+= PYTHON="@comment " .endif .if ${ARCH} == "amd64" @@ -98,7 +101,12 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb ${PREFIX}/bin/gdb${VER} ${LN} ${PREFIX}/bin/gdb${VER} ${PREFIX}/bin/gdbtui${VER} ${INSTALL_MAN} ${WRKSRC}/gdb/gdb.1 ${MAN1PREFIX}/man/man1/gdb${VER}.1 +.if defined(WITH_PYTHON) + (cd ${WRKSRC}/gdb; ${GMAKE} install-python ) + (cd ${WRKSRC}/gdb/data-directory; ${GMAKE} install-python ) +.endif .if defined(WITH_GDB_LINK) ${LN} -s ${PREFIX}/bin/gdb${VER} ${PREFIX}/bin/gdb .endif + .include <bsd.port.post.mk> diff --git a/devel/gdb/pkg-plist b/devel/gdb/pkg-plist index 9fef05cf30f3..3359cb6713f9 100644 --- a/devel/gdb/pkg-plist +++ b/devel/gdb/pkg-plist @@ -1,3 +1,14 @@ bin/gdb%%VER%% bin/gdbtui%%VER%% +%%PYTHON%%share/gdb%%VER%%/python/gdb/__init__.py +%%PYTHON%%share/gdb%%VER%%/python/gdb/types.py +%%PYTHON%%share/gdb%%VER%%/python/gdb/printing.py +%%PYTHON%%share/gdb%%VER%%/python/gdb/prompt.py +%%PYTHON%%share/gdb%%VER%%/python/gdb/command/__init__.py +%%PYTHON%%share/gdb%%VER%%/python/gdb/command/pretty_printers.py +%%PYTHON%%share/gdb%%VER%%/python/gdb/command/prompt.py +%%PYTHON%%@dirrm share/gdb%%VER%%/python/gdb/command +%%PYTHON%%@dirrm share/gdb%%VER%%/python/gdb +%%PYTHON%%@dirrm share/gdb%%VER%%/python +%%PYTHON%%@dirrm share/gdb%%VER%% @unexec if $( %%GDB_LINK%% ) ; then rm -f %%PREFIX%%/bin/gdb; fi |