1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-03 11:12:13 +00:00

New port: iiimf-*

IIIMF stands for Internet/Intranet Input Method Framework.
	IIIMF is designed to be the next generation of input method framework
	which provides the following capabilities;

	* Multiplatform, platform independent.
	* Multlingual and Full UNICODE support, but satisfactory for native speakers.
	* Windowing System Independent.
	* Multiple language engines concurrently run.
	* Multiuser.
	* Distributed, lightweight clients and scalable server.
	* Extensible in multiple means.
	* Input method protocol efficient enough to be used over low-speed modem
	  connection.
	* Easy input method engine development with plugin API.
	* Easy input method enabling with libiiimcf, even on console apps.
	* Small core part to start from.

	WWW: http://www.openi18n.org/subgroups/im/IIIMF/

	- Kuang-che Wu
	  kcwu@csie.org

PR:		ports/60087
Submitted by:	Kuang-che Wu <kcwu@csie.org>
This commit is contained in:
Edwin Groothuis 2003-12-29 04:17:02 +00:00
parent 43916cb62f
commit 3dc8a49a42
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=96816
9 changed files with 189 additions and 0 deletions

View File

@ -126,6 +126,7 @@
SUBDIR += iiimf-le-unit
SUBDIR += iiimf-protocol-lib
SUBDIR += iiimf-server
SUBDIR += iiimf-x
SUBDIR += info2html
SUBDIR += info_to_html
SUBDIR += intltool

66
textproc/iiimf-x/Makefile Normal file
View File

@ -0,0 +1,66 @@
# New ports collection makefile for: iiimf-x
# Date created: 6 Dec 2003
# Whom: Kuang-che Wu <kcwu@csie.org>
#
# $FreeBSD$
#
PORTNAME= iiimf-x
PORTVERSION= ${IIIMF_VER:S/_/./:C/-.*//}
CATEGORIES= textproc
MASTER_SITES= http://www.openi18n.org/download/docs/im-sdk/
DISTNAME= im-sdk
DISTFILES= ${DISTNAME}.${IIIMF_VER:S/-/./}${EXTRACT_SUFX}
MAINTAINER= kcwu@csie.org
COMMENT= Internet/Intranet Input Method X Client Framework
LIB_DEPENDS= iiimp.0:${PORTSDIR}/textproc/iiimf-protocol-lib \
iiimcf.2:${PORTSDIR}/textproc/iiimf-client-lib
IIIMF_VER= r11_4-1467
WRKSRC= ${WRKDIR}/${DISTNAME}-${IIIMF_VER}
USE_BZIP2= yes
USE_GMAKE= yes
USE_XLIB= yes
INSTALLS_SHLIB= yes
USE_REINPLACE= yes
HAS_CONFIGURE= yes
USE_MOTIF= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
DIRS= iiimxcf/xiiimp.so iiimxcf/htt_xbe
post-patch:
.for DIR in ${DIRS}
${REINPLACE_CMD} -e "s,-lpthread,-pthread,g" \
-e "s,-D_POSIX_C_SOURCE=199506L,,g" \
-e "s,has_xiccallback=no,has_xiccallback=yes,g" \
-e "s,/usr/lib/im,${LOCALBASE}/lib/im,g" \
-e "s,-I\$$(IM_INCLUDEDIR),-I${LOCALBASE}/include/iiimf,g" \
${WRKSRC}/${DIR}/configure
${REINPLACE_CMD} -e "s,/usr/lib/im,${PREFIX}/lib/im,g" \
${WRKSRC}/iiimxcf/xiiimp.so/iiimp/Makefile.in \
${WRKSRC}/iiimxcf/xiiimp.so/iiimp/iiimpAux.c \
${WRKSRC}/iiimxcf/xiiimp.so/iiimp/iiimpIM.c \
${WRKSRC}/iiimxcf/xiiimp.so/iiimp/iiimpConv.c \
${WRKSRC}/iiimxcf/xiiimp.so/iiimp/csconv.h \
${WRKSRC}/iiimxcf/htt_xbe/lib/IMdkit/common/XIMPublic.cpp \
${WRKSRC}/iiimxcf/htt_xbe/src/watchdog.c
.endfor
do-configure:
.for DIR in ${DIRS}
cd ${WRKSRC}/${DIR} && ${SH} configure ${CONFIGURE_ARGS}
.endfor
do-build:
.for DIR in ${DIRS}
cd ${WRKSRC}/${DIR} && ${GMAKE} all
.endfor
do-install:
.for DIR in ${DIRS}
cd ${WRKSRC}/${DIR} && ${GMAKE} install
.endfor
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (im-sdk.r11_4.1467.tar.bz2) = ca6b6ac7c41641db6eaa0fa395748f90

View File

@ -0,0 +1,13 @@
--- iiimxcf/htt_xbe/lib/IMdkit/Makefile.in.orig Sat Dec 6 05:14:14 2003
+++ iiimxcf/htt_xbe/lib/IMdkit/Makefile.in Sat Dec 6 05:52:09 2003
@@ -74,8 +74,8 @@
LINKER = @LINKER@
RANLIB = @RANLIB@
-CFLAGS = @CFLAGS@
-CXXFLAGS = @CXXFLAGS@
+CFLAGS = @CFLAGS@ @X_CFLAGS@
+CXXFLAGS = @CXXFLAGS@ @X_CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@

View File

@ -0,0 +1,47 @@
--- iiimxcf/htt_xbe/src/watchdog.c.orig Sat Dec 6 05:54:41 2003
+++ iiimxcf/htt_xbe/src/watchdog.c Sat Dec 6 06:01:13 2003
@@ -187,7 +187,11 @@
* Setup the signal handlers to monitor htt_server, htt_props
* abnormal termination
*/
+#if defined(__FreeBSD__)
+ setsid();
+#else
grpid = setpgrp();
+#endif
#ifdef SunOS
sigset(SIGTERM, clean_up);
@@ -309,7 +313,7 @@
XChangeProperty(display, httw_id, class_atom, XA_STRING, 8,
PropModeReplace, "htt", strlen("htt"));
- XSetWMProtocols(display, httw_id, &htt_save_atom, 3);
+ XSetWMProtocols(display, httw_id, htt_save_atom, 3);
XSelectInput(display, httw_id, PropertyChangeMask | StructureNotifyMask);
XSetSelectionOwner(display, htt_atom, httw_id, CurrentTime);
@@ -703,7 +707,11 @@
* most of the cases
*/
sleep(1);
+#if defined(__FreeBSD__)
+ setsid();
+#else
setpgrp();
+#endif
#ifdef SunOS
if (flag == OPENWIN_PATH) {
putenv(OPENWIN_MOTIF_PRELOAD_ENV);
@@ -734,7 +742,11 @@
perror("watchdog:fork\n");
exit(errno);
case 0:
+#if defined(__FreeBSD__)
+ setsid();
+#else
setpgrp();
+#endif
if (!my_rdb.respond_to_sm)
sleep(10);
execv(pathname, argv);

View File

@ -0,0 +1,22 @@
--- iiimxcf/xiiimp.so/iiimp/Makefile.in.orig Sun Dec 7 20:00:38 2003
+++ iiimxcf/xiiimp.so/iiimp/Makefile.in Sun Dec 7 20:01:19 2003
@@ -138,8 +138,7 @@
# you have to add the following by yourself to check undefined symbols.
# -Wl,-z -Wl,defs
xiiimp_la_LIBADD = $(X_LIBS) \
- $(IM_LIBDIR)/iiimcf/libiiimcf.la \
- $(IM_LIBDIR)/iiimp/libiiimp.la \
+ -L$(prefix)/lib -liiimcf -liiimp \
$(DLOPEN_LIBS) $(THREAD_LIBS)
xiiimp_la_SOURCES = \
@@ -190,8 +189,7 @@
CONFIG_CLEAN_FILES =
LTLIBRARIES = $(module_LTLIBRARIES)
-xiiimp_la_DEPENDENCIES = $(IM_LIBDIR)/iiimcf/libiiimcf.la \
- $(IM_LIBDIR)/iiimp/libiiimp.la
+xiiimp_la_DEPENDENCIES =
am_xiiimp_la_OBJECTS = xiiimp_la-genutil.lo xiiimp_la-KeyMap.lo \
xiiimp_la-guiIMLookup.lo xiiimp_la-XeIMWrap.lo \
xiiimp_la-guiIMPre.lo xiiimp_la-lookup.lo xiiimp_la-XimpConv.lo \

View File

@ -0,0 +1,11 @@
--- iiimxcf/xiiimp.so/iiimp/iiimpAux.c.orig Sat Dec 6 04:07:05 2003
+++ iiimxcf/xiiimp.so/iiimp/iiimpAux.c Sat Dec 6 04:07:42 2003
@@ -61,7 +61,7 @@
#include <strings.h>
#include <ctype.h>
#include <sys/param.h>
-#ifndef linux
+#if !defined(linux) && !defined(__FreeBSD__)
#include <synch.h>
#endif

View File

@ -0,0 +1,21 @@
IIIMF stands for Internet/Intranet Input Method Framework.
IIIMF is designed to be the next generation of input method framework
which provides the following capabilities;
* Multiplatform, platform independent.
* Multlingual and Full UNICODE support, but satisfactory for native speakers.
* Windowing System Independent.
* Multiple language engines concurrently run.
* Multiuser.
* Distributed, lightweight clients and scalable server.
* Extensible in multiple means.
* Input method protocol efficient enough to be used over low-speed modem
connection.
* Easy input method engine development with plugin API.
* Easy input method enabling with libiiimcf, even on console apps.
* Small core part to start from.
WWW: http://www.openi18n.org/subgroups/im/IIIMF/
- Kuang-che Wu
kcwu@csie.org

View File

@ -0,0 +1,7 @@
lib/im/xiiimp.so.2
lib/im/xiiimp.so
lib/im/xiiimp.la
lib/im/xiiimp.a
lib/im/htt_xbe
lib/im/httx
@dirrm lib/im