summaryrefslogtreecommitdiff
path: root/inputmethod
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2008-09-24 03:03:45 +0000
committerobache <obache@pkgsrc.org>2008-09-24 03:03:45 +0000
commit2d4417a711ec6ac52a03576769cec39cba8d2a93 (patch)
tree1a3c97a083a62f5789da67bf821c1d2e19b70a0c /inputmethod
parent1856dd5edd26303e317bb7d45d62807e358c4a62 (diff)
downloadpkgsrc-2d4417a711ec6ac52a03576769cec39cba8d2a93.tar.gz
The editline plugin depend on libedit.
Diffstat (limited to 'inputmethod')
-rw-r--r--inputmethod/uim/Makefile13
-rw-r--r--inputmethod/uim/PLIST4
2 files changed, 14 insertions, 3 deletions
diff --git a/inputmethod/uim/Makefile b/inputmethod/uim/Makefile
index 1c617cf176a..75b6abfc0e8 100644
--- a/inputmethod/uim/Makefile
+++ b/inputmethod/uim/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2008/06/08 13:01:48 obache Exp $
+# $NetBSD: Makefile,v 1.34 2008/09/24 03:03:45 obache Exp $
#
DISTNAME= uim-1.5.1
@@ -26,6 +26,17 @@ CONFIGURE_ARGS+= --with-libgcroots=installed
.include "options.mk"
+PLIST_VARS+= editline
+CHECK_BUILTIN.readline:= yes
+.include "../../devel/readline/builtin.mk"
+CHECK_BUILTIN.readline:= no
+
+.if !empty(BUILTIN_LIB_FOUND.edit:M[yY][eE][sS])
+PLIST.editline= yes
+.else
+CONFIGURE_ARGS+= --with-libedit=no
+.endif
+
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/uim
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/uim
diff --git a/inputmethod/uim/PLIST b/inputmethod/uim/PLIST
index d9a104eb371..3181af8e13d 100644
--- a/inputmethod/uim/PLIST
+++ b/inputmethod/uim/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2008/06/08 13:01:48 obache Exp $
+@comment $NetBSD: PLIST,v 1.7 2008/09/24 03:03:45 obache Exp $
${PLIST.qt}bin/uim-chardict-qt
${PLIST.uim-dict-gtk}bin/uim-dict-gtk
bin/uim-fep
@@ -35,7 +35,7 @@ lib/pkgconfig/uim.pc
${PLIST.anthy}lib/uim/plugin/libuim-anthy.la
${PLIST.canna}lib/uim/plugin/libuim-canna.la
lib/uim/plugin/libuim-custom-enabler.la
-lib/uim/plugin/libuim-editline.la
+${PLIST.editline}lib/uim/plugin/libuim-editline.la
lib/uim/plugin/libuim-look.la
${PLIST.m17nlib}lib/uim/plugin/libuim-m17nlib.la
${PLIST.prime}lib/uim/plugin/libuim-prime.la