summaryrefslogtreecommitdiff
path: root/extra/qt4/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/qt4/PKGBUILD')
-rw-r--r--extra/qt4/PKGBUILD23
1 files changed, 19 insertions, 4 deletions
diff --git a/extra/qt4/PKGBUILD b/extra/qt4/PKGBUILD
index 807b5477e..7aeae075b 100644
--- a/extra/qt4/PKGBUILD
+++ b/extra/qt4/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=qt4
pkgver=4.8.5
pkgrel=6
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://qt-project.org/'
license=('GPL3' 'LGPL' 'FDL' 'custom')
pkgdesc='A cross-platform application and UI framework'
@@ -18,11 +18,14 @@ optdepends=('qtchooser: set the default Qt toolkit'
'postgresql-libs: PostgreSQL driver'
'libmariadbclient: MariaDB driver'
'unixodbc: ODBC driver'
- 'libfbclient: Firebird/iBase driver'
'libxinerama: Xinerama support'
'libxcursor: Xcursor support'
'libxfixes: Xfixes support'
'icu: Unicode support')
+if [ "$CARCH" != "mips64el" ]; then
+ makedepends+=('libfbclient')
+ optdepends+=('libfbclient: Firebird/iBase driver')
+fi
install="${pkgname}.install"
replaces=('qt<=4.8.4')
conflicts=('qt')
@@ -32,6 +35,7 @@ source=("http://download.qt-project.org/official_releases/qt/4.8/${pkgver}/${_pk
'qtconfig-qt4.desktop' 'assistant-qt4.desktop' 'designer-qt4.desktop'
'linguist-qt4.desktop' 'qdbusviewer-qt4.desktop'
'improve-cups-support.patch'
+ 'declarative-fix-sigbus.patch'
'qtbug-31579.patch' 'qtbug-32534.patch' 'qtbug-32908.patch')
md5sums=('1864987bdbb2f58f8ae8b350dfdbe133'
'a16638f4781e56e7887ff8212a322ecc'
@@ -40,6 +44,7 @@ md5sums=('1864987bdbb2f58f8ae8b350dfdbe133'
'0e384663d3dd32abe35f5331c4147569'
'b859c5673e5098c39f72b2252947049e'
'c439c7731c25387352d8453ca7574971'
+ 'aac963d05a9d5733e2bfce9e26607f51'
'6ed8d26a8e4a9bba1f6c08fb99cc8357'
'bb0e0fa6ba953fa590d81ac612374e11'
'db343dcae522bc90d802ad1e83b7f5dd')
@@ -50,6 +55,9 @@ prepare() {
# (FS#28381) (KDEBUG#180051)
patch -p1 -i "${srcdir}"/improve-cups-support.patch
+ # MIPS N32-specific fix, shouldn't affect correctness on other platforms.
+ patch -Np1 -i "${srcdir}/declarative-fix-sigbus.patch"
+
# (FS#36028) (QTBUG#31579)
patch -p1 -i "${srcdir}"/qtbug-31579.patch
# (FS#36394) (QTBUG#32534)
@@ -69,6 +77,12 @@ prepare() {
build() {
export QT4DIR="${srcdir}"/${_pkgfqn}
export LD_LIBRARY_PATH=${QT4DIR}/lib:${LD_LIBRARY_PATH}
+
+ if [ "${CARCH}" = "mips64el" ]; then
+ export CXXFLAGS="${CXXFLAGS} -fpermissive"
+ else
+ extra="-plugin-sql-ibase"
+ fi
cd ${_pkgfqn}
@@ -84,7 +98,7 @@ build() {
-sysconfdir /etc/xdg \
-examplesdir /usr/share/doc/qt4/examples \
-demosdir /usr/share/doc/qt4/demos \
- -plugin-sql-{psql,mysql,sqlite,odbc,ibase} \
+ -plugin-sql-{psql,mysql,sqlite,odbc} \
-system-sqlite \
-no-phonon \
-no-phonon-backend \
@@ -99,7 +113,8 @@ build() {
-optimized-qmake \
-reduce-relocations \
-dbus-linked \
- -no-openvg
+ -no-openvg \
+ $extra
make
}