freebsd-ports/japanese/multiskkserv/Makefile
Pav Lucistnik 524df8a95e - Update maintainer's address
PR:		ports/65701
Submitted by:	Takahiro MORISHITA <morishita@skywing.org> (maintainer)
2004-04-18 14:38:13 +00:00

49 lines
1.4 KiB
Makefile

# New ports collection makefile for: multiskkserv
# Date created: 27 Dec 2003
# Whom: Takahiro Morishita <morishita@skywing.org>
#
# $FreeBSD$
#
PORTNAME= multiskkserv
PORTVERSION= 0.20020201
CATEGORIES= japanese
MASTER_SITES= http://www3.big.or.jp/~sian/linux/products/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/0.//g}
MAINTAINER= freebsd@next-generation.org
COMMENT= Multiple dictionary server for the SKK
EXTRACT_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/databases/cdb:build
RUN_DEPENDS= ${LOCALBASE}/${SKKDIR}/SKK-JISYO.${SKKJISYO_TYPE}.cdb:${PORTSDIR}/japanese/skk-jisyo-cdb
USE_BZIP2= yes
SKKDIR?= share/skk
SKKJISYO_TYPE?= L
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/0.//g}
USE_RC_SUBR= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-cdb=`cd ${PORTSDIR}/databases/cdb; ${MAKE} -V WRKSRC`
post-extract:
${CP} ${FILESDIR}/multiskkserv.sh ${WRKDIR}/multiskkserv.sh
post-patch:
@${REINPLACE_CMD} \
-e 's,%%PREFIX%%,${PREFIX},g' \
-e 's,%%RC_SUBR%%,${RC_SUBR},g' \
-e 's,%%SKKDIR%%,${SKKDIR},g' \
-e 's,%%SKKJISYO_TYPE%%,${SKKJISYO_TYPE},g' \
${WRKDIR}/multiskkserv.sh
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/src/multiskkserv ${PREFIX}/sbin
@${INSTALL_PROGRAM} ${WRKSRC}/src/multiskkserv-ctl ${PREFIX}/sbin
@${INSTALL_PROGRAM} ${WRKSRC}/tools/skkdic-p2cdb ${PREFIX}/bin
@${INSTALL_SCRIPT} ${WRKDIR}/multiskkserv.sh ${PREFIX}/etc/rc.d/
.include <bsd.port.mk>