aboutsummaryrefslogtreecommitdiff
path: root/textproc/uim
diff options
context:
space:
mode:
authorMANTANI Nobutaka <nobutaka@FreeBSD.org>2006-01-31 17:43:42 +0000
committerMANTANI Nobutaka <nobutaka@FreeBSD.org>2006-01-31 17:43:42 +0000
commita40f2d0d2b31582abfe7b5f3c8eb00e490b94be4 (patch)
tree56ed7c527c12181b6e72082565b486bb56220f73 /textproc/uim
parentfcde993b017467e42d63834bedcae887e1c55022 (diff)
downloadports-a40f2d0d2b31582abfe7b5f3c8eb00e490b94be4.tar.gz
ports-a40f2d0d2b31582abfe7b5f3c8eb00e490b94be4.zip
Notes
Diffstat (limited to 'textproc/uim')
-rw-r--r--textproc/uim/Makefile12
-rw-r--r--textproc/uim/files/extra-patch-uim_editline.c22
2 files changed, 33 insertions, 1 deletions
diff --git a/textproc/uim/Makefile b/textproc/uim/Makefile
index 1a12edee204d..0e670e171951 100644
--- a/textproc/uim/Makefile
+++ b/textproc/uim/Makefile
@@ -15,7 +15,6 @@ COMMENT= Input method library
USE_X_PREFIX= yes
USE_REINPLACE= yes
-USE_PERL5_BUILD=yes
INSTALLS_SHLIB= yes
WANT_GNOME= yes
USE_GNOME= gnometarget glib20
@@ -45,6 +44,17 @@ PLIST_SUB= DOCSDIR_JA="${DOCSDIR_JA:S,^${PREFIX}/,,}"
.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 500000
+EXTRA_PATCHES= ${PATCHDIR}/extra-patch-uim_editline.c
+.endif
+
+.if ${PERL_LEVEL} >= 500600
+USE_PERL5_BUILD=yes
+.else
+BUILD_DEPENDS+= ${LOCALBASE}/bin/perl:${PORTSDIR}/lang/perl5
+CONFIGURE_ENV+= INTLTOOL_PERL="${LOCALBASE}/bin/perl"
+.endif
+
.if defined(WITH_GTK) && !defined(WITHOUT_GTK)
USE_GNOME+= gtk20
CONFIGURE_ARGS+=--with-gtk2
diff --git a/textproc/uim/files/extra-patch-uim_editline.c b/textproc/uim/files/extra-patch-uim_editline.c
new file mode 100644
index 000000000000..15f3936183fa
--- /dev/null
+++ b/textproc/uim/files/extra-patch-uim_editline.c
@@ -0,0 +1,22 @@
+--- uim/editline.c.orig Wed Dec 7 21:39:32 2005
++++ uim/editline.c Tue Jan 31 01:48:45 2006
+@@ -52,6 +52,10 @@
+
+ #include "editline.h"
+
++#ifndef H_SETSIZE
++#define H_SETSIZE 1
++#endif
++
+ static EditLine *el;
+ static History *hist;
+ static HistEvent hev;
+@@ -65,7 +69,7 @@
+ void
+ editline_init(void)
+ {
+- el = el_init("uim", stdin, stdout, stderr);
++ el = el_init("uim", stdin, stdout);
+ el_set(el, EL_PROMPT, &prompt);
+ el_set(el, EL_EDITOR, "emacs");
+