Tested on amd64.

$ cat DESCR:
scim-qtimm is a modular, extensible input method subsystem for Qt.

        Kevin
diff -ruN inputmethods.orig/scim-qtimm/Makefile inputmethods/scim-qtimm/Makefile
--- inputmethods.orig/scim-qtimm/Makefile	Thu Jan  1 08:00:00 1970
+++ inputmethods/scim-qtimm/Makefile	Mon Oct 27 18:36:43 2008
@@ -0,0 +1,50 @@
+# $OpenBSD$
+
+SHARED_ONLY=	Yes
+
+COMMENT=	scim plugin for qt
+
+DISTNAME=	scim-qtimm-0.9.4
+
+CATEGORIES=	inputmethods
+
+HOMEPAGE=	http://www.scim-im.org/
+
+MAINTAINER=	Kevin Lo <[EMAIL PROTECTED]>
+
+# GPLv2
+PERMIT_PACKAGE_CDROM=	Yes
+PERMIT_DISTFILES_CDROM=	Yes
+PERMIT_PACKAGE_FTP=	Yes
+PERMIT_DISTFILES_FTP=	Yes
+
+WANTLIB=	X11 Xau Xdmcp stdc++
+
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=scim/}
+EXTRACT_SUFX=	.tar.bz2
+
+MODULES=	devel/gettext \
+		x11/qt3
+LIB_DEPENDS=	scim-1.0,scim-x11utils-1.0::inputmethods/scim
+
+MODQT_MT=	Yes
+
+SUBST_VARS=     MODQT_PLUGINS
+
+USE_X11=	Yes
+USE_LIBTOOL=	Yes
+LIBTOOL_FLAGS=	--tag=disable-static
+
+CONFIGURE_STYLE=gnu
+CONFIGURE_ARGS=	${CONFIGURE_SHARED} \
+		--disable-static \
+		--disable-skim-support \
+		--with-qt-includes=${MODQT_INCDIR} \
+		--with-qt-libraries=${MODQT_LIBDIR}
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include \
+		-I${LOCALBASE}/include/libpng" \
+		LDFLAGS="-L${LOCALBASE}/lib" \
+		UIC_PATH=${MODQT_UIC} \
+		QTDIR=${MODQT_QTDIR}
+
+.include <bsd.port.mk>
diff -ruN inputmethods.orig/scim-qtimm/distinfo inputmethods/scim-qtimm/distinfo
--- inputmethods.orig/scim-qtimm/distinfo	Thu Jan  1 08:00:00 1970
+++ inputmethods/scim-qtimm/distinfo	Mon Oct 27 18:36:43 2008
@@ -0,0 +1,5 @@
+MD5 (scim-qtimm-0.9.4.tar.bz2) = pY6OfBjCeiCz6dlTscddlA==
+RMD160 (scim-qtimm-0.9.4.tar.bz2) = aGVgZgE5dfTMqIFvAWRDzNIs9+4=
+SHA1 (scim-qtimm-0.9.4.tar.bz2) = wJgHqLhb+AqfhRuOg0Z2c10yjeU=
+SHA256 (scim-qtimm-0.9.4.tar.bz2) = Ebr8zqXctxYNW7QHJ16sTrKxqO3yy8hwU9+FAsadjao=
+SIZE (scim-qtimm-0.9.4.tar.bz2) = 536983
diff -ruN inputmethods.orig/scim-qtimm/patches/patch-configure inputmethods/scim-qtimm/patches/patch-configure
--- inputmethods.orig/scim-qtimm/patches/patch-configure	Thu Jan  1 08:00:00 1970
+++ inputmethods/scim-qtimm/patches/patch-configure	Mon Oct 27 18:36:43 2008
@@ -0,0 +1,59 @@
+$OpenBSD$
+--- configure.orig	Wed Aug 17 07:30:35 2005
++++ configure	Mon Oct 27 17:37:08 2008
+@@ -10691,13 +10691,13 @@ fi
+   fi
+ 
+     if test -z "$LIBPTHREAD"; then
+-    echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
+-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
++    echo "$as_me:$LINENO: checking for pthread_create in -pthread" >&5
++echo $ECHO_N "checking for pthread_create in -pthread... $ECHO_C" >&6
+ if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
+   echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lpthread  $LIBS"
++LIBS="-pthread  $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h.  */
+ _ACEOF
+@@ -10756,16 +10756,16 @@ fi
+ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
+ echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
+ if test $ac_cv_lib_pthread_pthread_create = yes; then
+-  LIBPTHREAD="-lpthread"
++  LIBPTHREAD="-pthread"
+ fi
+ 
+   fi
+ 
+     if test -z "$LIBPTHREAD" ; then
+-    echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
+-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
++    echo "$as_me:$LINENO: checking for pthread_create in -pthread" >&5
++echo $ECHO_N "checking for pthread_create in -pthread... $ECHO_C" >&6
+     kde_safe_libs=$LIBS
+-    LIBS="$LIBS -lpthread"
++    LIBS="$LIBS -pthread"
+     cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h.  */
+ _ACEOF
+@@ -10806,7 +10806,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ 
+         echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+-        LIBPTHREAD="-lpthread"
++        LIBPTHREAD="-pthread"
+ else
+   echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+@@ -34444,7 +34444,7 @@ if test "${with_qt_dir+set}" = set; then
+ else
+   QTDIR_LOCAL=$QTDIR
+ fi
+-INPUTMETHODSDIR=$QTDIR_LOCAL/plugins/inputmethods
++INPUTMETHODSDIR=$QTDIR_LOCAL/plugins-33/inputmethods
+ 
+ 
+ if test "$kde_qtver" = "3"; then
diff -ruN inputmethods.orig/scim-qtimm/pkg/DESCR inputmethods/scim-qtimm/pkg/DESCR
--- inputmethods.orig/scim-qtimm/pkg/DESCR	Thu Jan  1 08:00:00 1970
+++ inputmethods/scim-qtimm/pkg/DESCR	Mon Oct 27 18:36:43 2008
@@ -0,0 +1 @@
+scim-qtimm is a modular, extensible input method subsystem for Qt. 
diff -ruN inputmethods.orig/scim-qtimm/pkg/PLIST inputmethods/scim-qtimm/pkg/PLIST
--- inputmethods.orig/scim-qtimm/pkg/PLIST	Thu Jan  1 08:00:00 1970
+++ inputmethods/scim-qtimm/pkg/PLIST	Mon Oct 27 18:36:43 2008
@@ -0,0 +1,7 @@
[EMAIL PROTECTED] $OpenBSD$
+${MODQT_PLUGINS}/inputmethods/libqscim.la
+${MODQT_PLUGINS}/inputmethods/libqscim.so
+share/locale/de/LC_MESSAGES/scim-qtimm.mo
+share/locale/fr/LC_MESSAGES/scim-qtimm.mo
+share/locale/it/LC_MESSAGES/scim-qtimm.mo
+share/locale/zh_CN/LC_MESSAGES/scim-qtimm.mo

Reply via email to