diff options
author | pawel <pawel@FreeBSD.org> | 2012-04-20 03:05:03 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2012-04-20 03:05:03 +0800 |
commit | c596c7637d42e53e12177261e8507ce177085755 (patch) | |
tree | 09468be7cd53104dd4483b5b19e38d5b22c11377 /devel/gdb | |
parent | 20c40754528a0d7cac6d30587ffe89d09eb93339 (diff) | |
download | freebsd-ports-gnome-c596c7637d42e53e12177261e8507ce177085755.tar.gz freebsd-ports-gnome-c596c7637d42e53e12177261e8507ce177085755.tar.zst freebsd-ports-gnome-c596c7637d42e53e12177261e8507ce177085755.zip |
Fix GDB_LINK option
PR: ports/167049
Submitted by: Tijl Coosemans <tijl@coosemans.org>
Approved by: maintainer
Diffstat (limited to 'devel/gdb')
-rw-r--r-- | devel/gdb/Makefile | 9 | ||||
-rw-r--r-- | devel/gdb/pkg-plist | 3 |
2 files changed, 7 insertions, 5 deletions
diff --git a/devel/gdb/Makefile b/devel/gdb/Makefile index 391057f7e7f3..8215ea979d76 100644 --- a/devel/gdb/Makefile +++ b/devel/gdb/Makefile @@ -8,7 +8,7 @@ PORTNAME= gdb PORTVERSION= 7.4 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU:S,$,:gdb,} MASTER_SITE_SUBDIR=gdb/:gdb @@ -55,9 +55,9 @@ OPTIONS= DEBUG "Build with debugging symbols" off \ .include <bsd.port.options.mk> .if defined(WITH_GDB_LINK) -PLIST_SUB+= GDB_LINK=true +PLIST_SUB+= GDB_LINK="" .else -PLIST_SUB+= GDB_LINK=false +PLIST_SUB+= GDB_LINK="@comment " .endif .if defined(WITH_PYTHON) @@ -101,6 +101,9 @@ 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_GDB_LINK) + ${LN} -sf gdb${VER} ${PREFIX}/bin/gdb +.endif .if defined(WITH_PYTHON) (cd ${WRKSRC}/gdb; ${GMAKE} install-python ) (cd ${WRKSRC}/gdb/data-directory; ${GMAKE} install-python ) diff --git a/devel/gdb/pkg-plist b/devel/gdb/pkg-plist index 2a8d713e5eff..775051a71165 100644 --- a/devel/gdb/pkg-plist +++ b/devel/gdb/pkg-plist @@ -1,3 +1,4 @@ +%%GDB_LINK%%bin/gdb bin/gdb%%VER%% bin/gdbtui%%VER%% %%PYTHON%%share/gdb%%VER%%/python/gdb/__init__.py @@ -11,5 +12,3 @@ bin/gdbtui%%VER%% %%PYTHON%%@dirrm share/gdb%%VER%%/python/gdb %%PYTHON%%@dirrm share/gdb%%VER%%/python %%PYTHON%%@dirrm share/gdb%%VER%% -@exec if $( %%GDB_LINK%% ) ; then ln -fs %%PREFIX%%/bin/gdb%%VER%% %%PREFIX%%/bin/gdb; fi -@unexec if $( %%GDB_LINK%% ) ; then rm -f %%PREFIX%%/bin/gdb; fi |