diff options
author | uebayasi <uebayasi> | 2002-03-30 06:03:39 +0000 |
---|---|---|
committer | uebayasi <uebayasi> | 2002-03-30 06:03:39 +0000 |
commit | bb1cb8c3940702d012ea54abfc7396f8736f3245 (patch) | |
tree | 74fcdb404e36b4176ed3031801809fe8752fcb50 /converters/cn2jp/patches | |
parent | 8c523fb54c2fdffc4c44c7a40653b6c456570697 (diff) | |
download | pkgsrc-bb1cb8c3940702d012ea54abfc7396f8736f3245.tar.gz |
Initial import of cn2jp-1.4b, library for code translation between Chinese
and Japanese including Chinese {GB,Big5,HZ} and Japanese
{EUC-Jis,Shift-Jis,Jis}.
Diffstat (limited to 'converters/cn2jp/patches')
-rw-r--r-- | converters/cn2jp/patches/patch-aa | 85 | ||||
-rw-r--r-- | converters/cn2jp/patches/patch-ab | 41 |
2 files changed, 126 insertions, 0 deletions
diff --git a/converters/cn2jp/patches/patch-aa b/converters/cn2jp/patches/patch-aa new file mode 100644 index 00000000000..2381db352ba --- /dev/null +++ b/converters/cn2jp/patches/patch-aa @@ -0,0 +1,85 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/03/30 06:03:39 uebayasi Exp $ + +--- Makefile.orig Tue Feb 27 22:35:44 1996 ++++ Makefile +@@ -1,7 +1,5 @@ +-INCLUDE= + +-CC=cc +-CFLAGS= -g -I../lib -I. -L../lib -L. ++CFLAGS+= -I./lib + + SRC = README Makefile */*.c */*.h */*.tbl */Makefile */README + OBJS = big2jis/b2j-util.o big2jis/b2j_table.o \ +@@ -12,37 +10,43 @@ + jis2gb/j2g-util.o jis2gb/j2g_table.o \ + lib/lang-util.o lib/cn-util.o \ + lib/py-tbl.o lib/uzpj-tbl.o lib/uzpj-util.o \ +- hz2gb.o gb2hz.o SINO.o jp-util2.o ++ lib/hz2gb.o lib/gb2hz.o lib/SINO.o lib/jp-util.o + +-all: makeall libcn2jp.a ++PROG = big2jis/b2j jis2big/j2b \ ++ big2gb/b2g gb2big/g2b \ ++ gb2jis/g2j jis2gb/j2g ++ ++LIB = libcn2jp.a ++ ++install: ++ $(LIBTOOL) --mode=install $(BSD_INSTALL_DATA) $(LIB:.a=.la) $(PREFIX)/lib ++ for i in $(PROG);do \ ++ $(LIBTOOL) --mode=install $(BSD_INSTALL_PROGRAM) $$i $(PREFIX)/bin; \ ++ done ++ ++all: clean mktable $(LIB) makeall ++ ++mktable: ++ cd table;make ++ ln -s table/mktable mktable ++ ln -s table/mktbl2c mktbl2c ++ cd big2jis;../mktable big2jis.tbl;../mktbl2c big2jis.t b2j > b2j_table.c ++ cd jis2big;../mktable jis2big.tbl;../mktbl2c jis2big.t j2b > j2b_table.c ++ cd big2gb;../mktable big2gb.tbl;../mktbl2c big2gb.t b2g > b2g_table.c ++ cd gb2big;../mktable gb2big.tbl;../mktbl2c gb2big.t g2b > g2b_table.c ++ cd gb2jis;../mktable gb2jis.tbl;../mktbl2c gb2jis.t g2j > g2j_table.c ++ cd jis2gb;../mktable jis2gb.tbl;../mktbl2c jis2gb.t j2g > j2g_table.c ++ ++makeall: big2jis/b2j.o jis2big/j2b.o big2gb/b2g.o gb2big/g2b.o gb2jis/g2j.o jis2gb/j2g.o ++ for i in $(PROG);do \ ++ $(LIBTOOL) --mode=link $(CC) -o $$i $$i.lo $(LIB:.a=.la); \ ++ done + ++$(LIB): $(OBJS) ++ $(LIBTOOL) --mode=link $(CC) -o $(LIB:.a=.la) $(OBJS:.o=.lo) -rpath $(PREFIX)/lib + +-makeall: +- cd lib; make; cd .. +- cd big2jis; make; cd .. +- cd jis2big; make; cd .. +- cd big2gb; make; cd .. +- cd gb2big; make; cd .. +- cd gb2jis; make; cd .. +- cd jis2gb; make; cd .. +- +-libcn2jp.a: $(OBJS) +- rm -f libcn2jp.a +- ar r libcn2jp.a $(OBJS) +- ranlib libcn2jp.a +- cp libcn2jp.a ../../../lib/libcn2jp.a +- +-gb2hz.o: lib/gb2hz.c +- $(CC) -c lib/gb2hz.c +- +-hz2gb.o: lib/hz2gb.c +- $(CC) -c lib/hz2gb.c +- +-SINO.o: lib/SINO.c +- $(CC) -c lib/SINO.c +- +-jp-util2.o: lib/jp-util2.c +- $(CC) -c lib/jp-util2.c ++%.o: %.c ++ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c -o $@ $< + + tar: + echo "Produce cn2jp`date '+%m%d'`.tar..." diff --git a/converters/cn2jp/patches/patch-ab b/converters/cn2jp/patches/patch-ab new file mode 100644 index 00000000000..7d792507ea4 --- /dev/null +++ b/converters/cn2jp/patches/patch-ab @@ -0,0 +1,41 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/03/30 06:03:39 uebayasi Exp $ + +--- table/Makefile.orig Thu Mar 28 23:47:16 2002 ++++ table/Makefile +@@ -1,7 +1,4 @@ +-INCLUDE= + +-CC=cc +-CFLAGS= -g -I../include -I. -L../lib -L. + + SRC = big5.c gb.c jis.c mktable.c mktbl2c.c + OBJS = +@@ -11,25 +8,21 @@ + + mktable: mktable.o + $(CC) $(CFLAGS) -o mktable mktable.o +- rm -f /home/sagittar/seke/bin/mktable +- ln mktable /home/sagittar/seke/bin/mktable + + mktbl2c: mktbl2c.o + $(CC) $(CFLAGS) -o mktbl2c mktbl2c.o +- rm -f /home/sagittar/seke/bin/mktbl2c +- ln mktbl2c /home/sagittar/seke/bin/mktbl2c + + big5.tbl: big5.o + $(CC) $(CFLAGS) -o big5 big5.o +- big5 > big5.tbl ++ ./big5 > big5.tbl + + gb.tbl: gb.o + $(CC) $(CFLAGS) -o gb gb.o +- gb > gb.tbl ++ ./gb > gb.tbl + + jis.tbl: jis.o + $(CC) $(CFLAGS) -o jis jis.o +- jis > jis.tbl ++ ./jis > jis.tbl + + tar: + echo "Produce table`date '+%m%d'`.tar..." |