aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/xyaku/Makefile
blob: 9f3df18ab34951060b11d27982341345d1ae3687 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# New ports collection makefile for:    xyaku
# Date created:     7 Dec 2000
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   xyaku
PORTVERSION=    1.4.0
PORTREVISION=   3
CATEGORIES= japanese textproc
MASTER_SITES=   http://www.sepia.dti.ne.jp/inoue/software/xyaku/ \
        http://redundancy.redundancy.org/mirror/

MAINTAINER= lx@FreeBSD.org
COMMENT=    A general dictionary/search engine front-end for X

RUN_DEPENDS=    ${RUBY_SITEARCHLIBDIR}/eb.so:${PORTSDIR}/japanese/ruby-eb

OPTIONS=    UTF8 "Use UTF-8 edict dictionaries" on

.if !defined(WITHOUT_UTF8)
EDICT_FILE= ${LOCALBASE}/share/dict/edict-utf-8/edict
RUN_DEPENDS+=   ${EDICT_FILE}:${PORTSDIR}/japanese/edict-utf-8
.else
EDICT_FILE= ${LOCALBASE}/share/dict/edict/edict
RUN_DEPENDS+=   ${EDICT_FILE}:${PORTSDIR}/japanese/edict
.endif

USE_RUBY=   yes
USE_XLIB=   yes
USE_AUTOTOOLS=  autoconf:213 libtool:15
CONFIGURE_ARGS= --with-edict="${EDICT_FILE}" \
        --with-ruby="${RUBY}"

DOCS_EN=    AUTHORS ChangeLog INSTALL NEWS README TODO \
        addin/ADDIN.ChangeLog addin/ADDIN.txt
DOCS_JA=    addin/README.searcheb.ja

post-extract:
    ${MV} ${WRKSRC}/addin/ChangeLog ${WRKSRC}/addin/ADDIN.ChangeLog

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${MKDIR} ${DOCSDIR}/ja
.for f in ${DOCS_EN}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.for f in ${DOCS_JA}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ja
.endfor
.endif

.include <bsd.port.mk>