From c8e4cedb30d9ce056b1a4f1c7841bcb9fa89be07 Mon Sep 17 00:00:00 2001 From: "Ryan P.C. McQuen" Date: Sat, 31 May 2014 06:31:33 +0700 Subject: network/licq: Patched to allow qt4-gui plugin to be built. Signed-off-by: Willy Sudiarto Raharjo --- network/licq/licq.SlackBuild | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'network') diff --git a/network/licq/licq.SlackBuild b/network/licq/licq.SlackBuild index 854cb9ecd3..850bc587e5 100644 --- a/network/licq/licq.SlackBuild +++ b/network/licq/licq.SlackBuild @@ -9,7 +9,7 @@ # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version, with the following exception: -# the text of the GPL license may be omitted.. +# the text of the GPL license may be omitted. # This program is distributed in the hope that it will be useful, but # without any warranty; without even the implied warranty of @@ -25,9 +25,9 @@ PRGNAM=licq VERSION=${VERSION:-1.8.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} -PLUGINS=${PLUGINS:-"auto-reply aosd"} +PLUGINS=${PLUGINS:-"aosd auto-reply forwarder msn rms qt4-gui icq"} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -73,17 +73,23 @@ find -L . \ mkdir -p build cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DCMAKE_BUILD_TYPE=Release .. - make VERBOSE=1 - make install DESTDIR=$PKG +cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DCMAKE_BUILD_TYPE=Release .. +make VERBOSE=1 +make install DESTDIR=$PKG cd ../plugins +## upstream fix: +## https://github.com/licq-im/licq/blob/master/qt4-gui/src/helpers/usercodec.h +## +sed -i "s/#include /#include \n\ +#include /g" ./qt4-gui/src/helpers/usercodec.h + for PLUG in $PLUGINS do cd $PLUG @@ -95,6 +101,7 @@ do -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_MODULE_PATH=$PKG/usr/share/licq/cmake \ + -DWITH_KDE=ON \ .. make VERBOSE=1 make install DESTDIR=$PKG -- cgit v1.2.3