1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

- Enable GUI Setup Tool

It does not depend on qinputcontextplugin.h, so we can build it.
- Bump PORTREVISION
This commit is contained in:
Rong-En Fan 2006-10-09 01:55:52 +00:00
parent 9b3f9ce1c2
commit c11a12d0f6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=175025
5 changed files with 52 additions and 5 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= oxim
PORTVERSION= 1.1.1
PORTREVISION= 1
CATEGORIES= chinese textproc
MASTER_SITES= ftp://ftp.opendesktop.org.tw/odp/OXIM/Source/ \
ftp://apt.nc.hcc.edu.tw/pub/mirror/opendesktop.org.tw/OXIM/Source/ \
@ -22,7 +23,8 @@ RUN_DEPENDS= zh-fireflyttf>=0:${PORTSDIR}/chinese/fireflyttf
OPTIONS= GTK2 "Enable GTK2 input method module" On \
CHEWING "Enable Chewing input module" On \
UNICODE "Enable Unicode input module" On
UNICODE "Enable Unicode input module" On \
SETUP "Enable GUI Setup Tool" On
USE_GCC= 3.2+
USE_ICONV= yes
@ -39,8 +41,7 @@ CONFIGURE_ARGS+=--disable-bimsphone-module \
--disable-static \
--with-conf-dir=${TARGETDIR}/etc/${PORTNAME}
# oxim requires qinputcontextplugin.h which only exists in Debian package
CONFIGURE_ARGS+=--disable-qt-immodule \
--disable-setup-tool
CONFIGURE_ARGS+=--disable-qt-immodule
.include <bsd.port.pre.mk>
@ -74,6 +75,23 @@ CONFIGURE_ARGS+= --disable-unicode-module
PLIST_SUB+= UNICODE="@comment "
.endif
.if !defined(WITHOUT_SETUP)
BUILD_DEPENDS+= qmake:${PORTSDIR}/devel/qmake
CONFIGURE_ARGS+= --enable-setup-tool
PLIST_SUB+= SETUP=""
USE_QT_VER= 3
.include "${PORTSDIR}/Mk/bsd.kde.mk"
QMAKESPEC?= freebsd-g++
CONFIGURE_ENV+= LOCALBASE="${LOCALBASE}" QTDIR="${QT_PREFIX}"
MAKE_ARGS+= LOCALBASE="${LOCALBASE}" MAKE="${MAKE}" QMAKESPEC="${QMAKESPEC}"
.else
CONFIGURE_ARGS+= --disable-setup-tool
PLIST_SUB+= SETUP="@comment "
.endif
# TODO WITHOUT_NLS knob
#.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes

View File

@ -1,5 +1,5 @@
--- Makefile.in.orig Fri Sep 8 05:15:45 2006
+++ Makefile.in Fri Sep 8 05:16:05 2006
--- ./Makefile.in.orig Fri Sep 22 17:20:10 2006
+++ ./Makefile.in Mon Oct 9 09:38:36 2006
@@ -672,8 +672,6 @@

View File

@ -0,0 +1,15 @@
--- ./configure.orig Fri Sep 22 17:19:58 2006
+++ ./configure Mon Oct 9 09:38:36 2006
@@ -29055,9 +29055,9 @@
echo "$as_me:$LINENO: checking for qmake" >&5
echo $ECHO_N "checking for qmake... $ECHO_C" >&6
- if test -f ${qt_dir}/bin/qmake ; then
- echo "$as_me:$LINENO: result: ${qt_dir}/bin/qmake" >&5
-echo "${ECHO_T}${qt_dir}/bin/qmake" >&6
+ if test -f ${LOCALBASE}/bin/qmake ; then
+ echo "$as_me:$LINENO: result: ${LOCALBASE}/bin/qmake" >&5
+echo "${ECHO_T}${LOCALBASE}/bin/qmake" >&6
have_qmake="yes"
else
echo "$as_me:$LINENO: result: not found!" >&5

View File

@ -0,0 +1,13 @@
--- ./src/util/oxim-setup/Makefile.in.orig Fri Sep 22 17:20:09 2006
+++ ./src/util/oxim-setup/Makefile.in Mon Oct 9 09:39:52 2006
@@ -474,8 +474,8 @@
@ENABLE_SETUP_TOOL_TRUE@ main.cpp
@ENABLE_SETUP_TOOL_TRUE@oxim-setup: oxim-setup.pro
-@ENABLE_SETUP_TOOL_TRUE@ $(QTDIR)/bin/qmake oxim-setup.pro -o Makefile.qt
-@ENABLE_SETUP_TOOL_TRUE@ QTDIR=$(QTDIR) make -f Makefile.qt
+@ENABLE_SETUP_TOOL_TRUE@ QMAKESPEC=$(QMAKESPEC) $(LOCALBASE)/bin/qmake oxim-setup.pro -o Makefile.qt
+@ENABLE_SETUP_TOOL_TRUE@ QTDIR=$(QTDIR) $(MAKE) -f Makefile.qt
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -1,5 +1,6 @@
bin/oxim
bin/oxim-conv
%%SETUP%%bin/oxim-setup
bin/oxim2tab
etc/oxim/locale.list
etc/oxim/oxim.conf