diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2004-03-25 00:03:28 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2004-03-25 00:03:28 +0000 |
commit | c7e1cfe5a526bf2fb631dd616e34a060e8b6065a (patch) | |
tree | 3b96b869310ddd94740acfc1bcdbea2108c6c9e3 /devel/gdb66 | |
parent | Update for new binary version of p4v from Perforce. (diff) |
Link gdb6 to gdb on platforms w/o /usr/src gdb support.
Diffstat (limited to 'devel/gdb66')
-rw-r--r-- | devel/gdb66/Makefile | 19 | ||||
-rw-r--r-- | devel/gdb66/pkg-plist | 1 |
2 files changed, 15 insertions, 5 deletions
diff --git a/devel/gdb66/Makefile b/devel/gdb66/Makefile index 4a182f499c64..b5275c1ae4f7 100644 --- a/devel/gdb66/Makefile +++ b/devel/gdb66/Makefile @@ -27,6 +27,19 @@ USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --program-suffix=6 +.include <bsd.port.pre.mk> + +.if ${ARCH} == "amd64" +CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL} +.endif +.if ${ARCH} == "amd64" || ${ARCH} == "sparc64" || ${ARCH} == "ia64" +PLIST_SUB+= NO_NATIVE_GDB="" +post-install: + cd ${PREFIX}/bin ; ${LN} -sf gdb${PORTVERSION} gdb +.else +PLIST_SUB+= NO_NATIVE_GDB="@comment " +.endif + post-patch: @${REINPLACE_CMD} -e 's/$$/ [FreeBSD]/' ${WRKSRC}/gdb/version.in @@ -45,8 +58,4 @@ cklatest: ftp://sources.redhat.com/pub/${MASTER_SITE_SUBDIR}/ \ | ${GREP} gdb+dejagnu-weekly -.include <bsd.port.mk> - -.if ${ARCH} == "amd64" -CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL} -.endif +.include <bsd.port.post.mk> diff --git a/devel/gdb66/pkg-plist b/devel/gdb66/pkg-plist index 18c85983f58d..6118ca15f1e0 100644 --- a/devel/gdb66/pkg-plist +++ b/devel/gdb66/pkg-plist @@ -1,2 +1,3 @@ @comment $FreeBSD$ bin/gdb6 +%%NO_NATIVE_GDB%%bin/gdb |