summaryrefslogtreecommitdiff
path: root/community/goldendict
diff options
context:
space:
mode:
Diffstat (limited to 'community/goldendict')
-rw-r--r--community/goldendict/PKGBUILD2
-rw-r--r--community/goldendict/goldendict-1.0.1-gcc-4.7.patch40
2 files changed, 41 insertions, 1 deletions
diff --git a/community/goldendict/PKGBUILD b/community/goldendict/PKGBUILD
index cdf2a4650..a615d0664 100644
--- a/community/goldendict/PKGBUILD
+++ b/community/goldendict/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=goldendict
pkgver=1.0.1
pkgrel=6
pkgdesc="Feature-rich dictionary lookup program"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://goldendict.berlios.de/"
license=('GPL3')
depends=('hunspell' 'libvorbis' 'libxtst' 'libzip' 'qtwebkit' 'phonon')
diff --git a/community/goldendict/goldendict-1.0.1-gcc-4.7.patch b/community/goldendict/goldendict-1.0.1-gcc-4.7.patch
new file mode 100644
index 000000000..24995a221
--- /dev/null
+++ b/community/goldendict/goldendict-1.0.1-gcc-4.7.patch
@@ -0,0 +1,40 @@
+From b00d081da20b9a6b257573c6b23a6bc640c4dab1 Mon Sep 17 00:00:00 2001
+From: Michael Palimaka <kensington@gentoo.org>
+Date: Fri, 20 Jul 2012 03:27:38 +1000
+Subject: [PATCH] Fix build with GCC 4.7 by adding missing includes.
+
+---
+ processwrapper.cc | 4 ++++
+ qtsingleapplication/src/qtlocalpeer.cpp | 1 +
+ 2 files changed, 5 insertions(+)
+
+diff --git a/processwrapper.cc b/processwrapper.cc
+index f7f3f19..86b985d 100644
+--- a/processwrapper.cc
++++ b/processwrapper.cc
+@@ -2,6 +2,10 @@
+
+ #include <QtCore>
+
++#if defined(Q_OS_UNIX)
++#include <unistd.h>
++#endif
++
+ #ifdef Q_OS_WIN32
+
+ #include <windows.h>
+diff --git a/qtsingleapplication/src/qtlocalpeer.cpp b/qtsingleapplication/src/qtlocalpeer.cpp
+index 382d182..506c142 100644
+--- a/qtsingleapplication/src/qtlocalpeer.cpp
++++ b/qtsingleapplication/src/qtlocalpeer.cpp
+@@ -50,6 +50,7 @@ static PProcessIdToSessionId pProcessIdToSessionId = 0;
+ #endif
+ #if defined(Q_OS_UNIX)
+ #include <time.h>
++#include <unistd.h>
+ #endif
+
+ namespace QtLP_Private {
+--
+1.7.11.1
+