Bump japanese/skkinput3 to version 3.0.6_3
[dports.git] / japanese / eb / Makefile
1 # Created by: Motoyuki Kasahara <m-kasahr@sra.co.jp>
2 # $FreeBSD$
3
4 PORTNAME=       eb
5 PORTVERSION=    4.4.3
6 PORTREVISION=   4
7 CATEGORIES=     japanese
8 MASTER_SITES=   ftp://ftp.sra.co.jp/pub/misc/eb/ \
9                 ftp://ftp.sra.co.jp/pub/misc/eb/old/eb-${PORTVERSION:C/^([0-9]+)\.([0-9]+).*/\1.\2/}/
10 DISTFILES=      ${EBFILES} \
11                 ${APPENDIXFILES}
12 EXTRACT_ONLY=   ${EBFILES}
13
14 MAINTAINER=     yasu@utahime.org
15 COMMENT=        C library for accessing EB, EBG, EBXA, and EPWING CD-ROM dictionaries
16
17 LICENSE=        BSD3CLAUSE
18
19 EBFILES=        ${DISTNAME}${EXTRACT_SUFX}
20 APPENDIXFILES=  appendix/cencro-1.0.tar.gz \
21                 appendix/chujiten-2.3.tar.gz \
22                 appendix/chujiten2-2.0.tar.gz \
23                 appendix/chujiten6-2.3.tar.gz \
24                 appendix/colloc-2.0.tar.gz \
25                 appendix/crownfj-2.0.tar.gz \
26                 appendix/crownfj2-1.0.tar.gz \
27                 appendix/crowngj-1.0.tar.gz \
28                 appendix/daihyakka-1.0.tar.gz \
29                 appendix/daijirin-2.0.tar.gz \
30                 appendix/dd75-2.0.tar.gz \
31                 appendix/gendai2000-1.0.tar.gz \
32                 appendix/genius-1.0.tar.gz \
33                 appendix/genius2-1.1.tar.gz \
34                 appendix/global-2.0.tar.gz \
35                 appendix/heritage-2.2.tar.gz \
36                 appendix/hyogen-1.0.tar.gz \
37                 appendix/izumi-2.0.tar.gz \
38                 appendix/jitenban-2.4.tar.gz \
39                 appendix/jitenban97-2.1.tar.gz \
40                 appendix/kanjigen-2.0.tar.gz \
41                 appendix/kanjigen2-2.0.tar.gz \
42                 appendix/kojien-2.3.tar.gz \
43                 appendix/kojien2-2.0.tar.gz \
44                 appendix/kojien4-2.2.tar.gz \
45                 appendix/oxford-2.0.tar.gz \
46                 appendix/plus-2.0.tar.gz \
47                 appendix/readers-2.2.tar.gz \
48                 appendix/readers2-2.0.tar.gz \
49                 appendix/ruigigo-1.0.tar.gz \
50                 appendix/superdic98-1.0.tar.gz
51
52 DIST_SUBDIR=    eb
53
54 PORTDOCS=       eb-01.html eb-02.html eb-03.html eb-04.html eb-05.html eb-06.html \
55                 eb-07.html eb-08.html eb-09.html eb-10.html eb-11.html eb-12.html \
56                 eb-13.html eb-14.html eb.html ebappendix-01.html ebappendix-02.html \
57                 ebappendix-03.html ebappendix-04.html ebappendix.html ebfont-01.html \
58                 ebfont-02.html ebfont-03.html ebfont-04.html ebfont.html \
59                 ebinfo-01.html ebinfo-02.html ebinfo-03.html ebinfo-04.html \
60                 ebinfo-05.html ebinfo.html ebrefile-01.html ebrefile-02.html \
61                 ebrefile-03.html ebrefile.html ebstopcode-01.html ebstopcode-02.html \
62                 ebstopcode-03.html ebstopcode.html ebzip-01.html ebzip-02.html \
63                 ebzip-03.html ebzip-04.html ebzip-05.html ebzip-06.html ebzip-07.html \
64                 ebzip-08.html ebzip-09.html ebzip-10.html ebzip.html
65
66 USES=           autoreconf iconv libtool perl5 tar:bzip2
67 GNU_CONFIGURE=  yes
68 USE_LDCONFIG=   yes
69 CONFIGURE_ARGS= --with-pkgdocdir=${DOCSDIR} \
70                 --with-iconv-includes=${ICONV_PREFIX}/include \
71                 --with-iconv-libraries=${ICONV_PREFIX}/lib
72 CONFIGURE_ENV=  ac_cv_path_PERL=${PERL}
73
74 OPTIONS_DEFINE= DOCS NLS
75 OPTIONS_SUB=    yes
76
77 APPENDIXDIR=    ${DATADIR}/appendix
78
79 NLS_USES=               gettext
80 NLS_CONFIGURE_ENABLE=   nls
81 NLS_CONFIGURE_ON=       --with-gettext-includes=${LOCALBASE}/include \
82                         --with-gettext-libraries=${LOCALBASE}/lib
83 NLS_CONFIGURE_OFF=      --disable-nls
84
85 post-extract:
86         ${RM} -r ${WRKSRC}/zlib
87         ${MKDIR} ${WRKDIR}/appendix
88 .for file in ${APPENDIXFILES}
89         ${TAR} --exclude CVS -C ${WRKDIR}/appendix -zxmf \
90         ${DISTDIR}/${DIST_SUBDIR}/${file}
91 .endfor
92
93 post-install:
94         (cd ${WRKDIR}/appendix && ${COPYTREE_SHARE} . ${STAGEDIR}${APPENDIXDIR} )
95         ${MKDIR} ${STAGEDIR}${DOCSDIR}
96         ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}
97         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libeb.so
98
99 .include <bsd.port.mk>