2003-05-31 10:28:33 +02:00
|
|
|
# $NetBSD: Makefile,v 1.6 2003/05/31 08:28:34 uebayasi Exp $
|
2002-05-31 15:00:58 +02:00
|
|
|
#
|
2003-05-31 10:28:33 +02:00
|
|
|
.include "../canna/Makefile.common"
|
2002-05-31 15:00:58 +02:00
|
|
|
|
2003-05-31 10:28:33 +02:00
|
|
|
CANNA_MODULE= lib
|
2002-05-31 15:00:58 +02:00
|
|
|
|
|
|
|
INSTALL_TARGET= install install.man
|
|
|
|
|
|
|
|
# (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
|
|
|
|
|
|
|
|
# We need to pass ${MAKE_ENV} to ${XMKMF}
|
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC} && \
|
2002-06-10 11:47:26 +02:00
|
|
|
${SETENV} ${SCRIPTS_ENV} ${MAKE_ENV} ${XMKMF}
|
2002-05-31 15:00:58 +02:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${LN} -s ${WRKSRC}/server/*.h ${WRKSRC}/include
|
|
|
|
|
2003-05-31 10:28:33 +02:00
|
|
|
.include "../canna/Makefile.include"
|