1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/editors/nedit/files/patch-aa
1998-01-31 23:46:21 +00:00

94 lines
2.8 KiB
Plaintext

*** Makefile.orig Wed Oct 22 15:42:20 1997
--- Makefile Sat Nov 8 23:39:51 1997
***************
*** 2,15 ****
# Makefile for NEdit text editor
#
# targets: sgi_nedit, hp_nedit, ultrix_nedit, ibm_nedit, sunos_nedit,
! # solaris_nedit, dec_nedit, linux_nedit
#
# Builds an intermediate library in util directory, then builds
# the nedit executable in the source directory
#
! all:
! @echo "Please specify target"
sgi_nedit:
(cd util; $(MAKE) -f Makefile.sgi libNUtil.a)
--- 2,15 ----
# Makefile for NEdit text editor
#
# targets: sgi_nedit, hp_nedit, ultrix_nedit, ibm_nedit, sunos_nedit,
! # solaris_nedit, dec_nedit, linux_nedit, freebsd_nedit
#
# Builds an intermediate library in util directory, then builds
# the nedit executable in the source directory
#
! all: freebsd_nedit
!
sgi_nedit:
(cd util; $(MAKE) -f Makefile.sgi libNUtil.a)
***************
*** 39,44 ****
--- 39,54 ----
(cd util; $(MAKE) -f Makefile.dec libNUtil.a)
(cd source; $(MAKE) -f Makefile.dec nedit nc)
+
+ freebsd_nedit:
+ (cd util; make -f Makefile.freebsd libNUtil.a)
+ (cd source; make -f Makefile.freebsd nedit nc)
+
+ install::
+ (cd source; make -f Makefile.freebsd install)
+ ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 nedit.man ${PREFIX}/man/man1/nedit.1
+ ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 nc.man ${PREFIX}/man/man1/nc.1
+ ${INSTALL} ${COPY} -m 644 NEdit.ad ${X11BASE}/lib/X11/app-defaults/NEdit
linux_nedit:
(cd util; $(MAKE) -f Makefile.linux libNUtil.a)
(cd source; $(MAKE) -f Makefile.linux nedit nc)
*** util/Makefile.freebsd.orig Sun Apr 7 18:09:19 1996
--- util/Makefile.freebsd Sun Apr 7 17:32:32 1996
***************
*** 0 ****
--- 1,8 ----
+ CC=cc
+ AR=ar
+
+ # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS
+ CFLAGS=-O -I${PREFIX}/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -DUSE_XMIM
+ LIBS= ${MOTIFLIB} -L${PREFIX}/lib -lm -lXpm -lXext -lXt -lSM -lICE -lX11
+
+ include Makefile.common
*** source/Makefile.freebsd.orig Sun Apr 7 18:10:29 1996
--- source/Makefile.freebsd Sun Apr 7 17:38:04 1996
***************
*** 0 ****
--- 1,8 ----
+ CC=cc
+ AR=ar
+
+ # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS
+ CFLAGS=-O -I${PREFIX}/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -DUSE_XMIM
+ LIBS= ${MOTIFLIB} -L${PREFIX}/lib -lm -lXpm -lXext -lXt -lSM -lICE -lX11
+
+ include Makefile.common
*** source/Makefile.common.orig Sun Apr 7 17:51:54 1996
--- source/Makefile.common Sun Apr 7 20:07:48 1996
***************
*** 16,21 ****
--- 16,25 ----
nc: nc.o
$(CC) $(CFLAGS) nc.o ../util/libNUtil.a $(LIBS) -o $@
+ install:: nedit nc
+ ${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} nedit ${PREFIX}/bin
+ ${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} nc ${PREFIX}/bin
+
help.o: help.c
$(CC) $(CFLAGS) $(BIGGER_STRINGS) -c help.c -o $@