mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Update to r12.0.1
PR: ports/72614 Submitted by: Kuang-che Wu <kcwu@csie.org> (maintainer)
This commit is contained in:
parent
3ce422d638
commit
7dcee28f2e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=119290
7 changed files with 77 additions and 104 deletions
|
@ -5,73 +5,49 @@
|
|||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= iiimf-x
|
||||
PORTVERSION= ${IIIMF_VER:S/_/./:C/-.*//}
|
||||
PORTREVISION= 1
|
||||
PORTNAME= x
|
||||
PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//}
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= http://www.openi18n.org/download/docs/im-sdk/
|
||||
MASTER_SITES= http://www.openi18n.org/download/im-sdk/src/
|
||||
PKGNAMEPREFIX= iiimf-
|
||||
DISTNAME= im-sdk
|
||||
DISTFILES= ${DISTNAME}.${IIIMF_VER:S/-/./}${EXTRACT_SUFX}
|
||||
DISTFILES= ${DISTNAME}-src-${IIIMF_VER}.tgz
|
||||
|
||||
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
|
||||
RUN_DEPENDS= ${LOCALBASE}/lib/im/xiiimp.so:${PORTSDIR}/textproc/iiimf-x-lib
|
||||
|
||||
IIIMF_VER= r11_4-1467
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}-${IIIMF_VER}
|
||||
USE_BZIP2= yes
|
||||
USE_GMAKE= yes
|
||||
USE_XLIB= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
IIIMF_VER= r12_0_1-svn1891
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}-${IIIMF_VER}/iiimxcf/htt_xbe
|
||||
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}-${IIIMF_VER}
|
||||
USE_REINPLACE= yes
|
||||
HAS_CONFIGURE= yes
|
||||
USE_MOTIF= yes
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX}
|
||||
DIRS= iiimxcf/xiiimp.so iiimxcf/htt_xbe
|
||||
USE_XLIB= yes
|
||||
USE_AUTOCONF_VER= 259
|
||||
USE_AUTOHEADER_VER= 259
|
||||
USE_AUTOMAKE_VER= 19
|
||||
USE_LIBTOOL_VER= 15
|
||||
LIBTOOLFILES= ${WRKSRC}/aclocal.m4
|
||||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 502126
|
||||
BROKEN= "Does not compile on FreeBSD >= 5.x"
|
||||
.endif
|
||||
|
||||
.if ${ARCH} != "i386"
|
||||
BROKEN= "Does not compile on !i386"
|
||||
.endif
|
||||
|
||||
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
|
||||
${WRKSRC}/../../acfiles/im_common.m4 \
|
||||
${WRKSRC}/configure.ac \
|
||||
${WRKSRC}/lib/IMdkit/common/XIMPublic.cpp \
|
||||
${WRKSRC}/src/watchdog.c
|
||||
|
||||
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
|
||||
pre-configure:
|
||||
cd ${WRKSRC} && ${ACLOCAL} -I ${LOCALBASE}/share/aclocal -I ../../acfiles
|
||||
${TOUCH} ${WRKSRC}/config.h.in
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
MD5 (im-sdk.r11_4.1467.tar.bz2) = ca6b6ac7c41641db6eaa0fa395748f90
|
||||
SIZE (im-sdk.r11_4.1467.tar.bz2) = 7253894
|
||||
MD5 (im-sdk-src-r12_0_1-svn1891.tgz) = 4e51e4fd07391bd957622db0e89aeefe
|
||||
SIZE (im-sdk-src-r12_0_1-svn1891.tgz) = 18206118
|
||||
|
|
36
textproc/iiimf-x/files/patch-acfiles_check_sys.m4
Normal file
36
textproc/iiimf-x/files/patch-acfiles_check_sys.m4
Normal file
|
@ -0,0 +1,36 @@
|
|||
--- acfiles/check_sys.m4.orig Thu Aug 12 18:01:23 2004
|
||||
+++ acfiles/check_sys.m4 Wed Sep 8 16:15:39 2004
|
||||
@@ -74,6 +74,11 @@
|
||||
## Checks for thread library.
|
||||
AC_CHECK_LIB(pthread, pthread_create, [ HAVE_LIBPTHREAD="yes" ])
|
||||
AC_CHECK_LIB(thread, thr_create, [ HAVE_LIBUITHREAD="yes" ])
|
||||
+
|
||||
+ case "${target}" in
|
||||
+ *freebsd*) HAVE_LIBPTHREAD="yes";;
|
||||
+ esac
|
||||
+
|
||||
if test "X${HAVE_LIBPTHREAD}" = "Xyes" ; then
|
||||
HAVE_THREAD="pthread"
|
||||
elif test "X${HAVE_LIBUITHREAD}" = "Xyes" ; then
|
||||
@@ -210,8 +215,6 @@
|
||||
COMMON_CXX_CFLAGS="${COMMON_CXX_CFLAGS} -DLinux"
|
||||
;;
|
||||
*freebsd*)
|
||||
- THREAD_LDFLAGS="-pthread"
|
||||
- PTHREAD_LIBS=""
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -249,9 +252,9 @@
|
||||
THREAD_CXX_CFLAGS="-mt"
|
||||
HAVE_THREAD="uithread"
|
||||
;;
|
||||
- *freebsd*@gcc:*)
|
||||
- THREAD_LDFLAGS="-pthread"
|
||||
- THREAD_LIBS=""
|
||||
+ *freebsd*)
|
||||
+ THREAD_CXX_CFLAGS="${PTHREAD_CFLAGS}"
|
||||
+ THREAD_LIBS="${PTHREAD_LIBS}"
|
||||
HAVE_THREAD="freebsd-pthread"
|
||||
;;
|
||||
*linux*)
|
|
@ -1,39 +1,38 @@
|
|||
--- 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 @@
|
||||
--- iiimxcf/htt_xbe/src/watchdog.c.orig Tue Jul 13 07:25:40 2004
|
||||
+++ iiimxcf/htt_xbe/src/watchdog.c Sun Sep 5 05:43:59 2004
|
||||
@@ -187,11 +187,15 @@
|
||||
* Setup the signal handlers to monitor htt_server, htt_props
|
||||
* abnormal termination
|
||||
*/
|
||||
+#if defined(__FreeBSD__)
|
||||
+ setsid();
|
||||
+#else
|
||||
#ifdef SETPGRP_VOID
|
||||
grpid = setpgrp();
|
||||
#else
|
||||
grpid = setpgrp(0, 0);
|
||||
#endif
|
||||
+#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
|
||||
@@ -708,11 +712,15 @@
|
||||
*/
|
||||
sleep(1);
|
||||
|
||||
+#if defined(__FreeBSD__)
|
||||
+ setsid();
|
||||
+#else
|
||||
#ifdef SETPGRP_VOID
|
||||
setpgrp();
|
||||
#else
|
||||
setpgrp(0, 0);
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
#ifdef SunOS
|
||||
if (flag == OPENWIN_PATH) {
|
||||
putenv(OPENWIN_MOTIF_PRELOAD_ENV);
|
||||
@@ -734,7 +742,11 @@
|
||||
@@ -744,7 +752,11 @@
|
||||
perror("watchdog:fork\n");
|
||||
exit(errno);
|
||||
case 0:
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
--- 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 \
|
|
@ -1,11 +0,0 @@
|
|||
--- 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
|
||||
|
|
@ -1,7 +1,2 @@
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue