summaryrefslogtreecommitdiff
path: root/extra/qt5/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/qt5/PKGBUILD')
-rw-r--r--extra/qt5/PKGBUILD36
1 files changed, 27 insertions, 9 deletions
diff --git a/extra/qt5/PKGBUILD b/extra/qt5/PKGBUILD
index 7203c3784..98161b0c4 100644
--- a/extra/qt5/PKGBUILD
+++ b/extra/qt5/PKGBUILD
@@ -3,10 +3,15 @@
pkgbase=qt5
pkgname=('qt5-base'
+ 'qt5-imageformats'
+ 'qt5-script'
+ 'qt5-svg'
+ 'qt5-xmlpatterns')
+# V8 is not ported yet to mips64el, don't build jsbackend and its reverse dependencies there.
+[ "$CARCH" != "mips64el" ] && pkgname+=(
'qt5-declarative'
'qt5-doc'
'qt5-graphicaleffects'
- 'qt5-imageformats'
'qt5-jsbackend'
'qt5-multimedia'
'qt5-quick1'
@@ -22,21 +27,22 @@ pkgname=('qt5-base'
'qt5-xmlpatterns')
pkgver=5.1.1
pkgrel=1
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://qt-project.org/'
license=('GPL3' 'LGPL' 'FDL' 'custom')
makedepends=('libxcb' 'xcb-proto' 'xcb-util' 'xcb-util-image' 'xcb-util-wm' 'xcb-util-keysyms'
'mesa-libgl' 'at-spi2-core' 'alsa-lib' 'gstreamer0.10-base-plugins'
'libjpeg-turbo' 'cups' 'libpulse' 'hicolor-icon-theme' 'desktop-file-utils'
- 'postgresql-libs' 'libmariadbclient' 'sqlite' 'unixodbc' 'libfbclient'
+ 'postgresql-libs' 'libmariadbclient' 'sqlite' 'unixodbc'
'python2' 'ruby' 'gperf' 'libxslt' 'libxcomposite' 'fontconfig'
'libmng' 'openal' 'gtk2' 'libxkbcommon')
+[ "$CARCH" != "mips64el" ] && makedepends+=('libfbclient')
groups=('qt' 'qt5')
options=('!libtool')
_pkgfqn="qt-everywhere-opensource-src-${pkgver}"
source=("http://download.qt-project.org/official_releases/qt/5.1/${pkgver}/single/${_pkgfqn}.tar.xz"
'assistant.desktop' 'designer.desktop' 'linguist.desktop' 'qdbusviewer.desktop'
- 'use-python2.patch'
+ 'use-python2.patch' 'qatomic-before-mips32.patch')
'bison3.patch')
md5sums=('697b7b8768ef8895e168366ab6b44760'
'b2897dd6a2967bccf8f10e397aafee55'
@@ -44,6 +50,7 @@ md5sums=('697b7b8768ef8895e168366ab6b44760'
'188da8f4c87316e730ebf1c6217bf5a0'
'322b419b16c75d4de0ee7ad0a246caa1'
'92831f79144d5cb8121915423ba47575'
+ '84d7fcc2b5f270f482d5522ae01c29e2'
'6b162cd2bc104f0ae83ca039401be7bf')
prepare() {
@@ -59,6 +66,9 @@ prepare() {
-e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
$(find . -name '*.py')
+ # Fix build without -march=mips32, mips64 or its superset.
+ patch -p1 -i "$srcdir/qatomic-before-mips32.patch"
+
# Fix build with bison 3.x
cd qtwebkit
patch -p1 -i "${srcdir}"/bison3.patch
@@ -71,6 +81,9 @@ build() {
export LD_LIBRARY_PATH="${QTDIR}"/qtbase/lib:"${QTDIR}"/qttools/lib:"${LD_LIBRARY_PATH}"
export QT_PLUGIN_PATH="${QTDIR}"/qtbase/plugins
+# disable firebird on mips64el
+ [ "$CARCH" != "mips64el" ] && extra="-plugin-sql-ibase"
+
PYTHON=/usr/bin/python2 ./configure -confirm-license -opensource \
-prefix /usr \
-bindir /usr/lib/qt/bin \
@@ -80,17 +93,21 @@ build() {
-datadir /usr/share/qt \
-sysconfdir /etc/xdg \
-examplesdir /usr/share/doc/qt/examples \
- -plugin-sql-{psql,mysql,sqlite,odbc,ibase} \
+ -plugin-sql-{psql,mysql,sqlite,odbc} \
-system-sqlite \
-openssl-linked \
-nomake examples \
-no-rpath \
-optimized-qmake \
-dbus-linked \
- -reduce-relocations
+ -reduce-relocations \
+ $extra
+
+ [ "$CARCH" = "mips64el" ] && modules="module-qtbase module-qtimageformats module-qtscript module-qtsvg module-qtxmlpatterns"
- make
+ make $modules
+if [ "$CARCH" != "mips64el" ]; then
# Fix paths
find "${QTDIR}" -name Makefile -exec sed -i "s|/usr/lib/qt/bin/qdoc|${QTDIR}/qtbase/bin/qdoc|g" {} +
find "${QTDIR}" -name Makefile.qmake-docs -exec sed -i "s|/usr/lib/qt/bin/qdoc|${QTDIR}/qtbase/bin/qdoc|g" {} +
@@ -99,6 +116,7 @@ build() {
sed -i "s|/usr/lib/qt/bin/qhelpgenerator|${QTDIR}/qttools/bin/qhelpgenerator|g" qtwebkit/Source/Makefile.api
make docs
+fi
}
package_qt5-base() {
@@ -108,8 +126,8 @@ package_qt5-base() {
'icu' 'qtchooser' 'libxkbcommon')
optdepends=('postgresql-libs: PostgreSQL driver'
'libmariadbclient: MariaDB driver'
- 'unixodbc: ODBC driver'
- 'libfbclient: Firebird/iBase driver')
+ 'unixodbc: ODBC driver')
+ [ "$CARCH" != "mips64el" ] && optdepends+=('libfbclient: Firebird/iBase driver')
conflicts=('qt')
cd ${_pkgfqn}/qtbase