diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2001-03-28 10:08:08 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2001-03-28 10:08:08 +0000 |
commit | 5463256e359187a0a503be2877c10340741ec07d (patch) | |
tree | 8ca92b02d4d9bf3d2bf2ce5431f957b0a5b6550f /net/tn3270 | |
parent | Place USE_BZIP2 before .include <bsd.port.pre.mk> (diff) |
Do not depend on /usr/lib/libtelnet.a.
Reviewed by: markm
Notes
Notes:
svn path=/head/; revision=40471
Diffstat (limited to 'net/tn3270')
-rw-r--r-- | net/tn3270/Makefile | 11 | ||||
-rw-r--r-- | net/tn3270/files/patch-aa | 16 | ||||
-rw-r--r-- | net/tn3270/files/patch-ab | 10 |
3 files changed, 33 insertions, 4 deletions
diff --git a/net/tn3270/Makefile b/net/tn3270/Makefile index 5e3d01d9ba14..96d8b779436d 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 0a39978383a1..ea87d58d6fa4 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 000000000000..71767b0dfd13 --- /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 |