[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FreeWnn , kinput2, tamago



sakamoto@splhack.org (Kazuki Sakamoto) wrote:

Kazuki> jserverrcがja-freewnn-libで入っちゃってるので、

これでどうでしょう。

Index: Makefile.common
===================================================================
RCS file: /cvsroot/pkgsrc/inputmethod/ja-freewnn-lib/Makefile.common,v
retrieving revision 1.2
diff -u -U10 -r1.2 Makefile.common
--- Makefile.common	2002/06/10 10:03:33	1.2
+++ Makefile.common	2002/06/17 16:09:53
@@ -60,27 +60,31 @@
 	@for file in `${FIND} ${WRKSRC}/Wnn/man -name Makefile.in`; do	\
 		${MV} $$file $$file.orig2;				\
 		${SED} -e 's|\(MANPATH = .*\)|\1/ja_JP.EUC|'		\
 			$$file.orig2 > $$file;				\
 	done
 	@(cd ${WRKSRC}/Wnn/include;				\
 		${MV} config.h config.h.orig;			\
 		${SED} -e 's|^\(\#define	LIBDIR		"\)/usr/local/lib\(/wnn"\)|\1${PREFIX}/share\2|' \
 			config.h.orig > config.h)
 
-.if defined(WNN_TARGET) && (${WNN_TARGET} == "SERVER")
+.if defined(WNN_TARGET) && (${WNN_TARGET} == "LIBRARY")
 post-build:
-	@${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/ja_freewnn \
-		> ${WRKDIR}/ja_freewnn
 	@${MV} ${WRKSRC}/Wnn/jd/jserverrc ${WRKSRC}/Wnn/jd/jserverrc.orig
 	@${SED} -e 's|^\(jserver_dir\).*|\1 ${IMDICTDIR}/wnn/${WNN_LANG}|' \
 		${WRKSRC}/Wnn/jd/jserverrc.orig > ${WRKSRC}/Wnn/jd/jserverrc
+.endif
+
+.if defined(WNN_TARGET) && (${WNN_TARGET} == "SERVER")
+post-build:
+	@${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/ja_freewnn \
+		> ${WRKDIR}/ja_freewnn
 
 post-install:
 	@${INSTALL_SCRIPT} ${WRKDIR}/ja_freewnn ${PREFIX}/etc/rc.d/ja_freewnn
 .endif
 
 .if defined(WNN_TARGET) && (${WNN_TARGET} == "DICT")
 EVAL_PREFIX+=	WNNSERVERBINDIR=ja-FreeWnn-server-bin
 
 pre-build:
 	@for file in `${FIND} ${WRKSRC}/Wnn/pubdic ${WRKSRC}/Wnn/wnncons -name Makefile`; do	\