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