aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-09-09 08:06:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-09-09 08:15:08 +0000
commit967af83a41c09a348aad6f00fc455129462b5cad (patch)
tree9ed85cb4c7156406c65f33806d20d648e84c51bc /main
parent7dbda83b9c37a3554800c222ad674437b609966d (diff)
downloadaports-967af83a41c09a348aad6f00fc455129462b5cad.tar.bz2
aports-967af83a41c09a348aad6f00fc455129462b5cad.tar.xz
main/qt5-*: moved from testing
Diffstat (limited to 'main')
-rw-r--r--main/qt5-qtbase/APKBUILD197
-rw-r--r--main/qt5-qtbase/qt-musl-iconv-no-bom.patch11
-rw-r--r--main/qt5-qtbase/qt-musl-socklen.patch14
-rw-r--r--main/qt5-qtbase/xcb-193.patch13
-rw-r--r--main/qt5-qtdeclarative/APKBUILD49
-rw-r--r--main/qt5-qtgraphicaleffects/APKBUILD47
-rw-r--r--main/qt5-qtimageformats/APKBUILD47
-rw-r--r--main/qt5-qtmultimedia/APKBUILD49
-rw-r--r--main/qt5-qtquick1/APKBUILD48
-rw-r--r--main/qt5-qtquickcontrols/APKBUILD49
-rw-r--r--main/qt5-qtscript/APKBUILD48
-rw-r--r--main/qt5-qtsvg/APKBUILD51
-rw-r--r--main/qt5-qttools/APKBUILD148
-rw-r--r--main/qt5-qttools/assistant.desktop8
-rw-r--r--main/qt5-qttools/designer.desktop9
-rw-r--r--main/qt5-qttools/linguist.desktop9
-rw-r--r--main/qt5-qttools/qdbusviewer.desktop10
-rw-r--r--main/qt5-qttranslations/APKBUILD49
-rw-r--r--main/qt5-qtwebkit/APKBUILD87
-rw-r--r--main/qt5-qtwebkit/fix-execinfo.patch20
-rw-r--r--main/qt5-qtwebkit/fix-rpath.patch11
-rw-r--r--main/qt5-qtwebkit/pic.patch11
22 files changed, 985 insertions, 0 deletions
diff --git a/main/qt5-qtbase/APKBUILD b/main/qt5-qtbase/APKBUILD
new file mode 100644
index 0000000000..95b121bcf2
--- /dev/null
+++ b/main/qt5-qtbase/APKBUILD
@@ -0,0 +1,197 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=qt5-qtbase
+pkgver=5.3.1
+_ver=${pkgver/_/-}
+_ver=${_ver/beta0/beta}
+_ver=${_ver/rc0/rc}
+_V=${_ver/rc/RC}
+pkgrel=0
+pkgdesc="Qt5 - QtBase components"
+url="http://qt-project.org/"
+arch="all"
+license="LGPLv2 with exceptions or GPLv3 with exceptions"
+depends=""
+depends_dev="mesa-dev libice-dev libsm-dev libx11-dev libxext-dev
+ openssl-dev fontconfig-dev freetype-dev glib-dev libpng-dev zlib-dev
+ sqlite-dev dbus-dev"
+makedepends="$depends_dev
+ bison
+ cups-dev
+ flex
+ freetds-dev
+ gawk
+ gperf
+ gtk+2.0-dev
+ hicolor-icon-theme
+ icu-dev
+ libjpeg-turbo-dev
+ libxkbcommon-dev
+ libxi-dev
+ libxrandr-dev
+ libxrender-dev
+ libxslt-dev
+ libxv-dev
+ mysql-dev
+ pcre-dev
+ postgresql-dev
+ udev-dev
+ unixodbc-dev
+ xcb-util-dev
+ xcb-util-image-dev
+ xcb-util-keysyms-dev
+ xcb-util-wm-dev
+ "
+install=""
+subpackages="$pkgname-dev $pkgname-doc
+ $pkgname-sqlite $pkgname-odbc $pkgname-postgresql $pkgname-mysql
+ $pkgname-tds $pkgname-x11"
+case $pkgver in
+*_beta*|*_rc*) _rel=development_releases;;
+*) _rel=official_releases;;
+esac
+source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtbase-opensource-src-$_V.tar.xz
+ qt-musl-iconv-no-bom.patch
+ qt-musl-socklen.patch
+ "
+
+_builddir="$srcdir"/qtbase-opensource-src-$_V
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch)
+ msg "Applying $i"
+ patch -p1 -i "$srcdir"/$i || return 1
+ ;;
+ esac
+ done
+ sed -i -e "s|-O2|$CXXFLAGS|" \
+ -e "/^QMAKE_RPATH/s| -Wl,-rpath,||g" \
+ -e "/^QMAKE_LFLAGS\s/s|+=|+= $LDFLAGS|g" \
+ mkspecs/common/*.conf || return 1
+}
+
+build() {
+ cd "$_builddir"
+ ./configure -confirm-license -opensource \
+ -archdatadir /usr/lib/qt5 \
+ -datadir /usr/share/qt5 \
+ -dbus-linked \
+ -docdir /usr/share/doc/qt5 \
+ -examplesdir /usr/share/doc/qt5/examples \
+ -glib \
+ -gtkstyle \
+ -icu \
+ -importdir /usr/lib/qt5/imports \
+ -largefile \
+ -no-openvg \
+ -no-rpath \
+ -no-separate-debug-info \
+ -nomake examples \
+ -opengl \
+ -openssl-linked \
+ -optimized-qmake \
+ -plugin-sql-mysql \
+ -plugin-sql-odbc \
+ -plugin-sql-psql \
+ -plugin-sql-sqlite \
+ -plugin-sql-tds \
+ -plugindir /usr/lib/qt5/plugins \
+ -prefix /usr \
+ -reduce-relocations \
+ -silent \
+ -sysconfdir /etc \
+ -system-libjpeg \
+ -system-libpng \
+ -system-pcre \
+ -system-sqlite \
+ -system-xcb \
+ -system-zlib \
+ -translationdir /usr/share/qt5/translations \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make INSTALL_ROOT="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+_mv_files() {
+ local i
+ for i; do
+ mkdir -p "$subpkgdir"/${i%/*}
+ mv "$pkgdir"/$i "$subpkgdir"/$i || return 1
+ done
+}
+
+dev() {
+ cd "$pkgdir"
+ _mv_files usr/lib/qt5/mkspecs \
+ usr/lib/cmake \
+ usr/bin \
+ $(find usr/ -name '*.prl') \
+ || return 1
+ default_dev
+}
+
+sqlite() {
+ pkgdesc="SQLite driver for Qt5's SQL classes"
+ cd "$pkgdir"
+ _mv_files usr/lib/qt5/plugins/sqldrivers/libqsqlite*
+}
+
+odbc() {
+ pkgdesc="ODBC driver for Qt5's SQL classes"
+ cd "$pkgdir"
+ _mv_files usr/lib/qt5/plugins/sqldrivers/libqsqlodbc*
+}
+
+postgresql() {
+ pkgdesc="PostgreSQL driver for Qt5's SQL classes"
+ cd "$pkgdir"
+ _mv_files usr/lib/qt5/plugins/sqldrivers/libqsqlpsql*
+}
+
+mysql() {
+ pkgdesc="MySQL driver for Qt5's SQL classes"
+ cd "$pkgdir"
+ _mv_files usr/lib/qt5/plugins/sqldrivers/libqsqlmysql*
+}
+
+tds() {
+ pkgdesc="TDS driver for Qt5's SQL classes"
+ cd "$pkgdir"
+ _mv_files usr/lib/qt5/plugins/sqldrivers/libqsqltds*
+}
+
+x11() {
+ pkgdesc="Qt5 GUI-related libraries"
+ depends="hicolor-icon-theme"
+ cd "$pkgdir"
+ _mv_files \
+ usr/lib/libQt5Gui.so.* \
+ usr/lib/libQt5Widgets.so.* \
+ usr/lib/libQt5OpenGL.so.* \
+ usr/lib/libQt5PrintSupport.so.* \
+ usr/lib/qt5/plugins/accessible \
+ usr/lib/qt5/plugins/generic \
+ usr/lib/qt5/plugins/image* \
+ usr/lib/qt5/plugins/platform* \
+ usr/lib/qt5/plugins/printsupport* \
+ || return 1
+
+ scanelf -Rn usr/ | egrep '(libX|libQt5Gui|libGL)' && return 1
+ return 0
+}
+
+md5sums="572c9953847d391f2d33b420bbcdca46 qtbase-opensource-src-5.3.1.tar.xz
+077e31e0cb0d25637a3b3638fffbef3c qt-musl-iconv-no-bom.patch
+bc83dc99f866423b4803453a0e2949d2 qt-musl-socklen.patch"
+sha256sums="7b5a138d30d7c0228a51084407d5210f6d1acfbee2f95b87f189872cfcd3a569 qtbase-opensource-src-5.3.1.tar.xz
+40b337c16bbb1d259f315fe5a1b110f9917223aee53b82809934efa4fa5e62a3 qt-musl-iconv-no-bom.patch
+e70bdddf67c358c02099bebee460e3c5456666562bff9ef9ebaacf9f4ea7a6df qt-musl-socklen.patch"
+sha512sums="b867d8c2f37007770d8105fea1820f8a2b1c2006474c28fbdc29fb7f7dcf9eee0960752805c833639eb7b0fd92c670f552bbc4a7064d0daf5bbac875d081500a qtbase-opensource-src-5.3.1.tar.xz
+a185ea5e984d2636e3f9f6c4ed8fad66a17575da0679724da60a3dc519468ab45aa9369f43ce5c64f07cb730910e36623164aefafca3aabe0359c62becca870e qt-musl-iconv-no-bom.patch
+fb621e9e5a60bb5bd4ad86fa41772fd8db7e8ad3a6e8d36a3d720d493d462db618e4bf3187e3eb66d123fceca64bbbd2df2afba506cc4c79bafa456cd67e82aa qt-musl-socklen.patch"
diff --git a/main/qt5-qtbase/qt-musl-iconv-no-bom.patch b/main/qt5-qtbase/qt-musl-iconv-no-bom.patch
new file mode 100644
index 0000000000..35380ad671
--- /dev/null
+++ b/main/qt5-qtbase/qt-musl-iconv-no-bom.patch
@@ -0,0 +1,11 @@
+--- qt-everywhere-opensource-src-4.8.5/src/corelib/codecs/qiconvcodec.cpp.orig
++++ qt-everywhere-opensource-src-4.8.5/src/corelib/codecs/qiconvcodec.cpp
+@@ -62,7 +62,7 @@
+ #elif defined(Q_OS_AIX)
+ # define NO_BOM
+ # define UTF16 "UCS-2"
+-#elif defined(Q_OS_FREEBSD) || defined(Q_OS_MAC)
++#elif defined(Q_OS_FREEBSD) || defined(Q_OS_MAC) || (defined(Q_OS_LINUX) && !defined(__GLIBC__))
+ # define NO_BOM
+ # if Q_BYTE_ORDER == Q_BIG_ENDIAN
+ # define UTF16 "UTF-16BE"
diff --git a/main/qt5-qtbase/qt-musl-socklen.patch b/main/qt5-qtbase/qt-musl-socklen.patch
new file mode 100644
index 0000000000..90b9ccda08
--- /dev/null
+++ b/main/qt5-qtbase/qt-musl-socklen.patch
@@ -0,0 +1,14 @@
+--- qt-everywhere-opensource-src-4.8.5/mkspecs/linux-g++/qplatformdefs.h.orig
++++ qt-everywhere-opensource-src-4.8.5/mkspecs/linux-g++/qplatformdefs.h
+@@ -86,11 +86,7 @@
+
+ #undef QT_SOCKLEN_T
+
+-#if defined(__GLIBC__) && (__GLIBC__ >= 2)
+ #define QT_SOCKLEN_T socklen_t
+-#else
+-#define QT_SOCKLEN_T int
+-#endif
+
+ #if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
+ #define QT_SNPRINTF ::snprintf
diff --git a/main/qt5-qtbase/xcb-193.patch b/main/qt5-qtbase/xcb-193.patch
new file mode 100644
index 0000000000..5ad3623cba
--- /dev/null
+++ b/main/qt5-qtbase/xcb-193.patch
@@ -0,0 +1,13 @@
+diff --git a/src/plugins/platforms/xcb/qxcbconnection.cpp b/src/plugins/platforms/xcb/qxcbconnection.cpp
+index cc8c42f..d03ea6f 100644
+--- a/src/plugins/platforms/xcb/qxcbconnection.cpp
++++ b/src/plugins/platforms/xcb/qxcbconnection.cpp
+@@ -1752,7 +1752,7 @@ bool QXcbConnection::xi2GetValuatorValueIfSet(void *event, int valuatorNum, doub
+ bool QXcbConnection::xi2PrepareXIGenericDeviceEvent(xcb_ge_event_t *event, int opCode)
+ {
+ // xGenericEvent has "extension" on the second byte, xcb_ge_event_t has "pad0".
+- if (event->pad0 == opCode) {
++ if (event->extension == opCode) {
+ // xcb event structs contain stuff that wasn't on the wire, the full_sequence field
+ // adds an extra 4 bytes and generic events cookie data is on the wire right after the standard 32 bytes.
+ // Move this data back to have the same layout in memory as it was on the wire
diff --git a/main/qt5-qtdeclarative/APKBUILD b/main/qt5-qtdeclarative/APKBUILD
new file mode 100644
index 0000000000..7ee2e194b3
--- /dev/null
+++ b/main/qt5-qtdeclarative/APKBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=qt5-qtdeclarative
+pkgver=5.3.1
+_ver=${pkgver/_/-}
+_ver=${_ver/beta0/beta}
+_ver=${_ver/rc0/rc}
+_V=${_ver/rc/RC}
+pkgrel=0
+pkgdesc="Qt5 - QtDeclarative component"
+url="http://qt-project.org/"
+arch="all"
+license="LGPLv2 with exceptions or GPLv3 with exceptions"
+depends=""
+depends_dev=""
+makedepends="$depends_dev qt5-qtbase-dev"
+install=""
+subpackages="$pkgname-dev"
+
+case $pkgver in
+*_beta*|*_rc*) _rel=development_releases;;
+*) _rel=official_releases;;
+esac
+source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtdeclarative-opensource-src-$_V.tar.xz"
+
+_builddir="$srcdir"/qtdeclarative-opensource-src-$_V
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ qmake && make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make install INSTALL_ROOT="$pkgdir" || return 1
+ rm "$pkgdir"/usr/lib/*.la || return 1
+}
+
+md5sums="765579f4f64cb64a812c8a80104eb8ec qtdeclarative-opensource-src-5.3.1.tar.xz"
+sha256sums="9a80d401dfbb64f109abf210cb32775a102f7b2420b3a3175b8dab0792220380 qtdeclarative-opensource-src-5.3.1.tar.xz"
+sha512sums="ed062c41b737b189986113de37706b3643fd5f12978181ff6ccfa9d444ef11f31f6c9de8d55b24001614a321425d7142208a976f8661c9dae702a6bfeec7c999 qtdeclarative-opensource-src-5.3.1.tar.xz"
diff --git a/main/qt5-qtgraphicaleffects/APKBUILD b/main/qt5-qtgraphicaleffects/APKBUILD
new file mode 100644
index 0000000000..3571fda562
--- /dev/null
+++ b/main/qt5-qtgraphicaleffects/APKBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=qt5-qtgraphicaleffects
+pkgver=5.3.1
+_ver=${pkgver/_/-}
+_ver=${_ver/beta0/beta}
+_ver=${_ver/rc0/rc}
+_V=${_ver/rc/RC}
+pkgrel=0
+pkgdesc="Qt5 - QtGraphicalEffects component"
+url="http://qt-project.org/"
+arch="all"
+license="LGPLv2 with exceptions or GPLv3 with exceptions"
+depends=""
+depends_dev=""
+makedepends="$depends_dev qt5-qtbase-dev"
+install=""
+subpackages=""
+case $pkgver in
+*_beta*|*_rc*) _rel=development_releases;;
+*) _rel=official_releases;;
+esac
+source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtgraphicaleffects-opensource-src-$_V.tar.xz"
+
+_builddir="$srcdir"/qtgraphicaleffects-opensource-src-$_V
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ qmake && make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make install INSTALL_ROOT="$pkgdir" || return 1
+}
+
+md5sums="bed5b36e721de1e356b879e5c811d799 qtgraphicaleffects-opensource-src-5.3.1.tar.xz"
+sha256sums="53d8a4846f1fefb13aba4cebf3d3f808df69ec187cc435e895eb34152c4e860f qtgraphicaleffects-opensource-src-5.3.1.tar.xz"
+sha512sums="88cbb9a2ea82c4fb5cdd3f000d34aa09fd46b544d2f7b800496c23f439fdbc02ee6753288c0d6b4e067290155a5b62cf10ca1e58e8a25e68529c8e59be5b7162 qtgraphicaleffects-opensource-src-5.3.1.tar.xz"
diff --git a/main/qt5-qtimageformats/APKBUILD b/main/qt5-qtimageformats/APKBUILD
new file mode 100644
index 0000000000..b0ad5da1b2
--- /dev/null
+++ b/main/qt5-qtimageformats/APKBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=qt5-qtimageformats
+pkgver=5.3.1
+_ver=${pkgver/_/-}
+_ver=${_ver/beta0/beta}
+_ver=${_ver/rc0/rc}
+_V=${_ver/rc/RC}
+pkgrel=0
+pkgdesc="Qt5 - QtImageFormats component"
+url="http://qt-project.org/"
+arch="all"
+license="LGPLv2 with exceptions or GPLv3 with exceptions"
+depends=""
+depends_dev=""
+makedepends="$depends_dev qt5-qtbase-dev libmng-dev tiff-dev"
+install=""
+subpackages=""
+case $pkgver in
+*_beta*|*_rc*) _rel=development_releases;;
+*) _rel=official_releases;;
+esac
+source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtimageformats-opensource-src-$_V.tar.xz"
+
+_builddir="$srcdir"/qtimageformats-opensource-src-$_V
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ qmake && make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make install INSTALL_ROOT="$pkgdir"
+}
+
+md5sums="8bf9b65e5a586091d0ce9f9107367f4a qtimageformats-opensource-src-5.3.1.tar.xz"
+sha256sums="62e790029ddf0c5eea7623958ef97144b3c94113cab1e9fa5fbf326625dba3bf qtimageformats-opensource-src-5.3.1.tar.xz"
+sha512sums="e08377523705ebbf11fe4473efac60e57662ff90ffd943b70b55278ac12ddc59f0bbe894b0cccd03c0262be20e4bc88056729d8d2f2fe2aa44cc262021ea603f qtimageformats-opensource-src-5.3.1.tar.xz"
diff --git a/main/qt5-qtmultimedia/APKBUILD b/main/qt5-qtmultimedia/APKBUILD
new file mode 100644
index 0000000000..4940446512
--- /dev/null
+++ b/main/qt5-qtmultimedia/APKBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=qt5-qtmultimedia
+pkgver=5.3.1
+_ver=${pkgver/_/-}
+_ver=${_ver/beta0/beta}
+_ver=${_ver/rc0/rc}
+_V=${_ver/rc/RC}
+pkgrel=0
+pkgdesc="Qt5 - Multimedia support"
+url="http://qt-project.org/"
+arch="all"
+license="LGPLv2 with exceptions or GPLv3 with exceptions"
+depends=""
+depends_dev=""
+makedepends="$depends_dev qt5-qtbase-dev qt5-qtdeclarative-dev
+ alsa-lib-dev libxv-dev gstreamer0.10-dev gst-plugins-base0.10-dev"
+install=""
+subpackages="$pkgname-dev"
+case $pkgver in
+*_beta*|*_rc*) _rel=development_releases;;
+*) _rel=official_releases;;
+esac
+source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtmultimedia-opensource-src-$_V.tar.xz"
+
+_builddir="$srcdir"/qtmultimedia-opensource-src-$_V
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ qmake && make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make install INSTALL_ROOT="$pkgdir" || return 1
+ rm "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="b373739f085207dda92b3399d477faf8 qtmultimedia-opensource-src-5.3.1.tar.xz"
+sha256sums="c4108979f869645d91d7bcc2004b4bcfbae7332c1281ed5697a551a0d046e98c qtmultimedia-opensource-src-5.3.1.tar.xz"
+sha512sums="c2c758ed96c59f1d16ffbba60941ba5266cd7869da816a21e8aba042de641a2ed8cccb528966db73b8c256db1d08fd3e172d272b9ba1bfee7b8b4a204e4964f3 qtmultimedia-opensource-src-5.3.1.tar.xz"
diff --git a/main/qt5-qtquick1/APKBUILD b/main/qt5-qtquick1/APKBUILD
new file mode 100644
index 0000000000..bee02d24d7
--- /dev/null
+++ b/main/qt5-qtquick1/APKBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=qt5-qtquick1
+pkgver=5.3.1
+_ver=${pkgver/_/-}
+_ver=${_ver/beta0/beta}
+_ver=${_ver/rc0/rc}
+_V=${_ver/rc/RC}
+pkgrel=0
+pkgdesc="A declarative language for describing user interfaces in Qt5"
+url="http://qt-project.org/"
+arch="all"
+license="LGPLv2 with exceptions or GPLv3 with exceptions"
+depends=""
+depends_dev="qt5-qtbase-dev qt5-qtscript-dev mesa-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev"
+case $pkgver in
+*_beta*|*_rc*) _rel=development_releases;;
+*) _rel=official_releases;;
+esac
+source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtquick1-opensource-src-$_V.tar.xz"
+
+_builddir="$srcdir"/qtquick1-opensource-src-$_V
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ qmake && make
+}
+
+package() {
+ cd "$_builddir"
+ make install INSTALL_ROOT="$pkgdir" || return 1
+ rm "$pkgdir"/usr/lib/*.la || return 1
+}
+
+md5sums="401ebe552dc76041e2485507ecbdfc80 qtquick1-opensource-src-5.3.1.tar.xz"
+sha256sums="44902d12a0a711e39f611db1cedff4e4144c21d9f0d6527181a132224381191f qtquick1-opensource-src-5.3.1.tar.xz"
+sha512sums="f6e3473e38d198961f3a93a9ab4ac34dbdd2b3f92fca7aa28e4b0d13f98d1dfefd12656ca0f7ead3f00e2b37e1fea61b30dfedf351ad65de138af954c2cb7d82 qtquick1-opensource-src-5.3.1.tar.xz"
diff --git a/main/qt5-qtquickcontrols/APKBUILD b/main/qt5-qtquickcontrols/APKBUILD
new file mode 100644
index 0000000000..3e9707ca90
--- /dev/null
+++ b/main/qt5-qtquickcontrols/APKBUILD
@@ -0,0 +1,49 @@
+# Maintainer:
+pkgname=qt5-qtquickcontrols
+pkgver=5.3.1
+_ver=${pkgver/_/-}
+_ver=${_ver/beta0/beta}
+_ver=${_ver/rc0/rc}
+_V=${_ver/rc/RC}
+
+pkgrel=0
+pkgdesc="Qt5 - module with set of QtQuick controls"
+url="http://qt-project.org/"
+arch="all"
+license="BSD and (LGPLv2 with exceptions or GPLv3 with exceptions) and GFDL"
+depends=""
+depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev"
+makedepends="$depends_dev"
+install=""
+subpackages=""
+case $pkgver in
+*_beta*|*_rc*) _rel=development_releases;;
+*) _rel=official_releases;;
+esac
+
+source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtquickcontrols-opensource-src-$_V.tar.xz"
+
+_builddir="$srcdir"/qtquickcontrols-opensource-src-$_V
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ qmake && make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make install INSTALL_ROOT="$pkgdir" || return 1
+}
+
+md5sums="90bffd1ea73d2f13322b25aa1b2d5e25 qtquickcontrols-opensource-src-5.3.1.tar.xz"
+sha256sums="f6936130d7d2f08062dd9b9b19dcde56511ff038e57ae813fbb0943477871c1d qtquickcontrols-opensource-src-5.3.1.tar.xz"
+sha512sums="31cb6d426e73b14853a9d98a0628a1392ad19e07acbe0d7f2fbada40d80c1cfe13a1e0b01d300601426140b2b4938fa5bb76b1cb6074438789f2551dd9731860 qtquickcontrols-opensource-src-5.3.1.tar.xz"
diff --git a/main/qt5-qtscript/APKBUILD b/main/qt5-qtscript/APKBUILD
new file mode 100644
index 0000000000..47ca8cca90
--- /dev/null
+++ b/main/qt5-qtscript/APKBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=qt5-qtscript
+pkgver=5.3.1
+_ver=${pkgver/_/-}
+_ver=${_ver/beta0/beta}
+_ver=${_ver/rc0/rc}
+_V=${_ver/rc/RC}
+pkgrel=0
+pkgdesc="Qt5 - QtScript component"
+url="http://qt-project.org/"
+arch="all"
+license="LGPLv2 with exceptions or GPLv3 with exceptions"
+depends=""
+depends_dev="qt5-qtbase-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev"
+case $pkgver in
+*_beta*|*_rc*) _rel=development_releases;;
+*) _rel=official_releases;;
+esac
+source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtscript-opensource-src-$_V.tar.xz"
+
+_builddir="$srcdir"/qtscript-opensource-src-$_V
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ qmake && make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make INSTALL_ROOT="$pkgdir" install || return 1
+ rm "$pkgdir"/usr/lib/*.la || return 1
+}
+
+md5sums="262c142aac926b492a1bf7fa3f9a96c2 qtscript-opensource-src-5.3.1.tar.xz"
+sha256sums="5bbfa86bf646fbc863f2a674c83b366b65301d3e1529ffe86860eb90fca13a85 qtscript-opensource-src-5.3.1.tar.xz"
+sha512sums="3aac221474b1e8d329610acc4b32019793a3eedcd30bd5a0e2ad4b65bb608c3d76593449877ab3718005f4c84d5c34ecd283509fb9d05bc940ee7c4b8934e959 qtscript-opensource-src-5.3.1.tar.xz"
diff --git a/main/qt5-qtsvg/APKBUILD b/main/qt5-qtsvg/APKBUILD
new file mode 100644
index 0000000000..5069367608
--- /dev/null
+++ b/main/qt5-qtsvg/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor:
+# Maintainer:
+pkgname=qt5-qtsvg
+pkgver=5.3.1
+pkgrel=0
+pkgdesc="Qt5 - Support for rendering and displaying SVG"
+url="http://qt-project.org/"
+arch="all"
+license="LGPLv2 with exceptions or GPLv3 with exceptions"
+depends=""
+depends_dev="qt5-qtbase-dev"
+makedepends="$depends_dev zlib-dev"
+install=""
+subpackages="$pkgname-dev"
+
+_ver=${pkgver/_/-}
+_ver=${_ver/beta0/beta}
+_ver=${_ver/rc0/rc}
+_V=${_ver/rc/RC}
+case $pkgver in
+*_beta*|*_rc*) _rel=development_releases;;
+*) _rel=official_releases;;
+esac
+
+source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtsvg-opensource-src-$_V.tar.xz"
+
+_builddir="$srcdir"/qtsvg-opensource-src-$_V
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ qmake && make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make install INSTALL_ROOT="$pkgdir" || return 1
+ rm "$pkgdir"/usr/lib/*.la || return 1
+}
+
+md5sums="1a54f0495ad7239038f57d8a2715203c qtsvg-opensource-src-5.3.1.tar.xz"
+sha256sums="c2daa131cd41f230d5903e1b754249ed16609df98a08e70b62b5610c4a3a1774 qtsvg-opensource-src-5.3.1.tar.xz"
+sha512sums="f520c01469db71553bc6f55a2ee70272c78a00264fdf5a7ca4d19bdf85a5e00890f6aa53daab5a5a4c131c6942ac852a02ba4ff33a1990bf068463050a7f10c1 qtsvg-opensource-src-5.3.1.tar.xz"
diff --git a/main/qt5-qttools/APKBUILD b/main/qt5-qttools/APKBUILD
new file mode 100644
index 0000000000..68989e09c3
--- /dev/null
+++ b/main/qt5-qttools/APKBUILD
@@ -0,0 +1,148 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=qt5-qttools
+pkgver=5.3.1
+pkgrel=0
+pkgdesc="Qt5 - QtTool components"
+url="http://qt-project.org/"
+arch="all"
+license="LGPLv2 with exceptions or GPLv3 with exceptions"
+depends=""
+depends_dev="qt5-qtbase-dev"
+makedepends="$depends_dev qt5-qtwebkit-dev"
+install=""
+subpackages="$pkgname-dev qt5-assistant:_assistant qt5-qdbusviewer:_dbusviewer
+ qt5-designer-plugin-webkit:_webkit"
+
+_ver=${pkgver/_/-}
+_ver=${_ver/beta0/beta}
+_ver=${_ver/rc0/rc}
+_V=${_ver/rc/RC}
+case $pkgver in
+*_beta*|*_rc*) _rel=development_releases;;
+*) _rel=official_releases;;
+esac
+
+source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qttools-opensource-src-$_V.tar.xz
+ assistant.desktop
+ designer.desktop
+ linguist.desktop
+ qdbusviewer.desktop
+ "
+
+_builddir="$srcdir"/qttools-opensource-src-$_V
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ qmake && make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make install INSTALL_ROOT="$pkgdir" || return 1
+ rm "$pkgdir"/usr/lib/*.la || return 1
+ for i in $source; do
+ case $i in
+ *.desktop) install -Dm644 "$srcdir"/$i \
+ "$pkgdir"/usr/share/applications/$i || return 1;;
+ esac
+ done
+ # icons
+ install -m644 -p -D src/assistant/assistant/images/assistant.png \
+ "$pkgdir"/usr/share/icons/hicolor/32x32/apps/assistant-qt5.png \
+ || return 1
+ install -m644 -p -D src/assistant/assistant/images/assistant-128.png \
+ "$pkgdir"/usr/share/icons/hicolor/128x128/apps/assistant-qt5.png\
+ || return 1
+ install -m644 -p -D src/designer/src/designer/images/designer.png \
+ "$pkgdir"/usr/share/icons/hicolor/32x32/apps/designer-qt5.png \
+ || return 1
+ install -m644 -p -D src/qdbus/qdbusviewer/images/qdbusviewer.png \
+ "$pkgdir"/usr/share/icons/hicolor/32x32/apps/qdbusviewer-qt5.png \
+ || return 1
+ install -m644 -p -D src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
+ "$pkgdir"/usr/share/icons/hicolor/128x128/apps/qdbusviewer-qt5.png \
+ || return 1
+ # linguist icons
+ for icon in src/linguist/linguist/images/icons/linguist-*-32.png ; do
+ size=$(echo ${icon##*/} | cut -d- -f2)
+ install -p -m644 -D ${icon} \
+ "$pkgdir"/usr/share/icons/hicolor/${size}x${size}/apps/linguist.png || return 1
+ done
+}
+
+_mv_files() {
+ local i
+ for i in "$@"; do
+ mkdir -p "$subpkgdir"/${i%/*}
+ mv "$pkgdir"/$i "$subpkgdir"/$i || return 1
+ done
+}
+
+dev() {
+ default_dev
+ cd "$pkgdir"
+ _mv_files \
+ usr/bin/designer \
+ usr/bin/lconvert \
+ usr/bin/linguist \
+ usr/bin/lrelease \
+ usr/bin/lupdate \
+ usr/bin/pixeltool \
+ usr/bin/qcollectiongenerator \
+ usr/bin/qhelpconverter \
+ usr/bin/qhelpgenerator \
+ usr/share/applications/designer* \
+ usr/share/applications/linguist* \
+ usr/share/icons/hicolor/*/apps/designer* \
+ usr/share/icons/hicolor/*/apps/linguist* \
+ || return 1
+}
+
+_assistant() {
+ pkgdesc="Documentation browser for Qt5"
+ cd "$pkgdir"
+ _mv_files usr/bin/assist* \
+ usr/share/applications/*assistant* \
+ usr/share/icons/hicolor/*/apps/assistant* \
+ || return 1
+}
+
+_dbusviewer() {
+ pkgdesc="D-Bus debugger and viewer"
+ cd "$pkgdir"
+ _mv_files usr/bin/qdbusviewer* \
+ usr/share/applications/qdbusviewer* \
+ usr/share/icons/hicolor/*/apps/qdbusviewer* \
+ || return 1
+}
+
+_webkit() {
+ pkgdesc="Qt5 designer plugin for WebKit"
+ cd "$pkgdir"
+ _mv_files usr/lib/qt5/plugins/designer/libqwebview.so || return 1
+}
+
+md5sums="7264920fc489ac878d40218263df8c4e qttools-opensource-src-5.3.1.tar.xz
+a445c6917086d80f1cfc1e40cb6b0132 assistant.desktop
+d457f0a0ad68a3861c3cadefe3b42ded designer.desktop
+668331d9798a0e2b94381efb7be4c513 linguist.desktop
+60f6c5d2e7551790665d35778d1640f3 qdbusviewer.desktop"
+sha256sums="edf59eeead3c1d202883c2e6091abd1d40ac37b6e6b0e240b29ab75f86c515a7 qttools-opensource-src-5.3.1.tar.xz
+1094300e3d69e55eb69d87cbaac6724f68b0618938c6eb1b0ddd22ba99c7f8a2 assistant.desktop
+74c2c5d27a1c1ad08ab01122bcf333f75d0a014b4755d3ddd8764c2425f6e320 designer.desktop
+1b9ecd839c1a5dfcec87653849287c31bf2f4044300958be802ebb943e896998 linguist.desktop
+3da411f79ddc788a6b892ba1d61c0175c629e6e53fb9591a3cb12e4c6d983ac8 qdbusviewer.desktop"
+sha512sums="d8097b055c88e8f8cfa2a6c2c973d13827352e3298395b5a2c2d16204a92e5770fbc3ab2325575a80a676016ce699bddfec3616a21ecc1320b1e1ad60eabec93 qttools-opensource-src-5.3.1.tar.xz
+005ed6fe50b237e4541c0f30cbd87ec5425eff7e7c8d55d2b9b24ea8469e75e1fc8a3f26296841ab4cbd566517b3f1aa1fa7b36e1a9677d284cfff615fd24614 assistant.desktop
+731aae6a0d776c1be5a49dadc5480b205ba5c8e056d108e2bb96a19dd52b6c6ca22387b37505cf97a2575228cd5dd65c773d0fde1c26299e47fdc11a49f651fd designer.desktop
+70943d9ee9ac7ff6281079be14b741095c60428b30b27bafc42a8bb1729a6f7e8e163cff3d2b5d5a66bbdab464816eea479a3f822598ff2fe068d4025652a049 linguist.desktop
+46880915dabb1d0e6bc870460cb86ec1b8f4678bda5c1001903281545e8c33752619cbda25d955436f2facedbc0890ebb1c9e71dfe2bd60f1bebfafe68085cd6 qdbusviewer.desktop"
diff --git a/main/qt5-qttools/assistant.desktop b/main/qt5-qttools/assistant.desktop
new file mode 100644
index 0000000000..1b9f0a7680
--- /dev/null
+++ b/main/qt5-qttools/assistant.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Exec=/usr/bin/assistant
+Name=Qt Assistant
+GenericName=Qt Document Browser
+Icon=assistant
+Terminal=false
+Type=Application
+Categories=Qt;Development;Documentation
diff --git a/main/qt5-qttools/designer.desktop b/main/qt5-qttools/designer.desktop
new file mode 100644
index 0000000000..8f362731bf
--- /dev/null
+++ b/main/qt5-qttools/designer.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Exec=/usr/bin/designer
+Name=Qt Designer
+GenericName=Interface Designer
+MimeType=application/x-designer
+Icon=designer
+Terminal=false
+Type=Application
+Categories=Qt;Development;GUIDesigner
diff --git a/main/qt5-qttools/linguist.desktop b/main/qt5-qttools/linguist.desktop
new file mode 100644
index 0000000000..94e92c1b08
--- /dev/null
+++ b/main/qt5-qttools/linguist.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Exec=/usr/bin/linguist
+Name=Qt Linguist
+GenericName=Translation Tool
+MimeType=application/x-linguist
+Terminal=false
+Type=Application
+Icon=linguist
+Categories=Qt;Development;Translation
diff --git a/main/qt5-qttools/qdbusviewer.desktop b/main/qt5-qttools/qdbusviewer.desktop
new file mode 100644
index 0000000000..d6e0f0ae05
--- /dev/null
+++ b/main/qt5-qttools/qdbusviewer.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Qt5 QDbusViewer
+GenericName=D-Bus Debugger
+Comment=Debug D-Bus applications
+Exec=qdbusviewer-qt5
+Icon=qt5-qdbusviewer
+Terminal=false
+Type=Application
+Categories=Qt;Development;Debugger;
+
diff --git a/main/qt5-qttranslations/APKBUILD b/main/qt5-qttranslations/APKBUILD
new file mode 100644
index 0000000000..1b298be488
--- /dev/null
+++ b/main/qt5-qttranslations/APKBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=qt5-qttranslations
+pkgver=5.3.1
+pkgrel=0
+pkgdesc="Qt5 - QtTranslations module"
+url="http://qt-project.org/"
+arch="noarch"
+license="LGPLv2 with exceptions or GPLv3 with exceptions and GFDL"
+depends=""
+depends_dev=""
+makedepends="$depends_dev qt5-qttools-dev"
+install=""
+subpackages=""
+
+_ver=${pkgver/_/-}
+_ver=${_ver/beta0/beta}
+_ver=${_ver/rc0/rc}
+_V=${_ver/rc/RC}
+case $pkgver in
+*_beta*|*_rc*) _rel=development_releases;;
+*) _rel=official_releases;;
+esac
+
+source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qttranslations-opensource-src-$_V.tar.xz"
+
+_builddir="$srcdir"/qttranslations-opensource-src-$_V
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ qmake && make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make install INSTALL_ROOT="$pkgdir" || return 1
+}
+
+md5sums="d43878fc7a5b9fdee03039770dbac1fa qttranslations-opensource-src-5.3.1.tar.xz"
+sha256sums="3d27edb4a450d85fd36e41fc0edb92adc8748eac79a90f3121b46d04b717695a qttranslations-opensource-src-5.3.1.tar.xz"
+sha512sums="5968bf2a5bcbc7d1170dd4db10984e486873a42a74582195951482af5250785169bef8dbb23eac16a552434699eca2486f025428b74ecf01e04098864834f3b6 qttranslations-opensource-src-5.3.1.tar.xz"
diff --git a/main/qt5-qtwebkit/APKBUILD b/main/qt5-qtwebkit/APKBUILD
new file mode 100644
index 0000000000..3aefbec7e5
--- /dev/null
+++ b/main/qt5-qtwebkit/APKBUILD
@@ -0,0 +1,87 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=qt5-qtwebkit
+pkgver=5.3.1
+pkgrel=0
+pkgdesc="Qt5 - QtWebKit components"
+url="http://qt-project.org/"
+arch="all"
+license="LGPLv2 with exceptions or GPLv3 with exceptions"
+depends=""
+depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev gstreamer1-dev
+ gst-plugins-base1-dev libxslt-dev mesa-dev icu-dev libxext-dev
+ glib-dev libxcomposite-dev libxrender-dev
+ "
+makedepends="$depends_dev
+ bison
+ flex
+ fontconfig-dev
+ gperf
+ libjpeg-turbo-dev
+ libpng-dev
+ libwebp-dev
+ pcre-dev
+ ruby
+ sqlite-dev
+ zlib-dev
+ "
+install=""
+subpackages="$pkgname-dev"
+
+_ver=${pkgver/_/-}
+_ver=${_ver/beta0/beta}
+_ver=${_ver/rc0/rc}
+_V=${_ver/rc/RC}
+case $pkgver in
+*_beta*|*_rc*) _rel=development_releases;;
+*) _rel=official_releases;;
+esac
+
+source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtwebkit-opensource-src-$_V.tar.xz
+ pic.patch
+ fix-rpath.patch
+ fix-execinfo.patch
+ "
+
+_builddir="$srcdir"/qtwebkit-opensource-src-$_V
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ # remove some bundled
+ mkdir Source/ThirdParty/orig
+ mv Source/ThirdParty/gtest/ \
+ Source/ThirdParty/qunit/ \
+ Source/ThirdParty/orig/ \
+ || return 1
+}
+
+build() {
+ cd "$_builddir"
+ qmake && make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make install INSTALL_ROOT="$pkgdir" || return 1
+ rm "$pkgdir"/usr/lib/*.la || return 1
+ # remove rpath
+# chrpath --delete "$pkgdir"/usr/lib/qt5/libexec/* || return 1
+ sed -i -e 's:-L/home[^ ]\+::g' "$pkgdir"/usr/lib/pkgconfig/*.pc
+}
+
+md5sums="0f2bb8af6be2306b2b4d194a7ebf6fcc qtwebkit-opensource-src-5.3.1.tar.xz
+676350288efff119bee8513d9d0b2047 pic.patch
+0eb12ab99ceaea7f841d58193f5e6cce fix-rpath.patch
+7a2a2592e64561fa0bc8c0552181bf00 fix-execinfo.patch"
+sha256sums="69a47c5645918fc27bff630275685f300e42b4dfd99ccd3e5aa1c8a6d0725156 qtwebkit-opensource-src-5.3.1.tar.xz
+51c0e843c5c6453526ee51ed69f2d4a7959767621da321f1082985dfe9f001ef pic.patch
+15eb66062e11fef891285b0a288bab9a1b03cd6984f701a7ad890fe6933c1d23 fix-rpath.patch
+d8f6c84cf1a98174aa16660a422cd7b248a012e60bf37a9b5013f2bc61b6d63e fix-execinfo.patch"
+sha512sums="06ba1b63a6d4c835c1c334d0592c46ec8808603419fb4884b9ab5c6856bc18096759d13d0af8e69bc6c183a3100bdec575fdd97dd55e7437fa1865607fa45bfc qtwebkit-opensource-src-5.3.1.tar.xz
+9a62a5e7af91c44311b517608262f88b5bc607e75dc5878dd08b0a0872ec03fb7a566df0a41413f7e60beb1b9880e24f084b90c38ed50d4219ec2ad6af9bd62f pic.patch
+28646d969c15f4ec7cec6bd483f9ead0c71becf42fb8e8261d0c209cb1b6973083515ea1c3fcf9ccaf80a22b81bab0401c4f7b4f29c1631b4433b3bf4aff0507 fix-rpath.patch
+f17c2f4b90090c8f12e4ba1f2cbd7a9f496c8de024ba6e0d55b98e5b89ab89298aff84f39e81905e0491fe6bd11544633a8b191403a866e16ed654d44cf8dc6f fix-execinfo.patch"
diff --git a/main/qt5-qtwebkit/fix-execinfo.patch b/main/qt5-qtwebkit/fix-execinfo.patch
new file mode 100644
index 0000000000..6fbf4ed8fd
--- /dev/null
+++ b/main/qt5-qtwebkit/fix-execinfo.patch
@@ -0,0 +1,20 @@
+--- webkitgtk-2.2.0.orig/Source/WTF/wtf/Assertions.cpp
++++ webkitgtk-2.2.0/Source/WTF/wtf/Assertions.cpp
+@@ -64,7 +64,7 @@
+ #include <windows.h>
+ #endif
+
+-#if (OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))) && !OS(ANDROID)
++#if OS(DARWIN) || (OS(LINUX) && defined(__GLIBC__) && !defined(__UCLIBC__)) && !OS(ANDROID)
+ #include <cxxabi.h>
+ #include <dlfcn.h>
+ #include <execinfo.h>
+@@ -242,7 +242,7 @@
+
+ void WTFGetBacktrace(void** stack, int* size)
+ {
+-#if (OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))) && !OS(ANDROID)
++#if OS(DARWIN) || (OS(LINUX) && defined(__GLIBC__) && !defined(__UCLIBC__)) && !OS(ANDROID)
+ *size = backtrace(stack, *size);
+ #elif OS(WINDOWS) && !OS(WINCE)
+ // The CaptureStackBackTrace function is available in XP, but it is not defined
diff --git a/main/qt5-qtwebkit/fix-rpath.patch b/main/qt5-qtwebkit/fix-rpath.patch
new file mode 100644
index 0000000000..d365b87754
--- /dev/null
+++ b/main/qt5-qtwebkit/fix-rpath.patch
@@ -0,0 +1,11 @@
+--- ./Tools/qmake/mkspecs/features/unix/default_post.prf.orig
++++ ./Tools/qmake/mkspecs/features/unix/default_post.prf
+@@ -58,8 +58,6 @@
+ QMAKE_OBJECTIVE_CFLAGS += -Wno-c++11-extensions -Wno-c++0x-extensions
+ }
+
+-contains(TEMPLATE, app): CONFIG += rpath
+-
+ CONFIG(debug, debug|release)|force_debug_info|separate_debug_info {
+ # Make ld not cache the symbol tables of input files in memory to avoid memory exhaustion during the linking phase.
+ !force_static_libs_as_shared:config_gnuld: QMAKE_LFLAGS += -Wl,--no-keep-memory
diff --git a/main/qt5-qtwebkit/pic.patch b/main/qt5-qtwebkit/pic.patch
new file mode 100644
index 0000000000..ef8993ee3d
--- /dev/null
+++ b/main/qt5-qtwebkit/pic.patch
@@ -0,0 +1,11 @@
+--- ./Source/WTF/wtf/InlineASM.h.orig 2013-10-07 11:36:58.995128674 +0000
++++ ./Source/WTF/wtf/InlineASM.h 2013-10-07 11:37:28.058792290 +0000
+@@ -42,7 +42,7 @@
+ #define THUMB_FUNC_PARAM(name)
+ #endif
+
+-#if (OS(LINUX) || OS(FREEBSD)) && CPU(X86_64)
++#if (OS(LINUX) || OS(FREEBSD)) && (CPU(X86_64) || defined(__PIC__))
+ #define GLOBAL_REFERENCE(name) #name "@plt"
+ #elif CPU(X86) && COMPILER(MINGW)
+ #define GLOBAL_REFERENCE(name) "@" #name "@4"