aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/xyaku/Makefile
blob: 976341803d6a2802669db3e154359d981d35e6ca (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
# New ports collection makefile for:    xyaku
# Date created:     7 Dec 2000
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   xyaku
PORTVERSION=    1.3.0
PORTREVISION=   1
CATEGORIES= japanese textproc
MASTER_SITES=   http://www.ainet.or.jp/~inoue/software/xyaku/

MAINTAINER= knu@FreeBSD.org

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

USE_X_PREFIX=   yes
USE_RUBY=   yes

USE_AUTOCONF=   yes
USE_LIBTOOL=    yes
CONFIGURE_ARGS= --with-edict="${EDICT_FILE}" \
        --with-ruby="${RUBY}" \
        --with-netscape="${LOCALBASE}/bin/netscape"

EDICT_FILE= ${LOCALBASE}/share/dict/edict/edict
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} ${PREFIX}/share/doc/xyaku/ja
.for f in ${DOCS_EN}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/xyaku/
.endfor
.for f in ${DOCS_JA}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/xyaku/ja/
.endfor
.endif

.include <bsd.port.mk>