File:  [cvs.NetBSD.org] / pkgsrc / inputmethod / canna-server / Makefile
Revision 1.18: download - view: text, annotated - select for diffs
Thu Feb 22 19:26:37 2007 UTC (17 years, 9 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, HEAD
Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.

# $NetBSD: Makefile,v 1.18 2007/02/22 19:26:37 wiz Exp $

PKGREVISION=	2
CANNA_MODULE=	server

.include "../../inputmethod/canna/Makefile.common"

INSTALL_TARGET=	instserver

BUILD_DEFS+=	CANNA_USER CANNA_GROUP
MESSAGE_SUBST+=	CANNA_USER=${CANNA_USER}
MESSAGE_SUBST+=	CANNA_GROUP=${CANNA_GROUP}

PKG_GROUPS=	${CANNA_GROUP}
PKG_USERS=	${CANNA_USER}:${CANNA_GROUP}

MAKE_DIRS+=		${IMDICTDIR}
OWN_DIRS+=		${IMDICTDIR}/canna
OWN_DIRS+=		${IMDICTDIR}/canna/canna
OWN_DIRS_PERMS+=	${CANNA_SPOOL}					\
			${CANNA_USER} ${CANNA_GROUP} ${CANNA_MODE}

RCD_SCRIPTS=	canna

.include "../../inputmethod/canna-lib/buildlink3.mk"

post-patch:
	${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
	${SED} -e 's|\(SUBDIRS = \).*|\1 canna lib server cmd doc|' \
		-e 's|\(SERVERDIR = \).*|\1 server cmd doc|' \
		${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile
	${MV} ${WRKSRC}/Canna.conf ${WRKSRC}/Canna.conf.orig
	${SED} -e 's|\(DicDir.*=\).*|\1${IMDICTDIR}/canna|' \
		${WRKSRC}/Canna.conf.orig > ${WRKSRC}/Canna.conf

.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>