pkgsrc/inputmethod/canna-lib/Makefile
obache ed8b73e129 Drop dependency on nbitools.
nbitools is not enough to maintain for recent platforms and no good support for
user-destdir (now, canna-lib and canna-canuum is user-destdir ready)

no objection in tech-pkg-ja@ about three months.
2010-05-28 11:06:34 +00:00

27 lines
811 B
Makefile

# $NetBSD: Makefile,v 1.12 2010/05/28 11:06:34 obache Exp $
PKGREVISION= 2
CANNA_MODULE= lib
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../inputmethod/canna/Makefile.common"
# (1) Change SUBDIRS.
# (2) Don't install `forcpp', `kpdic'.
#
post-patch:
@${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
@${SED} -e 's|\(SUBDIRS = lib canna\).*\( misc\)|\1 cmd/forcpp cmd/kpdic dic/phono\2|' \
-e 's|\(SGSDIR = \).*|\1 lib canna dic/phono misc doc|' \
${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile
.for f in forcpp kpdic
@${MV} ${WRKSRC}/cmd/${f}/Imakefile ${WRKSRC}/cmd/${f}/Imakefile.orig
@${SED} -e '/InstallProgram/d' ${WRKSRC}/cmd/${f}/Imakefile.orig \
> ${WRKSRC}/cmd/${f}/Imakefile
.endfor
post-configure:
@${LN} -s ${WRKSRC}/server/*.h ${WRKSRC}/include
.include "../../mk/bsd.pkg.mk"