summaryrefslogtreecommitdiff
path: root/extra/qt4/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/qt4/PKGBUILD')
-rw-r--r--extra/qt4/PKGBUILD27
1 files changed, 20 insertions, 7 deletions
diff --git a/extra/qt4/PKGBUILD b/extra/qt4/PKGBUILD
index 2ed9bc142..430e0d077 100644
--- a/extra/qt4/PKGBUILD
+++ b/extra/qt4/PKGBUILD
@@ -5,23 +5,26 @@
pkgname=qt4
pkgver=4.8.4
pkgrel=18
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://qt-project.org/'
license=('GPL3' 'LGPL')
pkgdesc='A cross-platform application and UI framework'
depends=('libtiff' 'libpng' 'libmng' 'sqlite' 'ca-certificates' 'dbus'
'fontconfig' 'libgl' 'libxrandr' 'libxv' 'libxi' 'alsa-lib'
'xdg-utils' 'hicolor-icon-theme' 'desktop-file-utils')
-makedepends=('postgresql-libs' 'mariadb' 'unixodbc' 'cups' 'gtk2' 'libfbclient'
+makedepends=('postgresql-libs' 'mariadb' 'unixodbc' 'cups' 'gtk2'
'mesa-libgl')
optdepends=('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"
options=('!libtool')
replaces=('qt<=4.8.4')
@@ -30,14 +33,16 @@ _pkgfqn="qt-everywhere-opensource-src-${pkgver}"
source=("http://releases.qt-project.org/${pkgname}/source/${_pkgfqn}.tar.gz"
'qtconfig-qt4.desktop' 'assistant-qt4.desktop' 'designer-qt4.desktop'
'linguist-qt4.desktop' 'qdbusviewer-qt4.desktop'
- 'improve-cups-support.patch')
+ 'improve-cups-support.patch'
+ 'declarative-fix-sigbus.patch')
md5sums=('89c5ecba180cae74c66260ac732dc5cb'
'a16638f4781e56e7887ff8212a322ecc'
'8a28b3f52dbeb685d4b69440b520a3e1'
'9727c406c240990870c905696a8c5bd1'
'0e384663d3dd32abe35f5331c4147569'
'b859c5673e5098c39f72b2252947049e'
- 'c439c7731c25387352d8453ca7574971')
+ 'c439c7731c25387352d8453ca7574971'
+ 'aac963d05a9d5733e2bfce9e26607f51')
build() {
cd ${_pkgfqn}
@@ -45,13 +50,20 @@ build() {
# (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"
+
export QT4DIR="${srcdir}"/${_pkgfqn}
export LD_LIBRARY_PATH=${QT4DIR}/lib:${LD_LIBRARY_PATH}
+ [ "${CARCH}" = "mips64el" ] && export CXXFLAGS="${CXXFLAGS} -fpermissive"
+
sed -i "s|-O2|${CXXFLAGS}|" mkspecs/common/{g++,gcc}-base.conf
sed -i "/^QMAKE_LFLAGS_RPATH/s| -Wl,-rpath,||g" mkspecs/common/gcc-base-unix.conf
sed -i "/^QMAKE_LFLAGS\s/s|+=|+= ${LDFLAGS}|g" mkspecs/common/gcc-base.conf
+ [ "$CARCH" != "mips64el" ] && extra="-plugin-sql-ibase"
+
./configure -confirm-license -opensource \
-prefix /usr \
-bindir /usr/lib/qt4/bin \
@@ -64,7 +76,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 \
@@ -79,7 +91,8 @@ build() {
-optimized-qmake \
-reduce-relocations \
-dbus-linked \
- -no-openvg
+ -no-openvg \
+ $extra
make
}