mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Add shared library
PR: 24140 Submitted by: MAINTAINER
This commit is contained in:
parent
36e5787fbd
commit
75d85d6a37
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=36918
@ -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>
|
||||
|
@ -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
|
||||
|
@ -1 +1 @@
|
||||
cn2jp -- library for code translation between Chinese and Japanese
|
||||
A library for code translation between Chinese and Japanese
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user