aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/skkinput3/Makefile
blob: 670d6da9d57a181e2aeb45804fd857b25abf97d4 (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
56
57
58
59
60
61
62
# New ports collection makefile for:    skkinput3
# Date created:     Aug 14 2002
# Whom:         KOMATSU Shinichiro <koma2@jiro.c.u-tokyo.ac.jp>
#
# $FreeBSD$
#

PORTNAME=   skkinput3
PORTVERSION=    3.0.6
PORTREVISION=   1
CATEGORIES= japanese x11
MASTER_SITES=   http://downloads.sourceforge.jp/skkinput3/2222/
DISTNAME=   skkinput-${PORTVERSION}

MAINTAINER= koma2@lovepeers.org
COMMENT=    An SKK-like Japanese input method for X11

USE_IMAKE=      yes

OPTIONS=    DBSKKD "Use ja-dbskkd-cdb as skkserver" off \
        RSKKSERV "Use ja-rskkserv as skkserver" off \
        SKK10 "Use SKK10 elisps" off

NO_INSTALL_MANPAGES=    yes

.include <bsd.port.pre.mk>

.if defined(WITH_SKK10)
PLIST_SUB=      SKK8="@comment " SKK10=""
.else
PLIST_SUB=      SKK8="" SKK10="@comment "
.endif

# sanity check
.if defined(WITH_DBSKKD) && defined(WITH_RSKKSERV)
IGNORE= cannot define both WITH_DBSKKD and WITH_RSKKSERV simultaneously
.endif

.if defined(WITH_DBSKKD)
RUN_DEPENDS=    ${LOCALBASE}/libexec/dbskkd-cdb:${PORTSDIR}/japanese/dbskkd-cdb
.elif defined(WITH_RSKKSERV)
RUN_DEPENDS=    ${LOCALBASE}/libexec/rskkserv:${PORTSDIR}/japanese/rskkserv
.else
RUN_DEPENDS=    ${LOCALBASE}/sbin/skkserv:${PORTSDIR}/japanese/skkserv
.endif

DOCS=       *.jis dot.skkinput ChangeLog

.if defined(WITH_SKK10)
post-patch:
    ${REINPLACE_CMD} -e '/\(#define.*UseSkk8\)/ s/^/XCOMM /' \
                     -e '/XCOMM.*#define.*UseSkk10/ s/XCOMM[[:space:]]*//' \
             ${WRKSRC}/Skkinput.conf
.endif

.if !defined(NOPORTDOCS)
post-install:
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif

.include <bsd.port.post.mk>