fa74598719
was a stub, provide a real one. While here, pet portlint. Approved by: portmgr (tier-2 blanket) Reported by: swills
58 lines
1.7 KiB
Makefile
58 lines
1.7 KiB
Makefile
# Created by: Ching-Hong Wu <woju@freebsd.ntu.edu.tw>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= telnet
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= chinese
|
|
MASTER_SITES= # none
|
|
DISTFILES= # none
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= 8bit compatible telnet client for Chinese input
|
|
|
|
PLIST_FILES= bin/zh-telnet man/man1/zh-telnet.1.gz
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if exists (${SRC_BASE}/contrib/telnet/telnet)
|
|
SRCDIR= ${SRC_BASE}/contrib/telnet/telnet
|
|
CONTRIB_TELNET= yes
|
|
.elif exists (${SRC_BASE}/usr.bin/telnet)
|
|
SRCDIR= ${SRC_BASE}/usr.bin/telnet
|
|
.else
|
|
IGNORE= need to build this port with the source code of telnet
|
|
.endif
|
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1100000
|
|
BROKEN= does not build: libtelnet/Makefile: Could not find src.opts.mk
|
|
.endif
|
|
|
|
BROKEN_DragonFly= does not build
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKDIR}
|
|
@${CP} -R ${SRCDIR} ${WRKSRC}
|
|
.if defined(CONTRIB_TELNET)
|
|
@${CP} -R ${SRCDIR}/../libtelnet ${SRCDIR}/../../../usr.bin/telnet/Makefile ${WRKSRC}
|
|
@${CP} ${SRCDIR}/../arpa/telnet.h ${SRCDIR}/../../../lib/libtelnet/Makefile ${WRKSRC}/libtelnet
|
|
.else
|
|
@${CP} -R ${SRCDIR}/../../lib/libtelnet ${WRKSRC}
|
|
.endif
|
|
|
|
pre-patch:
|
|
.if defined(CONTRIB_TELNET)
|
|
@${REINPLACE_CMD} -e 's,/../../contrib/telnet,,g' ${WRKSRC}/Makefile ${WRKSRC}/libtelnet/Makefile
|
|
@${REINPLACE_CMD} -e 's,${TELNETDIR}/telnet,${TELNETDIR},g' ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e 's,/arpa,,g' ${WRKSRC}/libtelnet/Makefile
|
|
.endif
|
|
@${REINPLACE_CMD} -e 's,/../../lib,,g' ${WRKSRC}/Makefile
|
|
|
|
pre-build:
|
|
@cd ${WRKSRC}/libtelnet && ${MAKE}
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/telnet ${STAGEDIR}${PREFIX}/bin/zh-telnet
|
|
@${INSTALL_MAN} ${WRKSRC}/telnet.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/zh-telnet.1
|
|
|
|
.include <bsd.port.post.mk>
|