summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-03-28 10:08:08 +0000
committerru <ru@FreeBSD.org>2001-03-28 10:08:08 +0000
commite8420dc7dd70390157653b1bbab5c032c37ae54b (patch)
tree0ffcba44f02a9a22267cc4eaf63d04b0e77187c7 /net
parent8f1ae141acf0d59c8072a6a1498523c1ee35a0f8 (diff)
downloadFreeBSD-ports-e8420dc7dd70390157653b1bbab5c032c37ae54b.zip
FreeBSD-ports-e8420dc7dd70390157653b1bbab5c032c37ae54b.tar.gz
Do not depend on /usr/lib/libtelnet.a.
Reviewed by: markm
Diffstat (limited to 'net')
-rw-r--r--net/tn3270/Makefile11
-rw-r--r--net/tn3270/files/patch-aa16
-rw-r--r--net/tn3270/files/patch-ab10
3 files changed, 33 insertions, 4 deletions
diff --git a/net/tn3270/Makefile b/net/tn3270/Makefile
index 5e3d01d..96d8b77 100644
--- a/net/tn3270/Makefile
+++ b/net/tn3270/Makefile
@@ -19,6 +19,17 @@ MAN1= tn3270.1 mset.1
MAN5= map3270.5
MANCOMPRESSED= maybe
+LIBTELNETDIR?= /usr/src/lib/libtelnet
+
+post-extract:
+ @if [ ! -d ${LIBTELNETDIR} ]; then \
+ ${ECHO} "You need libtelnet sources in"; \
+ ${ECHO} "${LIBTELNETDIR}"; \
+ ${ECHO} "to build this port."; \
+ exit 1; \
+ fi
+ ${CP} -rp ${LIBTELNETDIR} ${WRKSRC}
+
do-configure:
${ECHO} "BINDIR= ${PREFIX}/bin" > ${WRKDIR}/Makefile.inc
${ECHO} "MANDIR= ${PREFIX}/man/man" >> ${WRKDIR}/Makefile.inc
diff --git a/net/tn3270/files/patch-aa b/net/tn3270/files/patch-aa
index 0a39978..ea87d58 100644
--- a/net/tn3270/files/patch-aa
+++ b/net/tn3270/files/patch-aa
@@ -1,7 +1,15 @@
---- tn3270/Makefile.ORIG Mon Aug 30 20:49:39 1999
-+++ tn3270/Makefile Mon Aug 30 21:08:05 1999
-@@ -6,7 +6,7 @@
- LDADD= -lcurses -ltermcap -ltelnet -lcrypt
+--- tn3270/Makefile Mon Aug 30 22:22:49 1999
++++ tn3270/Makefile Tue Mar 27 12:49:06 2001
+@@ -1,12 +1,14 @@
+ # @(#)Makefile 8.1 (Berkeley) 6/6/93
+
++LIBTELNET=${.CURDIR}/../libtelnet/libtelnet.a
++
+ PROG= tn3270
+ CFLAGS+=-I${.CURDIR} -I.
+ DPADD= ${LIBCURSES} ${LIBTERMCAP} ${LIBTELNET} ${LIBCRYPT}
+-LDADD= -lcurses -ltermcap -ltelnet -lcrypt
++LDADD= -lcurses -ltermcap ${LIBTELNET} -lcrypt
CLEANFILES+= asc_disp.OUT asc_disp.out disp_asc.OUT disp_asc.out TMPfunc.out
.PATH: ${.CURDIR}/../api ${.CURDIR}/../ascii ${.CURDIR}/../ctlr
-.PATH: ${.CURDIR}/../general ${.CURDIR}/../sys_curses ${.CURDIR}/../../telnet
diff --git a/net/tn3270/files/patch-ab b/net/tn3270/files/patch-ab
new file mode 100644
index 0000000..71767b0
--- /dev/null
+++ b/net/tn3270/files/patch-ab
@@ -0,0 +1,10 @@
+--- Makefile Sun Sep 13 16:20:23 1998
++++ Makefile Tue Mar 27 12:51:31 2001
+@@ -10,6 +10,7 @@
+ #
+ # XXX this doesn't fix the problem for `make depend' either.
+ SUBDIR= tools
++SUBDIR+=libtelnet
+ .endif
+
+ SUBDIR+=tn3270 mset
OpenPOWER on IntegriCloud