aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gdb66
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2004-10-28 02:37:40 +0800
committerobrien <obrien@FreeBSD.org>2004-10-28 02:37:40 +0800
commitd9ef8a154d5280f2d945598ddebccdc7463ad379 (patch)
tree6e9b70847f7a60aaebc95d4f2b848ec5998dd491 /devel/gdb66
parent836da93882654e8d072173128ec2b1541afdc121 (diff)
downloadfreebsd-ports-gnome-d9ef8a154d5280f2d945598ddebccdc7463ad379.tar.gz
freebsd-ports-gnome-d9ef8a154d5280f2d945598ddebccdc7463ad379.tar.zst
freebsd-ports-gnome-d9ef8a154d5280f2d945598ddebccdc7463ad379.zip
Really allow building on 4.x. Rev 1.40 was a NOP as the base readline lib
(libreadline.so.4) was the same name as the ports's library. So Rev 1.40 only worked if you manually installed the readline port. This fix allows gdb6 to build with the base stock readline.
Diffstat (limited to 'devel/gdb66')
-rw-r--r--devel/gdb66/Makefile4
-rw-r--r--devel/gdb66/files/fbsd4.h15
2 files changed, 16 insertions, 3 deletions
diff --git a/devel/gdb66/Makefile b/devel/gdb66/Makefile
index c9e834ca5305..ffa14b8b6573 100644
--- a/devel/gdb66/Makefile
+++ b/devel/gdb66/Makefile
@@ -35,9 +35,7 @@ CFLAGS+= -DRL_NO_COMPAT -DKGDB
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
-USE_GCC?= 3.4
-LIB_DEPENDS= readline.4:${PORTSDIR}/devel/readline
-CFLAGS+= -Wl,--rpath -Wl,${PREFIX}/lib
+CFLAGS+= -include ${FILESDIR}/fbsd4.h
.endif
.if ${ARCH} == "amd64"
diff --git a/devel/gdb66/files/fbsd4.h b/devel/gdb66/files/fbsd4.h
new file mode 100644
index 000000000000..28afb1ba4ca1
--- /dev/null
+++ b/devel/gdb66/files/fbsd4.h
@@ -0,0 +1,15 @@
+// $FreeBSD$
+
+extern void _rl_set_screen_size (int, int);
+
+#define rl_set_screen_size _rl_set_screen_size
+#define rl_filename_completion_function filename_completion_function
+
+extern int screenwidth, screenheight;
+
+static inline void
+rl_get_screen_size (int *rows, int *cols)
+{
+ if (rows) *rows = screenheight;
+ if (cols) *cols = screenwidth;
+}