1 # Created by: Motoyuki Kasahara <m-kasahr@sra.co.jp>
2 # $FreeBSD: japanese/eb/Makefile 339761 2014-01-15 07:24:05Z miwi $
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} \
12 EXTRACT_ONLY= ${EBFILES}
14 MAINTAINER= yasu@utahime.org
15 COMMENT= C library for accessing EB, EBG, EBXA, and EPWING CD-ROM dictionaries
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
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
66 USE_AUTOTOOLS= libtool
71 CONFIGURE_ARGS= --with-pkgdocdir=${DOCSDIR}
73 OPTIONS_DEFINE= DOCS NLS
75 APPENDIXDIR= ${DATADIR}/appendix
77 .include <bsd.port.options.mk>
79 .if ${PORT_OPTIONS:MNLS}
81 CONFIGURE_ARGS+= --enable-nls \
82 --with-gettext-includes=${LOCALBASE}/include \
83 --with-gettext-libraries=${LOCALBASE}/lib \
84 --with-iconv-includes=${ICONV_PREFIX}/include \
85 --with-iconv-libraries=${ICONV_PREFIX}/lib
88 CONFIGURE_ARGS+= --disable-nls
89 PLIST_SUB= NLS="@comment "
93 ${RM} -fr ${WRKSRC}/zlib
94 ${MKDIR} ${WRKDIR}/appendix
95 .for file in ${APPENDIXFILES}
96 ${TAR} --exclude CVS -C ${WRKDIR}/appendix -zxmf \
97 ${DISTDIR}/${DIST_SUBDIR}/${file}
101 (cd ${WRKDIR}/appendix && ${COPYTREE_SHARE} . ${STAGEDIR}${APPENDIXDIR} )
102 .if ${PORT_OPTIONS:MDOCS}
103 @${MKDIR} ${STAGEDIR}${DOCSDIR}
104 ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}
107 .include <bsd.port.mk>