From cda15506c9c5fdd1652876e45f6147b1f53bca34 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 2 Jun 1998 23:46:41 +0000 Subject: Fix package to compile under good old NetBSD 1.3. --- editors/nedit/Makefile | 9 +++++++-- editors/nedit/files/Makefile.source | 9 +++++++++ editors/nedit/files/Makefile.util | 9 +++++++++ editors/nedit/patches/patch-ac | 10 ++++++++++ 4 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 editors/nedit/files/Makefile.source create mode 100644 editors/nedit/files/Makefile.util create mode 100644 editors/nedit/patches/patch-ac (limited to 'editors/nedit') diff --git a/editors/nedit/Makefile b/editors/nedit/Makefile index 07c27a4843f..5259ec2088e 100644 --- a/editors/nedit/Makefile +++ b/editors/nedit/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 1998/06/02 22:33:16 tron Exp $ +# $NetBSD: Makefile,v 1.2 1998/06/02 23:46:41 tron Exp $ DISTNAME= nedit_source PKGNAME= nedit-5.0.2 @@ -12,10 +12,15 @@ USE_X11= yes NO_WRKSUBDIR= yes NO_CONFIGURE= yes -ALL_TARGET= linux_nedit +ALL_TARGET= netbsd_nedit MAN1= nc.1 nedit.1 +post-extract: +.for DIR in source util + @${LN} -s ${FILESDIR}/Makefile.${DIR} ${WRKSRC}/${DIR}/Makefile.netbsd +.endfor + do-install: .for PROGRAM in nc nedit ${INSTALL_PROGRAM} ${WRKSRC}/source/${PROGRAM} ${PREFIX}/bin diff --git a/editors/nedit/files/Makefile.source b/editors/nedit/files/Makefile.source new file mode 100644 index 00000000000..ff6c47ac82e --- /dev/null +++ b/editors/nedit/files/Makefile.source @@ -0,0 +1,9 @@ +CC=cc +AR=ar + +# For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS +CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD +ARFLAGS=-ur +LIBS= -L/usr/X11R6/lib -lm -lXm -lXpm -lXext -lXt -lSM -lICE -lX11 + +include Makefile.common diff --git a/editors/nedit/files/Makefile.util b/editors/nedit/files/Makefile.util new file mode 100644 index 00000000000..ff6c47ac82e --- /dev/null +++ b/editors/nedit/files/Makefile.util @@ -0,0 +1,9 @@ +CC=cc +AR=ar + +# For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS +CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD +ARFLAGS=-ur +LIBS= -L/usr/X11R6/lib -lm -lXm -lXpm -lXext -lXt -lSM -lICE -lX11 + +include Makefile.common diff --git a/editors/nedit/patches/patch-ac b/editors/nedit/patches/patch-ac new file mode 100644 index 00000000000..375b9922963 --- /dev/null +++ b/editors/nedit/patches/patch-ac @@ -0,0 +1,10 @@ +--- Makefile.orig Thu Mar 19 22:20:29 1998 ++++ Makefile Wed Jun 3 01:31:53 1998 +@@ -42,3 +42,7 @@ + linux_nedit: + (cd util; $(MAKE) -f Makefile.linux libNUtil.a) + (cd source; $(MAKE) -f Makefile.linux nedit nc) ++ ++netbsd_nedit: ++ (cd util; $(MAKE) -f Makefile.netbsd libNUtil.a) ++ (cd source; $(MAKE) -f Makefile.netbsd nedit nc) -- cgit v1.2.3