mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
6188b02819
2. stop trying when /usr/src/usr.bin/telnet doesn't exists Submitted by: 1. ijliao
43 lines
903 B
Makefile
43 lines
903 B
Makefile
# New ports collection makefile for: telnet8
|
|
# Date created: 13 Feb 1999
|
|
# Whom: Ching-Hong Wu <woju@freebsd.ntu.edu.tw>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= telnet
|
|
PORTVERSION= 1.0
|
|
CATEGORIES= chinese
|
|
MASTER_SITES= # none
|
|
DISTFILES= # none
|
|
|
|
MAINTAINER= leeym@FreeBSD.org
|
|
COMMENT= 8bit compatible telnet client for Chinese input
|
|
|
|
SRCDIR= /usr/src/usr.bin/telnet
|
|
USE_REINPLACE= yes
|
|
|
|
MAN1= zh-telnet.1
|
|
|
|
do-extract:
|
|
.if exists (${SRCDIR})
|
|
@${MKDIR} ${WRKDIR}
|
|
@${CP} -R ${SRCDIR} ${WRKSRC}
|
|
@${MKDIR} ${WRKSRC}/lib
|
|
@${CP} -R /usr/src/lib/libtelnet ${WRKSRC}/lib
|
|
.else
|
|
IGNORE= "You need to build this port with ${SRCDIR}"
|
|
.endif
|
|
|
|
pre-patch:
|
|
@${REINPLACE_CMD} -e 's,/../..,,g' ${WRKSRC}/Makefile
|
|
|
|
pre-build:
|
|
@cd ${WRKSRC}/lib/libtelnet && ${MAKE}
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/telnet ${PREFIX}/bin/zh-telnet
|
|
@${INSTALL_MAN} ${WRKSRC}/telnet.1 ${PREFIX}/man/man1/${MAN1}
|
|
|
|
.include <bsd.port.mk>
|