366f3b7f81
* Fully convert to the pkginstall framework by using it to manage directories required at install time. * Rewrite the canna rc.d script to ensure that all needed directories are present before the daemon is started. * Miscellaneous touch ups to the DESCR and MESSAGE files. * Remove the need to explicitly set PREFIX. These packages now install into ${LOCALBASE} and use symlinks and file copies to put the files into the ${IMDICTDIR}. Bump the PKGREVISIONs for the canna* packages.
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2006/07/05 04:48:28 jlam Exp $
|
|
|
|
PKGREVISION= 1
|
|
CANNA_MODULE= lib
|
|
|
|
.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.prefs.mk"
|
|
|
|
# XXX Work around bug in nbitools where the correct DragonFly library
|
|
# XXX symlinks are not created.
|
|
# XXX
|
|
.if ${OPSYS} == "DragonFly"
|
|
post-install:
|
|
. for f in RKC RKC16 canna canna16
|
|
${LN} -s lib${f}.so.1.1 ${PREFIX}/lib/lib${f}.so.1
|
|
${LN} -s lib${f}.so.1 ${PREFIX}/lib/lib${f}.so
|
|
. endfor
|
|
.endif
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|