diff options
author | clive <clive@FreeBSD.org> | 2001-06-17 15:35:43 +0800 |
---|---|---|
committer | clive <clive@FreeBSD.org> | 2001-06-17 15:35:43 +0800 |
commit | 64da946de40d31c1d85dff76997a042f3b5abc97 (patch) | |
tree | a7a7be968caff8049b5d257f996543d3c84c4b21 | |
parent | 7de017deaf141e456fafe15b6cda536706e5f396 (diff) | |
download | freebsd-ports-gnome-64da946de40d31c1d85dff76997a042f3b5abc97.tar.gz freebsd-ports-gnome-64da946de40d31c1d85dff76997a042f3b5abc97.tar.zst freebsd-ports-gnome-64da946de40d31c1d85dff76997a042f3b5abc97.zip |
Unbreak this port with some modification against original PR.
PR: ports/28175
Submitted by: MAINTAINER
Approved by: MAINTAINER
-rw-r--r-- | chinese/telnet/Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/chinese/telnet/Makefile b/chinese/telnet/Makefile index 556956027c99..19defbe1c9be 100644 --- a/chinese/telnet/Makefile +++ b/chinese/telnet/Makefile @@ -15,20 +15,35 @@ MAINTAINER= leeym@cae.ce.ntu.edu.tw SRCDIR= /usr/src/usr.bin/telnet + +.include <bsd.port.pre.mk> do-extract: .if exists (${SRCDIR}) @${MKDIR} ${WRKDIR} @${CP} -R ${SRCDIR} ${WRKSRC} +.if ${OSVERSION} > 500000 + @${MKDIR} ${WRKSRC}/lib + @${CP} -R /usr/src/lib/libtelnet ${WRKSRC}/lib +.endif .else BROKEN= "You need to build this port with ${SRCDIR}" .endif MAN1= zh-telnet.1 +.if ${OSVERSION} > 500000 +pre-patch: + @${PERL} -pi -e 's,/../..,,' ${WRKSRC}/Makefile + +pre-build: + @cd ${WRKSRC}/lib/libtelnet; \ + ${MAKE} +.endif + do-install: @cd ${WRKSRC}; \ ${CP} telnet.1 ${MAN1}; \ ${INSTALL_PROGRAM} ${WRKSRC}/telnet ${PREFIX}/bin/zh-telnet; \ ${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1 -.include <bsd.port.mk> +.include <bsd.port.post.mk> |