summaryrefslogtreecommitdiffstats
path: root/misc/fcitx-mozc
diff options
context:
space:
mode:
author pghvlaans2021-04-30 15:10:07 +0200
committer Willy Sudiarto Raharjo2021-05-02 12:21:05 +0200
commit31764a7ac6caa181ee9755c292f3f961b8e304a5 (patch)
tree0e92af7ca065428355a91280eb091484a2b596bd /misc/fcitx-mozc
parentfa03de9437ee82c1698255653f67a76a488c322d (diff)
downloadslackbuilds-31764a7ac6caa181ee9755c292f3f961b8e304a5.tar.gz
misc/fcitx-mozc: Disable building against qt-4.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/fcitx-mozc')
-rw-r--r--misc/fcitx-mozc/fcitx-mozc.SlackBuild10
1 files changed, 3 insertions, 7 deletions
diff --git a/misc/fcitx-mozc/fcitx-mozc.SlackBuild b/misc/fcitx-mozc/fcitx-mozc.SlackBuild
index 1f5008c57e..63506f9290 100644
--- a/misc/fcitx-mozc/fcitx-mozc.SlackBuild
+++ b/misc/fcitx-mozc/fcitx-mozc.SlackBuild
@@ -57,10 +57,6 @@ fi
set -e
-# paramater of Qt dir.
-RCC_LOC=`pkg-config QtCore --variable=rcc_location`
-QT4DIR=${RCC_LOC%%/bin/rcc}
-QT4I=`pkg-config QtGui --cflags-only-I`
BLDTYPE=Release
# source rev. and version.
@@ -126,14 +122,14 @@ done
# build package
echo "build package..."
-CFLAGS="${CFLAGS} $QT4I -fvisibility=hidden"
-CXXFLAGS="${CXXFLAGS} $QT4I -fvisibility=hidden"
+CFLAGS="${CFLAGS} -fvisibility=hidden"
+CXXFLAGS="${CXXFLAGS} -fvisibility=hidden"
cd $BLDBASEDIR/mozc/src
_targets="server/server.gyp:mozc_server gui/gui.gyp:mozc_tool unix/fcitx/fcitx.gyp:fcitx-mozc"
-QTDIR=$QT4DIR GYP_DEFINES="document_dir=/usr/share/licenses/$pkgname use_libzinnia=1" python2 build_mozc.py gyp
+GYP_DEFINES="document_dir=/usr/share/licenses/$pkgname use_libzinnia=1" python2 build_mozc.py gyp --noqt
sed -i 's|command = $cxx -MMD -MF $out.d $defines $includes $cflags $cflags_cc $cflags_pch_cc -c $in -o $out|command = $cxx -MMD -MF $out.d $defines $includes -D__STRICT_ANSI__ $cflags $cflags_cc $cflags_pch_cc -c $in -o $out|' out_linux/Release/build.ninja
python2 build_mozc.py build -c $BLDTYPE $_targets