diff options
Diffstat (limited to 'converters/cn2jp')
-rw-r--r-- | converters/cn2jp/Makefile | 5 | ||||
-rw-r--r-- | converters/cn2jp/files/patch-aa | 19 | ||||
-rw-r--r-- | converters/cn2jp/pkg-comment | 2 | ||||
-rw-r--r-- | converters/cn2jp/pkg-plist | 2 |
4 files changed, 22 insertions, 6 deletions
diff --git a/converters/cn2jp/Makefile b/converters/cn2jp/Makefile index aef07b5614eb..fc2ab99fe88d 100644 --- a/converters/cn2jp/Makefile +++ b/converters/cn2jp/Makefile @@ -7,6 +7,7 @@ PORTNAME= cn2jp PORTVERSION= 1.4b +PORTREVISION= 1 CATEGORIES= converters chinese japanese MASTER_SITES= http://w3.sys.es.osaka-u.ac.jp/~seke/software/cn2jp/ DISTNAME= ${PORTNAME}${PORTVERSION} @@ -19,11 +20,13 @@ WRKSRC= ${WRKDIR}/${PORTNAME} TEST_PROGRAM= big2gb/b2g big2jis/b2j gb2big/g2b gb2jis/g2j jis2big/j2b jis2gb/j2g do-install: - @${INSTALL_DATA} ${WRKSRC}/libcn2jp.a ${PREFIX}/lib .for test_program in ${TEST_PROGRAM} @${INSTALL_PROGRAM} ${WRKSRC}/${test_program} ${PREFIX}/bin .endfor @${MKDIR} ${PREFIX}/share/cn2jp @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/cn2jp/README + @${INSTALL_DATA} ${WRKSRC}/libcn2jp.a ${PREFIX}/lib + @${INSTALL_DATA} ${WRKSRC}/libcn2jp.so ${PREFIX}/lib/libcn2jp.so.1 + @cd ${PREFIX}/lib/; ${LN} -sf libcn2jp.so.1 libcn2jp.so .include <bsd.port.mk> diff --git a/converters/cn2jp/files/patch-aa b/converters/cn2jp/files/patch-aa index d645949adeb2..44573c9eebc6 100644 --- a/converters/cn2jp/files/patch-aa +++ b/converters/cn2jp/files/patch-aa @@ -108,8 +108,13 @@ tar: echo "Produce table`date '+%m%d'`.tar..." --- Makefile.orig Tue Feb 27 22:35:44 1996 -+++ Makefile Sun Dec 10 10:43:11 2000 -@@ -18,6 +18,7 @@ ++++ Makefile Mon Jan 8 09:59:11 2001 +@@ -14,10 +14,11 @@ + lib/py-tbl.o lib/uzpj-tbl.o lib/uzpj-util.o \ + hz2gb.o gb2hz.o SINO.o jp-util2.o + +-all: makeall libcn2jp.a ++all: makeall libcn2jp.a libcn2jp.so makeall: @@ -117,11 +122,17 @@ cd lib; make; cd .. cd big2jis; make; cd .. cd jis2big; make; cd .. -@@ -30,7 +31,6 @@ +@@ -28,9 +29,11 @@ + + libcn2jp.a: $(OBJS) rm -f libcn2jp.a - ar r libcn2jp.a $(OBJS) +- ar r libcn2jp.a $(OBJS) ++ ar cru libcn2jp.a $(OBJS) ranlib libcn2jp.a - cp libcn2jp.a ../../../lib/libcn2jp.a ++ ++libcn2jp.so: $(OBJS) ++ ld -o libcn2jp.so $(OBJS) -shared -soname libcn2jp.so gb2hz.o: lib/gb2hz.c $(CC) -c lib/gb2hz.c diff --git a/converters/cn2jp/pkg-comment b/converters/cn2jp/pkg-comment index 392e3ca546f6..d87f939a6fbd 100644 --- a/converters/cn2jp/pkg-comment +++ b/converters/cn2jp/pkg-comment @@ -1 +1 @@ -cn2jp -- library for code translation between Chinese and Japanese +A library for code translation between Chinese and Japanese diff --git a/converters/cn2jp/pkg-plist b/converters/cn2jp/pkg-plist index 5cf37d1497c7..fe57be4abed1 100644 --- a/converters/cn2jp/pkg-plist +++ b/converters/cn2jp/pkg-plist @@ -5,5 +5,7 @@ bin/g2j bin/j2b bin/j2g lib/libcn2jp.a +lib/libcn2jp.so +lib/libcn2jp.so.1 share/cn2jp/README @dirrm share/cn2jp |