aboutsummaryrefslogtreecommitdiff
path: root/chinese/hanzim/Makefile
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2003-06-26 00:55:57 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2003-06-26 00:55:57 +0000
commit496fa99d9e189852d152b5a54231e8fd4349bd86 (patch)
tree6821e69b56c0ba78c17dbd70139fbff92f8f5453 /chinese/hanzim/Makefile
parent4df6a86b226433d590ce22e31e7edb41761d5b49 (diff)
downloadports-496fa99d9e189852d152b5a54231e8fd4349bd86.tar.gz
ports-496fa99d9e189852d152b5a54231e8fd4349bd86.zip
Notes
Diffstat (limited to 'chinese/hanzim/Makefile')
-rw-r--r--chinese/hanzim/Makefile19
1 files changed, 15 insertions, 4 deletions
diff --git a/chinese/hanzim/Makefile b/chinese/hanzim/Makefile
index 76e7f4f744cc..adc8a1ccadd5 100644
--- a/chinese/hanzim/Makefile
+++ b/chinese/hanzim/Makefile
@@ -10,8 +10,8 @@ PORTNAME= hanzim
PORTVERSION= 1.3
CATEGORIES= chinese tk83
MASTER_SITES= ftp://kommos.ucsd.edu/pub/arobert/Chinese/%SUBDIR%/
-EXTRACT_SUFX= .tgz
MASTER_SITE_SUBDIR= . Old
+EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= A Chinese character learning-aid program
@@ -20,12 +20,23 @@ BUILD_DEPENDS+= wish8.3:${PORTSDIR}/x11-toolkits/tk83
RUN_DEPENDS+= wish8.3:${PORTSDIR}/x11-toolkits/tk83
WRKSRC= ${WRKDIR}/Hanzim
-ALL_TARGET= # empty
+ALL_TARGET= ${PORTNAME}
USE_REINPLACE= yes
-MAN1= hanzim.1
+MAN1= hanzim.1
post-patch:
- ${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/hanzim.c
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/hanzim.c
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/hanzim ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/hanzim.man ${PREFIX}/man/man1/hanzim.1
+ @${MKDIR} ${PREFIX}/lib/hanzim
+ ${INSTALL_DATA} ${WRKSRC}/Data/* ${PREFIX}/lib/hanzim
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/hanzim.doc ${DOCSDIR}
+.endif
+ ${PREFIX}/bin/hanzim -port-install
.include <bsd.port.mk>