Import japanese/eb version 4.4.3
[dports.git] / japanese / eb / Makefile
1 # $FreeBSD: ports/japanese/eb/Makefile,v 1.73 2012/11/17 05:58:32 svnexp Exp $
2
3 PORTNAME=       eb
4 PORTVERSION=    4.4.3
5 CATEGORIES=     japanese
6 MASTER_SITES=   ftp://ftp.sra.co.jp/pub/misc/eb/ \
7                 ftp://ftp.sra.co.jp/pub/misc/eb/old/eb-${PORTVERSION:C/^([0-9]+)\.([0-9]+).*/\1.\2/}/
8 DISTFILES=      ${EBFILES} \
9                 ${LISTFILES} \
10                 ${APPENDIXFILES}
11 EXTRACT_ONLY=   ${EBFILES}
12
13 MAINTAINER=     yasu@utahime.org
14 COMMENT=        C library for accessing EB, EBG, EBXA, and EPWING CD-ROM dictionaries
15
16 EBFILES=        ${DISTNAME}${EXTRACT_SUFX}
17 APPENDIXFILES=  appendix/cencro-1.0.tar.gz \
18                 appendix/chujiten-2.3.tar.gz \
19                 appendix/chujiten2-2.0.tar.gz \
20                 appendix/chujiten6-2.3.tar.gz \
21                 appendix/colloc-2.0.tar.gz \
22                 appendix/crownfj-2.0.tar.gz \
23                 appendix/crownfj2-1.0.tar.gz \
24                 appendix/crowngj-1.0.tar.gz \
25                 appendix/daihyakka-1.0.tar.gz \
26                 appendix/daijirin-2.0.tar.gz \
27                 appendix/dd75-2.0.tar.gz \
28                 appendix/gendai2000-1.0.tar.gz \
29                 appendix/genius-1.0.tar.gz \
30                 appendix/genius2-1.1.tar.gz \
31                 appendix/global-2.0.tar.gz \
32                 appendix/heritage-2.2.tar.gz \
33                 appendix/hyogen-1.0.tar.gz \
34                 appendix/izumi-2.0.tar.gz \
35                 appendix/jitenban-2.4.tar.gz \
36                 appendix/jitenban97-2.1.tar.gz \
37                 appendix/kanjigen-2.0.tar.gz \
38                 appendix/kanjigen2-2.0.tar.gz \
39                 appendix/kojien-2.3.tar.gz \
40                 appendix/kojien2-2.0.tar.gz \
41                 appendix/kojien4-2.2.tar.gz \
42                 appendix/oxford-2.0.tar.gz \
43                 appendix/plus-2.0.tar.gz \
44                 appendix/readers-2.2.tar.gz \
45                 appendix/readers2-2.0.tar.gz \
46                 appendix/ruigigo-1.0.tar.gz \
47                 appendix/superdic98-1.0.tar.gz
48
49 DIST_SUBDIR=    eb
50
51 PORTDOCS=       eb-01.html eb-02.html eb-03.html eb-04.html eb-05.html eb-06.html \
52                 eb-07.html eb-08.html eb-09.html eb-10.html eb-11.html eb-12.html \
53                 eb-13.html eb-14.html eb.html ebappendix-01.html ebappendix-02.html \
54                 ebappendix-03.html ebappendix-04.html ebappendix.html ebfont-01.html \
55                 ebfont-02.html ebfont-03.html ebfont-04.html ebfont.html \
56                 ebinfo-01.html ebinfo-02.html ebinfo-03.html ebinfo-04.html \
57                 ebinfo-05.html ebinfo.html ebrefile-01.html ebrefile-02.html \
58                 ebrefile-03.html ebrefile.html ebstopcode-01.html ebstopcode-02.html \
59                 ebstopcode-03.html ebstopcode.html ebzip-01.html ebzip-02.html \
60                 ebzip-03.html ebzip-04.html ebzip-05.html ebzip-06.html ebzip-07.html \
61                 ebzip-08.html ebzip-09.html ebzip-10.html ebzip.html
62
63 USE_AUTOTOOLS=  libtool
64 USE_BZIP2=      yes
65 USE_GETTEXT=    yes
66 USE_PERL5=      yes
67 GNU_CONFIGURE=  yes
68 USE_LDCONFIG=   yes
69 CONFIGURE_ARGS= --with-pkgdocdir=${DOCSDIR}
70
71 APPENDIXDIR=    ${DATADIR}/appendix
72
73 .if !defined(WITHOUT_NLS)
74 USE_GETTEXT=    yes
75 CONFIGURE_ARGS+=        --enable-nls \
76                 --with-gettext-includes=${LOCALBASE}/include \
77                 --with-gettext-libraries=${LOCALBASE}/lib \
78                 --with-iconv-includes=${LOCALBASE}/include \
79                 --with-iconv-libraries=${LOCALBASE}/lib
80 PLIST_SUB=      NLS=""
81 .else
82 PLIST_SUB=      NLS="@comment "
83 .endif
84
85 post-extract:
86         ${RM} -fr ${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         ${CP} -R ${WRKDIR}/appendix/ ${APPENDIXDIR}
95 .if !defined(NOPORTDOCS)
96         @${MKDIR} ${DOCSDIR}
97 .for doc in ${PORTDOCS}
98         ${INSTALL_DATA} ${WRKSRC}/doc/${doc} ${DOCSDIR}
99 .endfor
100 .endif
101
102 .include <bsd.port.mk>