aboutsummaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
Diffstat (limited to 'chinese')
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/hanzim/Makefile22
-rw-r--r--chinese/hanzim/distinfo1
-rw-r--r--chinese/hanzim/files/patch-Makefile54
-rw-r--r--chinese/hanzim/files/patch-hanzim.c18
-rw-r--r--chinese/hanzim/pkg-comment1
-rw-r--r--chinese/hanzim/pkg-descr8
-rw-r--r--chinese/hanzim/pkg-plist14
8 files changed, 119 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index deccb9f6712d..054d3bd6f6e5 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -32,6 +32,7 @@
SUBDIR += ghostscript6
SUBDIR += gnumeric
SUBDIR += gugod-clean
+ SUBDIR += hanzim
SUBDIR += hc
SUBDIR += hztty
SUBDIR += irssi
diff --git a/chinese/hanzim/Makefile b/chinese/hanzim/Makefile
new file mode 100644
index 000000000000..eabfda1bb67f
--- /dev/null
+++ b/chinese/hanzim/Makefile
@@ -0,0 +1,22 @@
+# ex:ts=8
+# New ports collection makefile for: hanzim
+# Date created: Sep 23, 2001
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= hanzim
+PORTVERSION= 1.2
+CATEGORIES= chinese tk83
+MASTER_SITES= ftp://kommos.ucsd.edu/pub/arobert/Chinese/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ports@FreeBSD.org
+
+WRKSRC= ${WRKDIR}/Hanzim
+ALL_TARGET= # empty
+
+MAN1= hanzim.1
+
+.include <bsd.port.mk>
diff --git a/chinese/hanzim/distinfo b/chinese/hanzim/distinfo
new file mode 100644
index 000000000000..8d48a60cba4a
--- /dev/null
+++ b/chinese/hanzim/distinfo
@@ -0,0 +1 @@
+MD5 (hanzim-1.2.tgz) = c048d1385a906f9e3443adf80df0f967
diff --git a/chinese/hanzim/files/patch-Makefile b/chinese/hanzim/files/patch-Makefile
new file mode 100644
index 000000000000..33314557841d
--- /dev/null
+++ b/chinese/hanzim/files/patch-Makefile
@@ -0,0 +1,54 @@
+--- Makefile.orig Tue Apr 3 13:41:51 2001
++++ Makefile Sat Apr 14 21:38:55 2001
+@@ -6,11 +6,11 @@
+
+ # set INSTALLROOT to the installation base; it is used to set the
+ # other directory variables below
+-INSTALLROOT = /usr/local
++INSTALLROOT = ${PREFIX}
+ #INSTALLROOT = /usr
+
+ # set LIBDIR to where you will keep the datafiles, fontspecs, and "hanwin.tcl"
+-LIBDIR = $(INSTALLROOT)/lib/Hanzim
++LIBDIR = $(INSTALLROOT)/lib/hanzim
+ #LIBDIR = /usr/local/lib/Hanzim
+ # for debugging
+ #LIBDIR = ./Data
+@@ -24,7 +24,7 @@
+ #MANDIR = /usr/local/man
+
+ # set DOCDIR to where you want the documentation files to reside
+-DOCDIR = $(INSTALLROOT)/doc
++DOCDIR = $(INSTALLROOT)/share/doc/hanzim
+ #DOCDIR = $(INSTALLROOT)/share/doc
+ #DOCDIR = /usr/local/share/doc
+ #DOCDIR = /usr/share/doc
+@@ -41,13 +41,13 @@
+ #OS=WINDOWS
+
+ # location of Tcl and Tk libraries
+-LIBTCLDIR = -L /usr/lib
++LIBTCLDIR = -L${LOCALBASE}/lib
+
+ # location of x library
+-LIBXDIR = -L /usr/X11/lib
++LIBXDIR = -L${X11BASE}/lib
+
+ # you might need to change "libtcl" and "libtk" to "libtcl8.x" and "libtk8.x"
+-LIBS = $(LIBXDIR) $(LIBTCLDIR) -ltk -ltcl -lX11 -lm -ldl
++LIBS = $(LIBXDIR) $(LIBTCLDIR) -ltk83 -ltcl83 -lX11 -lm
+
+ INSTALL = install
+ RM = rm -f
+@@ -55,9 +55,8 @@
+ # End of configuration.
+ ###############################################################################
+
+-CC = cc
+-DEFINES = -D$(OS) -DLIBDIR=\"$(LIBDIR)\"
+-CFLAGS = -O2 $(DEFINES)
++DEFINES = -D$(OS) -DLIBDIR=\"$(LIBDIR)\" -I${LOCALBASE}/include/tk8.3 -I${LOCALBASE}/include/tcl8.3 -I${X11BASE}/include
++CFLAGS += $(DEFINES)
+ #CFLAGS = -O2 -Wall -pedantic -ansi $(DEFINES)
+ LFLAGS = $(LIBS) -s
+
diff --git a/chinese/hanzim/files/patch-hanzim.c b/chinese/hanzim/files/patch-hanzim.c
new file mode 100644
index 000000000000..33d60180bf1e
--- /dev/null
+++ b/chinese/hanzim/files/patch-hanzim.c
@@ -0,0 +1,18 @@
+--- hanzim.c.orig Sat Apr 14 21:23:42 2001
++++ hanzim.c Sat Apr 14 21:29:54 2001
+@@ -440,10 +440,14 @@
+ struct _timeb tp;
+ _ftime(&tp);
+ #else
++/*
+ struct timeb tp;
+ ftime(&tp);
++*/
++ time_t t;
++ time(&t);
+ #endif
+- srand(tp.millitm);
++ srand(t);
+
+ printf("\n\nWelcome to Hanzi Master, where YOU will master the hanzi.\n\n");
+ printf("Please use \"Ctrl-h\" or \"Alt-h\" for help.\n");
diff --git a/chinese/hanzim/pkg-comment b/chinese/hanzim/pkg-comment
new file mode 100644
index 000000000000..f51a0beeeb79
--- /dev/null
+++ b/chinese/hanzim/pkg-comment
@@ -0,0 +1 @@
+A Chinese character learning-aid program
diff --git a/chinese/hanzim/pkg-descr b/chinese/hanzim/pkg-descr
new file mode 100644
index 000000000000..a59317dda3c0
--- /dev/null
+++ b/chinese/hanzim/pkg-descr
@@ -0,0 +1,8 @@
+Hanzi Master ("hanzim") is a Chinese character learning-aid program.
+
+It is designed to help you memorize characters by leading you to internalize
+their various systematicities. It displays lists of characters with the same
+radicals, same remaining parts, and same pronunciations, along with pinyin
+pronunciations and lists of compounds.
+
+WWW: http://zakros.ucsd.edu/~arobert/hanzim.html
diff --git a/chinese/hanzim/pkg-plist b/chinese/hanzim/pkg-plist
new file mode 100644
index 000000000000..879b2b21fb8c
--- /dev/null
+++ b/chinese/hanzim/pkg-plist
@@ -0,0 +1,14 @@
+bin/hanzim
+lib/hanzim/bushou.gb
+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
+@dirrm lib/hanzim
+@dirrm share/doc/hanzim