aboutsummaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2004-01-26 04:08:36 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2004-01-26 04:08:36 +0000
commit76a7e4739b54c38ec936d4f62126f813aa30658d (patch)
treee47e6b6e758cfd868eec65b0c3dd7857fde8e89a /chinese
parent3af09a9913ed3df429391f744ba6ca73bb96d1ab (diff)
downloadports-76a7e4739b54c38ec936d4f62126f813aa30658d.tar.gz
ports-76a7e4739b54c38ec936d4f62126f813aa30658d.zip
Notes
Diffstat (limited to 'chinese')
-rw-r--r--chinese/telnet/Makefile16
-rw-r--r--chinese/telnet/pkg-plist2
2 files changed, 9 insertions, 9 deletions
diff --git a/chinese/telnet/Makefile b/chinese/telnet/Makefile
index 8be755432892..872619120159 100644
--- a/chinese/telnet/Makefile
+++ b/chinese/telnet/Makefile
@@ -18,12 +18,16 @@ COMMENT= 8bit compatible telnet client for Chinese input
USE_REINPLACE= yes
MAN1= zh-telnet.1
+PLIST_FILES= bin/zh-telnet
-.if exists (/usr/src/contrib/telnet/telnet)
-SRCDIR= /usr/src/contrib/telnet/telnet
+.include <bsd.port.pre.mk>
+
+SRCBASE?= ${PORTSDIR}/../src
+.if exists (${SRCBASE}/contrib/telnet/telnet)
+SRCDIR= ${SRCBASE}/contrib/telnet/telnet
CONTRIB_TELNET= yes
-.elif exists (/usr/src/usr.bin/telnet)
-SRCDIR= /usr/src/usr.bin/telnet
+.elif exists (${SRCBASE}/usr.bin/telnet)
+SRCDIR= ${SRCBASE}/usr.bin/telnet
.else
IGNORE= "You need to build this port with the source code of telnet"
.endif
@@ -32,7 +36,6 @@ do-extract:
@${MKDIR} ${WRKDIR}
@${CP} -R ${SRCDIR} ${WRKSRC}
.if defined(CONTRIB_TELNET)
- @echo CONTRIB_TELNET
@${CP} -R ${SRCDIR}/../libtelnet ${SRCDIR}/../../../usr.bin/telnet/Makefile ${WRKSRC}
@${CP} ${SRCDIR}/../arpa/telnet.h ${SRCDIR}/../../../lib/libtelnet/Makefile ${WRKSRC}/libtelnet
.else
@@ -41,7 +44,6 @@ do-extract:
pre-patch:
.if defined(CONTRIB_TELNET)
- @echo 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
@@ -55,4 +57,4 @@ do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/telnet ${PREFIX}/bin/zh-telnet
@${INSTALL_MAN} ${WRKSRC}/telnet.1 ${PREFIX}/man/man1/${MAN1}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/chinese/telnet/pkg-plist b/chinese/telnet/pkg-plist
deleted file mode 100644
index d8259a31e8df..000000000000
--- a/chinese/telnet/pkg-plist
+++ /dev/null
@@ -1,2 +0,0 @@
-@comment $FreeBSD$
-bin/zh-telnet