summaryrefslogtreecommitdiff
path: root/extra/kdenetwork
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-02 01:31:32 -0700
committerroot <root@rshg054.dnsready.net>2013-08-02 01:31:32 -0700
commitf7cd2a0a073da2373cd3f3c8e31515dd0b83b645 (patch)
treee28c5c379825afaf02a927a8f1d1b1fcb94c2362 /extra/kdenetwork
parent70ec180b1cca6eda5576597c2bfff9171f7815bf (diff)
Fri Aug 2 01:30:56 PDT 2013
Diffstat (limited to 'extra/kdenetwork')
-rw-r--r--extra/kdenetwork/PKGBUILD12
-rw-r--r--extra/kdenetwork/giflib5.patch67
2 files changed, 75 insertions, 4 deletions
diff --git a/extra/kdenetwork/PKGBUILD b/extra/kdenetwork/PKGBUILD
index 839aec6f8..7ffb94ae6 100644
--- a/extra/kdenetwork/PKGBUILD
+++ b/extra/kdenetwork/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 189607 2013-07-03 17:03:42Z andrea $
+# $Id: PKGBUILD 191923 2013-08-01 06:59:53Z bpiotrowski $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
@@ -11,7 +11,7 @@ pkgname=('kdenetwork-filesharing'
'kdenetwork-krdc'
'kdenetwork-krfb')
pkgver=4.10.5
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
url='http://www.kde.org'
license=('GPL' 'LGPL' 'FDL')
@@ -21,13 +21,17 @@ makedepends=('cmake' 'automoc4' 'boost' 'speex' 'libotr3' 'ppp'
'v4l-utils' 'libidn' 'qimageblitz' 'libxdamage' 'libgadu' 'libmsn'
'libktorrent' 'libmms' 'telepathy-qt')
source=("http://download.kde.org/stable/${pkgver}/src/${pkgbase}-${pkgver}.tar.xz"
- 'use-libotr3.patch')
+ 'use-libotr3.patch'
+ 'giflib5.patch')
sha1sums=('3ee86a1a227593e9f37881da3c1db1a3c384b2e4'
- '9c3b0ee15538fbfa36aa0a4748b1f6b5a7905384')
+ '9c3b0ee15538fbfa36aa0a4748b1f6b5a7905384'
+ '388319373e96e6f44446ea1132c35ae9f660e01c')
prepare() {
cd ${pkgbase}-${pkgver}
patch -p1 -i "${srcdir}"/use-libotr3.patch
+ cd kopete
+ patch -p1 -i "${srcdir}"/giflib5.patch
}
build() {
diff --git a/extra/kdenetwork/giflib5.patch b/extra/kdenetwork/giflib5.patch
new file mode 100644
index 000000000..231aefbc2
--- /dev/null
+++ b/extra/kdenetwork/giflib5.patch
@@ -0,0 +1,67 @@
+From: Raymond Wooninck <tittiatcoke@gmail.com>
+Date: Sun, 17 Mar 2013 12:24:09 +0000
+Subject: Enable building with giflib v5
+X-Git-Tag: v4.10.80
+X-Git-Url: http://quickgit.kde.org/?p=kopete.git&a=commitdiff&h=47ceec53aa5ee6b84a753fdbf735e44558513fe2
+---
+Enable building with giflib v5
+
+REVIEW: 7066
+
+svn path=/trunk/KDE/kdenetwork/kopete/; revision=1344846
+---
+
+
+--- a/protocols/wlm/wlmchatsession.cpp
++++ b/protocols/wlm/wlmchatsession.cpp
+@@ -65,6 +65,10 @@
+ #include "wlmchatsessioninkaction.h"
+ #ifdef HAVE_GIFLIB
+ #include <gif_lib.h>
++/* old giflib has no GIFLIB_MAJOR, define to avoid cpp warnings */
++#ifndef GIFLIB_MAJOR
++#define GIFLIB_MAJOR 4
++#endif
+ #endif
+
+ WlmChatSession::WlmChatSession (Kopete::Protocol * protocol,
+@@ -467,11 +471,15 @@
+ {
+ #ifdef HAVE_GIFLIB
+ #ifdef HAVE_GIF_ERROR_STRING // giflib 4.2.0+
++#if GIFLIB_MAJOR >= 5
++ fprintf(stderr, "GIF-LIB error (exact reporting not implemented)\n");
++#else
+ const char * errorString = GifErrorString();
+ if (errorString)
+ fprintf(stderr, "GIF-LIB error: %s\n", errorString);
+ else
+ fprintf(stderr, "GIF-LIB undefined error: %d\n", GifError());
++#endif
+ #else // older giflib versions, libungif
+ PrintGifError();
+ #endif // HAVE_GIF_ERROR_STRING
+@@ -483,6 +491,10 @@
+ WlmChatSession::convertToGif( const QPixmap & ink, QString filename)
+ {
+ #ifdef HAVE_GIFLIB
++#if GIFLIB_MAJOR >= 5
++#define FreeMapObject GifFreeMapObject
++#define MakeMapObject GifMakeMapObject
++#endif
+ int i, status;
+ GifFileType *GifFile;
+ ColorMapObject *screenColourmap;
+@@ -525,7 +537,11 @@
+ }
+ }
+
++#if GIFLIB_MAJOR >= 5
++ GifFile= EGifOpenFileName(QFile::encodeName(filename).constData(), 0, NULL);
++#else
+ GifFile= EGifOpenFileName(QFile::encodeName(filename).constData(), 0);
++#endif
+ if (!GifFile) {
+ FreeMapObject(imageColourmap);
+ FreeMapObject(screenColourmap);
+