aboutsummaryrefslogtreecommitdiff
path: root/chinese/hanzim
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
parent4df6a86b226433d590ce22e31e7edb41761d5b49 (diff)
downloadports-496fa99d9e189852d152b5a54231e8fd4349bd86.tar.gz
ports-496fa99d9e189852d152b5a54231e8fd4349bd86.zip
Notes
Diffstat (limited to 'chinese/hanzim')
-rw-r--r--chinese/hanzim/Makefile19
-rw-r--r--chinese/hanzim/files/patch-Makefile9
-rw-r--r--chinese/hanzim/pkg-plist5
3 files changed, 18 insertions, 15 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>
diff --git a/chinese/hanzim/files/patch-Makefile b/chinese/hanzim/files/patch-Makefile
index 15a547e8933d..b66c91a86d2e 100644
--- a/chinese/hanzim/files/patch-Makefile
+++ b/chinese/hanzim/files/patch-Makefile
@@ -52,12 +52,3 @@
#CFLAGS = -O2 -Wall -pedantic -ansi $(DEFINES)
LFLAGS = $(LIBS) -s
-@@ -96,7 +95,7 @@
- $(INSTALL) -m 0644 hanwin.tcl fonts.unix fonts.windows \
- zidianf.gb zidianfl.b5 bushou.gb \
- cidianf.gb sanzicidianf.gb parts.gb $(LIBDIR)
-- $(BINDIR)/hanzim -buildDB
-+ $(BINDIR)/hanzim -port-install
-
- uninstall :
- $(RM) $(BINDIR)/hanzim
diff --git a/chinese/hanzim/pkg-plist b/chinese/hanzim/pkg-plist
index 33093716059f..ccf861e4e9d4 100644
--- a/chinese/hanzim/pkg-plist
+++ b/chinese/hanzim/pkg-plist
@@ -4,10 +4,11 @@ lib/hanzim/cidianf.gb
lib/hanzim/fonts.unix
lib/hanzim/fonts.windows
lib/hanzim/hanwin.tcl
+lib/hanzim/hcompound.dat
lib/hanzim/parts.gb
lib/hanzim/sanzicidianf.gb
lib/hanzim/zidianf.gb
lib/hanzim/zidianfl.b5
-share/doc/hanzim/hanzim.doc
+%%PORTDOCS%%%%DOCSDIR%%/hanzim.doc
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm lib/hanzim
-@dirrm share/doc/hanzim