summaryrefslogtreecommitdiff
path: root/inputmethod/uim/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'inputmethod/uim/options.mk')
-rw-r--r--inputmethod/uim/options.mk41
1 files changed, 28 insertions, 13 deletions
diff --git a/inputmethod/uim/options.mk b/inputmethod/uim/options.mk
index fdbc6da2c33..3668f65427b 100644
--- a/inputmethod/uim/options.mk
+++ b/inputmethod/uim/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.9 2006/03/09 18:04:32 wiz Exp $
+# $NetBSD: options.mk,v 1.10 2007/01/20 16:56:43 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.uim
PKG_SUPPORTED_OPTIONS= anthy canna eb gtk qt
@@ -6,17 +6,29 @@ PKG_SUGGESTED_OPTIONS= anthy canna gtk
.include "../../mk/bsd.options.mk"
+PLIST_SUBST+= HELPERDATA="@comment "
+PLIST_SUBST+= UIM_DICT_GTK="@comment "
+
.if !empty(PKG_OPTIONS:Manthy)
-.include "../../inputmethod/anthy/buildlink3.mk"
-PLIST_SRC+= PLIST.anthy
+. include "../../inputmethod/anthy/buildlink3.mk"
+CONFIGURE_ARGS+= --with-anthy --enable-dict
+PLIST_SUBST+= ANTHY=
+. if !empty(PKG_OPTIONS:Mgtk)
+PLIST_SUBST+= HELPERDATA=
+PLIST_SUBST+= UIM_DICT_GTK=
+. endif
.else
CONFIGURE_ARGS+= --without-anthy
+PLIST_SUBST+= ANTHY="@comment "
.endif
.if !empty(PKG_OPTIONS:Mcanna)
-.include "../../inputmethod/canna-lib/buildlink3.mk"
+. include "../../inputmethod/canna-lib/buildlink3.mk"
CONFIGURE_ARGS+= --with-canna
-PLIST_SRC+= PLIST.canna
+PLIST_SUBST+= CANNA=
+.else
+CONFIGURE_ARGS+= --without-canna
+PLIST_SUBST+= CANNA="@comment "
.endif
.if !empty(PKG_OPTIONS:Meb)
@@ -27,18 +39,21 @@ CONFIGURE_ARGS+= --without-eb
.if !empty(PKG_OPTIONS:Mgtk)
.include "../../x11/gtk2/modules.mk"
-PLIST_SRC+= PLIST.gtk
+PLIST_SUBST+= GTK=
.else
CONFIGURE_ARGS+= --without-gtk2
+PLIST_SUBST+= GTK="@comment "
.endif
.if !empty(PKG_OPTIONS:Mqt)
-.include "../../x11/qt3-libs/buildlink3.mk"
-.include "../../x11/qt3-tools/buildlink3.mk"
-CONFIGURE_ARGS+= --with-qt
+. include "../../x11/kdelibs3/buildlink3.mk"
+. include "../../x11/qt3-libs/buildlink3.mk"
+BUILD_DEPENDS+= qt3-tools-3.*:../../x11/qt3-tools
+CONFIGURE_ARGS+= --with-qt CXXFLAGS=-lc
# Not worked this option. need immodule patch for Qt3
-CONFIGURE_ARGS+= --with-qt-immodule
-PLIST_SRC+= PLIST.qt
+#CONFIGURE_ARGS+= --with-qt-immodule
+PLIST_SUBST+= HELPERDATA=
+PLIST_SUBST+= QT=
+.else
+PLIST_SUBST+= QT="@comment "
.endif
-
-PLIST_SRC+= PLIST.common