aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/multiskkserv/Makefile
blob: 219064d7fbf69e036d8aa673f59ccdcef79c6ea2 (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
# Created by: Takahiro Morishita <morishita@skywing.org>
# $FreeBSD$

PORTNAME=   multiskkserv
PORTVERSION=    0.20100128
CATEGORIES= japanese
MASTER_SITES=   http://www3.big.or.jp/~sian/linux/products/
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/0.//g}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Multiple dictionary server for the SKK

EXTRACT_DEPENDS=    ${NONEXISTENT}:databases/cdb:build
RUN_DEPENDS=    ${LOCALBASE}/${SKKDIR}/SKK-JISYO.${SKKJISYO_TYPE}.cdb:japanese/skk-jisyo-cdb

USES=       tar:xz

SKKDIR?=    share/skk
SKKJISYO_TYPE?= L

SUB_FILES+= multiskkserv
SUB_LIST+=  SKKDIR=${SKKDIR} SKKJISYO_TYPE=${SKKJISYO_TYPE}

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/0.//g}
USE_RC_SUBR=    ${PORTNAME}
GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=    --with-cdb=`cd ${PORTSDIR}/databases/cdb; ${MAKE} -V WRKSRC`

PLIST_FILES=    bin/skkdic-p2cdb sbin/multiskkserv sbin/multiskkserv-ctl

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/multiskkserv ${STAGEDIR}${PREFIX}/sbin
    ${INSTALL_PROGRAM} ${WRKSRC}/src/multiskkserv-ctl ${STAGEDIR}${PREFIX}/sbin
    ${INSTALL_PROGRAM} ${WRKSRC}/tools/skkdic-p2cdb ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>