Date: Tue, 13 Feb 1996 18:32:30 +0000 (GMT) From: Thorsten Frueauf Subject: nedit works on NetBSD 1.1 (current) Resent-to: EDEL@FNALV.FNAL.Gov To: nedit_support@FNAL.GOV Cc: frueauf@ira.uka.de Errors-to: Nedit_Support-error@FNAL.GOV Resent-message-id: <01I15VXXIB04000QKR@FNAL.FNAL.GOV> Message-id: <199602131832.SAA07390@di_frueauf.ira.uka.de> X-VMS-To: IN%"nedit_support@FNAL.GOV" X-VMS-Cc: IN%"frueauf@ira.uka.de" MIME-version: 1.0 X-Mailer: ELM [version 2.5 PL0a5] Content-type: text/PLAIN; CHARSET=US-ASCII Content-transfer-encoding: 7BIT Hello! If you apply the following patches then nedit runs on NetBSD 1.1 too (I build it on an Amiga 3000 running NetBSD 1.1A (current), but it should run on every NetBSD port too): *** ./Makefile-orig Thu Feb 8 21:21:11 1996 --- ./Makefile Tue Feb 13 15:41:21 1996 *************** *** 35,37 **** --- 35,41 ---- dec_nedit: (cd util; make -f Makefile.dec libNUtil.a) (cd source; make -f Makefile.dec nedit nc) + + netbsd_nedit: + (cd util; make -f Makefile.netbsd libNUtil.a) + (cd source; make -f Makefile.netbsd nedit nc) *** ./util/Makefile.common-orig Tue Feb 13 16:17:01 1996 --- ./util/Makefile.common Tue Feb 13 16:18:54 1996 *************** *** 4,16 **** # included by machine specific makefiles. # OBJS = DialogF.o getfiles.o printUtils.o misc.o fileUtils.o \ prefFile.o fontsel.o all: libNUtil.a libNUtil.a: $(OBJS) ! $(AR) -urs libNUtil.a $(OBJS) printUtils.o: printUtils.c $(CC) -c $(CFLAGS) $(PRINTFLAGS) printUtils.c --- 4,22 ---- # included by machine specific makefiles. # + #if defined(NetBSDArchitecture) + ARFLAGS = cq + #else + ARFLAGS = -urs + #endif + OBJS = DialogF.o getfiles.o printUtils.o misc.o fileUtils.o \ prefFile.o fontsel.o all: libNUtil.a libNUtil.a: $(OBJS) ! $(AR) $(ARFLAGS) libNUtil.a $(OBJS) printUtils.o: printUtils.c $(CC) -c $(CFLAGS) $(PRINTFLAGS) printUtils.c *** ./util/Makefile.netbsd-orig Tue Feb 13 18:21:24 1996 --- ./util/Makefile.netbsd Tue Feb 13 15:47:02 1996 *************** *** 0 **** --- 1,7 ---- + CC=gcc + AR=ar + # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS + CFLAGS=-O3 -DUSE_LPR_PRINT_CMD -I/usr/local/X11R6/include + LIBS= -L/usr/local/X11R6/lib -lXm -lXext -lXpm -lXt -lX11 + + include Makefile.common *** ./source/Makefile.netbsd-orig Tue Feb 13 18:21:31 1996 --- ./source/Makefile.netbsd Tue Feb 13 15:46:21 1996 *************** *** 0 **** --- 1,7 ---- + CC=gcc + AR=ar + # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS + CFLAGS=-O3 -DUSE_LPR_PRINT_CMD -I/usr/local/X11R6/include + LIBS= -L/usr/local/X11R6/lib -lXm -lXext -lXpm -lXt -lX11 + + include Makefile.common *** ./source/server.c-orig Thu Feb 8 21:21:09 1996 --- ./source/server.c Tue Feb 13 17:50:01 1996 *************** *** 59,65 **** --- 59,69 ---- #ifdef SUNOS #define MAXNODENAMELEN 9 #else + #ifdef __NetBSD__ + #define MAXNODENAMELEN 256 + #else #define MAXNODENAMELEN SYS_NMLN + #endif /* __NetBSD__ */ #endif /*SUNOS*/ #endif /*VMS*/ *** ./source/nc.c-orig Thu Feb 8 21:21:08 1996 --- ./source/nc.c Tue Feb 13 17:54:49 1996 *************** *** 57,63 **** --- 57,67 ---- #ifdef SUNOS #define MAXNODENAMELEN 9 #else + #ifdef __NetBSD__ + #define MAXNODENAMELEN 256 + #else #define MAXNODENAMELEN SYS_NMLN + #endif /* __NetBSD__ */ #endif /*SUNOS*/ #endif /*VMS*/ Greets Thorsten