aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/skk-tools/Makefile
blob: 92067bee8e2ef4dd4c34544b0cf9f816ee79a94e (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
# Created by: Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp>
# $FreeBSD$

PORTNAME=   skk-tools
PORTVERSION=    1.3.3
PORTEPOCH=  1
CATEGORIES= japanese
MASTER_SITES=   RINGSERVER/elisp/skk/tools \
        http://openlab.ring.gr.jp/skk/tools/
DISTNAME=   skktools-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Jisyo-tools for the SKK Japanese-input software

LICENSE=    GPLv2

GNU_CONFIGURE=  yes

DOCSDIR=    ${PREFIX}/share/doc/skk

PORTDOCS=   README.skktools
PLIST_FILES=    bin/skkdic-count bin/skkdic-expr bin/skkdic-sort

OPTIONS_DEFINE=     DOCS EXPR2
OPTIONS_DEFAULT=    EXPR2

EXPR2_DESC=     Build skkdic-expr2 (needs glib-2.x)
EXPR2_USES=     pkgconfig
EXPR2_USE=      GNOME=glib20
EXPR2_PLIST_FILES=  bin/skkdic-expr2
EXPR2_CONFIGURE_WITH=   skkdic-expr2

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MEXPR2}
PORTDOCS+=  README.skkdic-expr2
.endif

post-build:
    @${LN} -sf README.C ${WRKSRC}/READMEs/README.skktools

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
    (cd ${WRKSRC}/READMEs && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor

.include <bsd.port.mk>