Tweak japanese/eb version 4.4.3_1
[dports.git] / japanese / eb / Makefile
1 # Created by: Motoyuki Kasahara <m-kasahr@sra.co.jp>
2 # $FreeBSD: japanese/eb/Makefile 339761 2014-01-15 07:24:05Z miwi $
3
4 PORTNAME=       eb
5 PORTVERSION=    4.4.3
6 PORTREVISION=   1
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 USE_AUTOTOOLS=  libtool
67 USE_BZIP2=      yes
68 USES=           perl5
69 GNU_CONFIGURE=  yes
70 USE_LDCONFIG=   yes
71 CONFIGURE_ARGS= --with-pkgdocdir=${DOCSDIR}
72
73 OPTIONS_DEFINE= DOCS NLS
74
75 APPENDIXDIR=    ${DATADIR}/appendix
76
77 .include <bsd.port.options.mk>
78
79 .if ${PORT_OPTIONS:MNLS}
80 USES+=          gettext iconv
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
86 PLIST_SUB=      NLS=""
87 .else
88 CONFIGURE_ARGS+=        --disable-nls
89 PLIST_SUB=      NLS="@comment "
90 .endif
91
92 post-extract:
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}
98 .endfor
99
100 post-install:
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}
105 .endif
106
107 .include <bsd.port.mk>