diff options
author | Clive Lin <clive@FreeBSD.org> | 2001-06-17 07:35:43 +0000 |
---|---|---|
committer | Clive Lin <clive@FreeBSD.org> | 2001-06-17 07:35:43 +0000 |
commit | 25f2f34dec2ef508a92599e368062b3d7960480b (patch) | |
tree | 063be941db31d37b30eb4f152c32456c2e6a70f0 /chinese/telnet | |
parent | 1615fb90679f3016cc4e05225e9c3332c3ac4a75 (diff) | |
download | ports-25f2f34dec2ef508a92599e368062b3d7960480b.tar.gz ports-25f2f34dec2ef508a92599e368062b3d7960480b.zip |
Notes
Diffstat (limited to 'chinese/telnet')
-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> |