From 56fbcce3ff6e2c9d1f6a27a914399971154e6488 Mon Sep 17 00:00:00 2001
From: Akinori MUSHA <knu@FreeBSD.org>
Date: Thu, 7 Sep 2000 08:01:29 +0000
Subject: Add a knob for XIM support. (WITH_XIM)

Approved by:	KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp> (MAINTAINER)
---
 editors/xemacs21-mule-common/Makefile | 1 +
 editors/xemacs21-mule/Makefile        | 4 +++-
 japanese/xemacs21-canna/Makefile      | 4 ++++
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/editors/xemacs21-mule-common/Makefile b/editors/xemacs21-mule-common/Makefile
index be3507a67dcb..41ebaba625a7 100644
--- a/editors/xemacs21-mule-common/Makefile
+++ b/editors/xemacs21-mule-common/Makefile
@@ -18,6 +18,7 @@
 #	WITH_INPUT_METHOD : input methods(configure arguments)
 #	LIB_INPUT_METHOD  : LIB_DEPENDS list of Input Methods
 #	BUILD_INPUT_METHOD: BUILD_DEPENDS list of Input Methods
+#	WITH_XIM          : X Input Method(configure arguments)
 
 XEMACS_MAJOR_VER=	21
 
diff --git a/editors/xemacs21-mule/Makefile b/editors/xemacs21-mule/Makefile
index 81d11f33cc44..bb8189d5445a 100644
--- a/editors/xemacs21-mule/Makefile
+++ b/editors/xemacs21-mule/Makefile
@@ -17,6 +17,7 @@
 #	WITH_INPUT_METHOD : input methods(configure arguments)
 #	LIB_INPUT_METHOD  : LIB_DEPENDS list of Input Methods
 #	BUILD_INPUT_METHOD: BUILD_DEPENDS list of Input Methods
+#	WITH_XIM          : X Input Method(configure arguments)
 
 .if !defined(MULE_SLAVE) && !defined(MULE_COMMON)
 MULE_SLAVE=	yes
@@ -38,7 +39,7 @@ LIB_DEPENDS=	compface.1:${PORTSDIR}/mail/faces \
 CONFIGURE_ARGS?=${XEMACS_ARCH} \
 		--prefix=${PREFIX} \
 		--with-x11 \
-		--with-xim=no \
+		--with-xim=${WITH_XIM} \
 		--with-mule \
 		--x-includes=${X11BASE}/include \
 		--x-libraries=${X11BASE}/lib \
@@ -82,6 +83,7 @@ SITE_INCLUDES+=		${PREFIX}/include
 SITE_LIBRARIES+=	${PREFIX}/lib
 WITH_INPUT_METHOD?=	--with-canna=no --with-wnn=no --with-wnn6=no
 .endif
+WITH_XIM?=	no
 
 .if defined(MULE_SLAVE)
 pre-build:
diff --git a/japanese/xemacs21-canna/Makefile b/japanese/xemacs21-canna/Makefile
index faf0463c9de3..d73451a414f5 100644
--- a/japanese/xemacs21-canna/Makefile
+++ b/japanese/xemacs21-canna/Makefile
@@ -18,6 +18,7 @@
 #	WITH_INPUT_METHOD : input methods(configure arguments)
 #	LIB_INPUT_METHOD  : LIB_DEPENDS list of Input Methods
 #	BUILD_INPUT_METHOD: BUILD_DEPENDS list of Input Methods
+#	WITH_XIM          : X Input Method(configure arguments)
 
 CATEGORIES=	japanese
 
@@ -61,6 +62,9 @@ LIB_INPUT_METHOD=	canna.1:${PORTSDIR}/japanese/Canna
 COMMENT_TEXT=		XEmacs(version ${XEMACS_MAJOR_VER}) text editor, with SJ3, SKK and Canna support
 .endif
 
+# If you need XIM support, set this to "xlib" or "motif".
+WITH_XIM?=		no
+
 post-install::
 	@${MKDIR} ${PREFIX}/man/ja/man1
 	@${INSTALL_MAN} ${WRKSRC}/etc/xemacs-ja.1 ${PREFIX}/man/ja/man1
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0