37 lines
1 KiB
Text
37 lines
1 KiB
Text
$NetBSD: patch-ab,v 1.12 2003/06/13 10:55:26 cjep Exp $
|
|
--- cda_d/Imakefile.orig Wed Aug 8 01:15:13 2001
|
|
+++ cda_d/Imakefile Tue Jun 10 13:29:21 2003
|
|
@@ -53,7 +53,13 @@
|
|
DEFINES= -DBSDCOMPAT -DUSE_TERMIOS
|
|
#else
|
|
#if defined(NetBSDArchitecture)
|
|
-DEFINES= -DBSDCOMPAT -DNOVISUAL -DUSE_TERMIOS
|
|
+#if OSMajorVersion == 1 && (OSMinorVersion < 6 || \
|
|
+ (OSMinorVersion == 6 && OSTeenyVersion < 20))
|
|
+DEFINES= -DBSDCOMPAT -DUSE_TERMIOS
|
|
+#else
|
|
+DEFINES= -DBSDCOMPAT -DUSE_TERMIOS -DUSE_NETBSD_CURSES
|
|
+#define USE_NETBSD_CURSES
|
|
+#endif
|
|
#else
|
|
#if defined(__bsdi__)
|
|
.if exists(/usr/include/ncurses.h)
|
|
@@ -127,11 +133,16 @@
|
|
.endif
|
|
#else
|
|
#if defined(NetBSDArchitecture)
|
|
-LOCAL_LIBRARIES=
|
|
+LOCAL_LIBRARIES= ${MOTIFLIB} XawClientLibs
|
|
+#if defined USE_NETBSD_CURSES
|
|
+LOCAL_LIBRARIES+=-lcurses
|
|
+#else
|
|
+LOCAL_LIBRARIES+=-lncurses
|
|
+#endif
|
|
#else
|
|
#if defined(__bsdi__)
|
|
.if exists(/usr/include/ncurses.h)
|
|
-LOCAL_LIBRARIES=-lncurses
|
|
+LOCAL_LIBRARIES=-I${LOCALBASE}/include -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lncurses
|
|
.else
|
|
LOCAL_LIBRARIES=
|
|
.endif
|