diff options
Diffstat (limited to 'x11/9term/patches/patch-ae')
-rw-r--r-- | x11/9term/patches/patch-ae | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/x11/9term/patches/patch-ae b/x11/9term/patches/patch-ae new file mode 100644 index 00000000000..c03427d5a32 --- /dev/null +++ b/x11/9term/patches/patch-ae @@ -0,0 +1,66 @@ +$NetBSD: patch-ae,v 1.1 2001/05/01 09:35:41 agc Exp $ + +--- 9term/Makefile.orig Mon Mar 14 04:50:54 1994 ++++ 9term/Makefile Tue May 1 09:59:01 2001 +@@ -11,27 +11,29 @@ + # Define RISCOS for Mips RISC/os + # Define BSDPTYS for BSD-style pty support + # Define POSIXPTYS for POSIX ptys +-OS=-DSOLARIS + +-# where we'll install it +-BINDIR=/usr/pgrad/matty/bin/$(cputype) ++OS= -D_LIBXG_EXTENSION -DSUNOS ++ ++SAMPATH=${PREFIX}/include/sam ++ ++BINDIR=. # where we'll install it + + HEADERFILE=9term.h + TARGET=9term +-INCLUDES=-I. -I../include -I/usr/openwin/include +-CFLAGS=-g $(OS) $(INCLUDES) -fno-builtin -D_LIBXG_EXTENSION +-LDFLAGS=-g -R/usr/openwin/lib -L/usr/openwin/lib -R/usr/ucblib -L/usr/ucblib ++INCLUDES=-I. -I../libtext -I$(SAMPATH) -I${X11BASE}/include ++CFLAGS= -O2 $(OS) $(INCLUDES) ++LDFLAGS?= + CC=gcc + + # change this if your X11 libraries are in different places + # or if you need extra libraries to load with X11 applications +-LIBS=../libtext/libtext.a ../libframe/libframe.a ../libXg/libXg.a +-XLIBS=-lXt -lX11 ++LIBS=../libtext/libtext.a $(PREFIX)/lib/libframe.a $(PREFIX)/lib/libXg.a ++XLIBS= -Wl,-R${X11BASE}/lib -L${X11BASE}/lib -lXt -lX11 + + OBJECTS=9term.o command.o display.o pty.o + + $(TARGET): $(OBJECTS) +- $(CC) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(XLIBS) -lm -lucb ++ $(CC) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(XLIBS) -lm + + wloc: wloc.o + $(CC) $(LDFLAGS) -o wloc wloc.o $(LIBS) $(XLIBS) -lm +@@ -39,21 +41,17 @@ + label: wloc + ln wloc label + +-unicode: unicode.o +- $(CC) $(LDFLAGS) -o unicode unicode.o $(LIBS) $(XLIBS) -lm +- + install: $(TARGET) wloc label + cp $(TARGET) $(BINDIR) + chown root $(BINDIR)/$(TARGET) + chmod 04755 $(BINDIR)/$(TARGET) + mv wloc $(BINDIR) + mv label $(BINDIR) +- mv unicode $(BINDIR) + + clean: + rm -f *.o core + + nuke: clean +- rm -f $(TARGET) wloc label unicode ++ rm -f $(TARGET) wloc label + + $(OBJECTS): 9term.h |