summaryrefslogtreecommitdiffstats
path: root/x11/9term
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-10-04 00:56:09 +0000
committersteve <steve@FreeBSD.org>1998-10-04 00:56:09 +0000
commit140f0ac79ef1dcd2a1ad89725f24e695a88a675e (patch)
treeb54c1be34de8399adcc428184688cd261036555e /x11/9term
parent5511d1a6afb8a56800bb63fcaf0daf8f1e387e8a (diff)
downloadFreeBSD-ports-140f0ac79ef1dcd2a1ad89725f24e695a88a675e.zip
FreeBSD-ports-140f0ac79ef1dcd2a1ad89725f24e695a88a675e.tar.gz
Fix ELF build.
Diffstat (limited to 'x11/9term')
-rw-r--r--x11/9term/files/patch-ad67
1 files changed, 67 insertions, 0 deletions
diff --git a/x11/9term/files/patch-ad b/x11/9term/files/patch-ad
new file mode 100644
index 0000000..fdcefb4
--- /dev/null
+++ b/x11/9term/files/patch-ad
@@ -0,0 +1,67 @@
+--- 9term/Makefile.orig Sun Mar 13 22:50:54 1994
++++ 9term/Makefile Sun Sep 27 22:36:53 1998
+@@ -11,27 +11,31 @@
+ # 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=../../../sam/work
++
++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)/include -I/usr/X11R6/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 $(SAMPATH)/libframe/libframe.a $(SAMPATH)/libXg/libXg.a
++XLIBS= -L/usr/X11R6/lib -lXt -lX11
++.if $(PORTOBJFORMAT) == "elf"
++XLIBS+=-Wl,-rpath,$(X11BASE)/lib
++.endif
+ 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 +43,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
OpenPOWER on IntegriCloud