2013-01-31 10:17:40 +08:00
|
|
|
## rebuild on icu update
|
2010-05-20 12:03:20 +08:00
|
|
|
|
2011-05-09 12:59:26 +08:00
|
|
|
pkgbase=qt
|
2014-06-12 22:09:59 +08:00
|
|
|
pkgname=('qt' 'qt-private-headers' 'qt-docs')
|
2015-06-04 19:39:01 +08:00
|
|
|
pkgver=4.8.7
|
2017-03-18 01:40:24 +08:00
|
|
|
pkgrel=5
|
2012-11-30 04:40:57 +08:00
|
|
|
arch=('x86_64')
|
2015-06-04 19:39:01 +08:00
|
|
|
url='http://www.qt.io'
|
2011-05-09 12:59:26 +08:00
|
|
|
license=('GPL3' 'LGPL')
|
|
|
|
makedepends=('libtiff' 'libpng' 'libmng' 'sqlite3' 'ca-certificates' 'glib2' 'dbus'
|
|
|
|
'fontconfig' 'libgl' 'libsm' 'libxrandr' 'libxv' 'libxi' 'alsa-lib'
|
|
|
|
'xdg-utils' 'hicolor-icon-theme' 'desktop-file-utils' 'mesa' 'postgresql-libs'
|
2016-03-30 00:25:41 +08:00
|
|
|
'mysql' 'unixodbc' 'cups' 'libxinerama' 'libxcursor' 'freetds')
|
2015-03-02 07:50:53 +08:00
|
|
|
options=('staticlibs' 'debug')
|
2011-05-09 12:59:26 +08:00
|
|
|
_pkgfqn="qt-everywhere-opensource-src-${pkgver}"
|
2015-06-04 19:39:01 +08:00
|
|
|
source=("http://download.qt.io/official_releases/qt/4.8/${pkgver}/${_pkgfqn}.tar.gz"
|
2011-05-09 12:59:26 +08:00
|
|
|
'assistant.desktop' 'designer.desktop' 'linguist.desktop'
|
2017-03-18 01:40:24 +08:00
|
|
|
'qtconfig.desktop'
|
|
|
|
'qt_no_debug.patch'
|
|
|
|
'add_nostrip_for_debug_packages.diff'
|
|
|
|
'improve-cups-support.patch'
|
2014-12-19 07:38:43 +08:00
|
|
|
'moc-boost-workaround.patch'
|
2014-12-30 00:45:17 +08:00
|
|
|
'kubuntu_14_systemtrayicon.diff'
|
2017-03-18 01:40:24 +08:00
|
|
|
'kde4-settings.patch'
|
2014-12-30 00:45:17 +08:00
|
|
|
'glib-honor-ExcludeSocketNotifiers-flag.diff'
|
2017-03-18 01:40:24 +08:00
|
|
|
'disable-sslv3.patch'
|
|
|
|
'l-qclipboard_fix_recursive.patch'
|
2015-03-02 07:50:53 +08:00
|
|
|
'l-qclipboard_delay.patch'
|
2017-03-18 01:40:24 +08:00
|
|
|
'qt4-gcc6.patch' 'qt4-glibc-2.25.patch')
|
2015-06-04 19:39:01 +08:00
|
|
|
md5sums=('d990ee66bf7ab0c785589776f35ba6ad'
|
2011-05-09 12:59:26 +08:00
|
|
|
'fc211414130ab2764132e7370f8e5caa'
|
|
|
|
'85179f5e0437514f8639957e1d8baf62'
|
|
|
|
'f11852b97583610f3dbb669ebc3e21bc'
|
2012-06-28 04:57:20 +08:00
|
|
|
'6b771c8a81dd90b45e8a79afa0e5bbfd'
|
2014-12-19 07:38:43 +08:00
|
|
|
'742bfebaebc44c26f6cabe654f702cc8'
|
2017-03-18 01:40:24 +08:00
|
|
|
'41587e01bb0ca6d0c52fcf39eb737459'
|
|
|
|
'b9fb6b953cec428d59c026b1ef370e86'
|
2014-12-19 07:38:43 +08:00
|
|
|
'da387bde22ae1c446f12525d2a31f070'
|
2014-12-30 00:45:17 +08:00
|
|
|
'a523644faa8f98a73f55c4aa23c114a6'
|
2017-03-18 01:40:24 +08:00
|
|
|
'66dfea63916c8dbf47b23cb012ffdccc'
|
2014-12-30 00:45:17 +08:00
|
|
|
'85679531c8a7310317adfb7002d9f99a'
|
2017-03-18 01:40:24 +08:00
|
|
|
'1803ab6313df762d807678e58fc85f53'
|
2014-12-30 00:45:17 +08:00
|
|
|
'009de09b4e589a7770fba74405656c99'
|
2015-03-02 07:50:53 +08:00
|
|
|
'addc5e88d538ee55e17bd49ba337ca67'
|
2017-03-18 01:40:24 +08:00
|
|
|
'98e00c5c7e5fee12e11ecbedd03f01ff'
|
|
|
|
'296a06554222ff5839cccc41c5d3987e')
|
2011-05-06 14:37:57 +08:00
|
|
|
|
2013-07-28 00:51:03 +08:00
|
|
|
prepare() {
|
|
|
|
cd ${_pkgfqn}
|
2011-05-09 12:59:26 +08:00
|
|
|
|
2012-12-21 04:47:46 +08:00
|
|
|
patch -p1 -i "${srcdir}"/qt_no_debug.patch
|
2017-03-18 01:40:24 +08:00
|
|
|
# (FS#28381) (KDEBUG#180051)
|
2013-07-28 00:51:03 +08:00
|
|
|
patch -p1 -i "${srcdir}"/improve-cups-support.patch
|
2017-03-18 01:40:24 +08:00
|
|
|
|
|
|
|
# QTBUG#22829
|
|
|
|
patch -p1 -i "${srcdir}"/moc-boost-workaround.patch
|
|
|
|
|
|
|
|
# http://blog.martin-graesslin.com/blog/2014/06/where-are-my-systray-icons/
|
|
|
|
patch -p1 -i "${srcdir}"/kubuntu_14_systemtrayicon.diff
|
|
|
|
|
2015-06-04 19:39:01 +08:00
|
|
|
# FS#45106
|
2017-03-18 01:40:24 +08:00
|
|
|
patch -p0 -i "${srcdir}"/kde4-settings.patch
|
|
|
|
|
|
|
|
# fixes for LibreOffice from the upstream Qt bug tracker FS#46436, FS#41648, FS#39819
|
|
|
|
# https://bugreports.qt.io/browse/QTBUG-37380
|
|
|
|
patch -p1 -i "${srcdir}"/glib-honor-ExcludeSocketNotifiers-flag.diff
|
|
|
|
# https://bugreports.qt.io/browse/QTBUG-34614
|
|
|
|
patch -p0 -i "${srcdir}"/l-qclipboard_fix_recursive.patch
|
|
|
|
# https://bugreports.qt.io/browse/QTBUG-38585
|
|
|
|
patch -p0 -i "${srcdir}"/l-qclipboard_delay.patch
|
|
|
|
|
|
|
|
# React to OpenSSL's OPENSSL_NO_SSL3 define
|
|
|
|
patch -p1 -i "${srcdir}"/disable-sslv3.patch
|
|
|
|
|
2015-03-02 07:50:53 +08:00
|
|
|
patch -Np1 -i "${srcdir}"/add_nostrip_for_debug_packages.diff
|
2011-07-12 10:04:17 +08:00
|
|
|
|
2012-03-08 19:31:52 +08:00
|
|
|
sed -i "s|-O2|${CXXFLAGS}|" mkspecs/common/{g++,gcc}-base.conf
|
2011-12-19 14:51:17 +08:00
|
|
|
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
|
2017-03-18 01:40:24 +08:00
|
|
|
|
|
|
|
# Fix build with GCC6 (Fedora)
|
|
|
|
patch -p1 -i "$srcdir"/qt4-gcc6.patch
|
|
|
|
|
|
|
|
# Fix build of Qt4 applications with glibc 2.25 (Fedora)
|
|
|
|
patch -p1 -i "$srcdir"/qt4-glibc-2.25.patch
|
2013-07-28 00:51:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/$_pkgfqn
|
|
|
|
|
|
|
|
export QT4DIR="${srcdir}"/${_pkgfqn}
|
|
|
|
export LD_LIBRARY_PATH=${QT4DIR}/lib:${LD_LIBRARY_PATH}
|
2017-03-18 01:40:24 +08:00
|
|
|
export CXXFLAGS+=" -std=gnu++98" # Fix build with GCC 6
|
|
|
|
export OPENSSL_LIBS='-L/usr/lib/openssl-1.0 -lssl -lcrypto'
|
|
|
|
export CXXFLAGS+=" -I/usr/include/openssl-1.0"
|
2013-07-28 00:51:03 +08:00
|
|
|
|
2010-05-17 16:01:47 +08:00
|
|
|
|
2011-05-04 08:20:33 +08:00
|
|
|
./configure -confirm-license -opensource \
|
2014-02-12 05:39:45 +08:00
|
|
|
-release \
|
|
|
|
-fast \
|
2010-05-18 22:39:29 +08:00
|
|
|
-prefix /usr \
|
2011-05-04 08:20:33 +08:00
|
|
|
-docdir /usr/share/doc/qt \
|
2010-05-17 16:01:47 +08:00
|
|
|
-plugindir /usr/lib/qt/plugins \
|
2011-05-04 08:20:33 +08:00
|
|
|
-importdir /usr/lib/qt/imports \
|
2010-05-17 16:01:47 +08:00
|
|
|
-datadir /usr/share/qt \
|
2011-05-04 08:20:33 +08:00
|
|
|
-translationdir /usr/share/qt/translations \
|
2012-03-08 19:31:52 +08:00
|
|
|
-sysconfdir /etc/xdg \
|
2010-05-17 16:01:47 +08:00
|
|
|
-examplesdir /usr/share/doc/qt/examples \
|
|
|
|
-demosdir /usr/share/doc/qt/demos \
|
|
|
|
-plugin-sql-{psql,mysql,sqlite,odbc} \
|
|
|
|
-system-sqlite \
|
|
|
|
-no-phonon \
|
|
|
|
-no-phonon-backend \
|
2011-10-09 23:56:17 +08:00
|
|
|
-no-webkit \
|
2011-12-19 14:51:17 +08:00
|
|
|
-graphicssystem raster \
|
2011-12-20 19:57:29 +08:00
|
|
|
-openssl-linked \
|
|
|
|
-nomake demos \
|
|
|
|
-nomake examples \
|
|
|
|
-nomake docs \
|
|
|
|
-silent \
|
|
|
|
-no-rpath \
|
|
|
|
-optimized-qmake \
|
|
|
|
-reduce-relocations \
|
|
|
|
-dbus-linked \
|
|
|
|
-no-openvg \
|
|
|
|
-xcursor
|
2011-12-19 14:51:17 +08:00
|
|
|
make
|
2010-08-22 18:56:14 +08:00
|
|
|
}
|
2010-05-17 16:01:47 +08:00
|
|
|
|
2011-05-09 12:59:26 +08:00
|
|
|
package_qt() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework'
|
|
|
|
depends=('libtiff' 'libpng' 'libmng' 'sqlite3' 'ca-certificates' 'glib2' 'dbus'
|
|
|
|
'fontconfig' 'libgl' 'libsm' 'libxrandr' 'libxv' 'libxi' 'alsa-lib'
|
2012-09-10 11:52:59 +08:00
|
|
|
'xdg-utils' 'hicolor-icon-theme' 'desktop-file-utils' 'libxinerama' 'libxcursor')
|
2011-05-09 12:59:26 +08:00
|
|
|
optdepends=('postgresql-libs: PostgreSQL driver'
|
|
|
|
'libmysqlclient: MySQL driver'
|
|
|
|
'unixodbc: ODBC driver'
|
|
|
|
'libxinerama: Xinerama support'
|
2013-01-31 10:17:40 +08:00
|
|
|
'libxfixes: Xfixes support'
|
2016-03-30 00:25:41 +08:00
|
|
|
'icu: Unicode support'
|
|
|
|
'freetds: Sybase & MS SQL driver')
|
2014-02-21 23:01:38 +08:00
|
|
|
provides=('qt4')
|
2011-05-09 12:59:26 +08:00
|
|
|
install='qt.install'
|
|
|
|
|
|
|
|
cd $srcdir/$_pkgfqn
|
2013-07-28 00:51:03 +08:00
|
|
|
make INSTALL_ROOT=$pkgdir install
|
|
|
|
|
|
|
|
# install missing icons and desktop files
|
|
|
|
for icon in tools/linguist/linguist/images/icons/linguist-*-32.png ; do
|
|
|
|
size=$(echo $(basename ${icon}) | cut -d- -f2)
|
|
|
|
install -p -D -m644 ${icon} ${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/linguist.png
|
|
|
|
done
|
|
|
|
install -p -D -m644 src/gui/dialogs/images/qtlogo-64.png ${pkgdir}/usr/share/icons/hicolor/64x64/apps/qtlogo.png
|
|
|
|
install -p -D -m644 tools/assistant/tools/assistant/images/assistant.png ${pkgdir}/usr/share/icons/hicolor/32x32/apps/assistant.png
|
|
|
|
install -p -D -m644 tools/designer/src/designer/images/designer.png ${pkgdir}/usr/share/icons/hicolor/128x128/apps/designer.png
|
|
|
|
install -d ${pkgdir}/usr/share/applications
|
|
|
|
install -m644 ${srcdir}/{linguist,designer,assistant,qtconfig}.desktop ${pkgdir}/usr/share/applications/
|
|
|
|
|
|
|
|
# install license addition
|
|
|
|
install -D -m644 LGPL_EXCEPTION.txt ${pkgdir}/usr/share/licenses/qt/LGPL_EXCEPTION.txt
|
|
|
|
|
|
|
|
# Fix wrong path in pkgconfig files
|
|
|
|
find ${pkgdir}/usr/lib/pkgconfig -type f -name '*.pc' \
|
|
|
|
-exec perl -pi -e "s, -L${srcdir}/?\S+,,g" {} \;
|
|
|
|
# Fix wrong path in prl files
|
|
|
|
find ${pkgdir}/usr/lib -type f -name '*.prl' \
|
|
|
|
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;
|
2010-05-17 16:01:47 +08:00
|
|
|
}
|
|
|
|
|
2012-06-27 05:53:20 +08:00
|
|
|
package_qt-private-headers() {
|
2011-05-09 12:59:26 +08:00
|
|
|
pkgdesc="Qt private headers for development"
|
2014-02-21 23:01:38 +08:00
|
|
|
provides=('qt4-private-headers')
|
2011-05-09 12:59:26 +08:00
|
|
|
depends=("qt=${pkgver}")
|
2010-05-17 16:01:47 +08:00
|
|
|
|
2011-07-12 10:04:17 +08:00
|
|
|
install -d ${pkgdir}/usr/include/{QtCore,QtDeclarative,QtGui,QtScript}
|
|
|
|
install -d ${pkgdir}/usr/src/{corelib,declarative,gui,script}
|
2010-05-17 16:01:47 +08:00
|
|
|
|
2011-07-12 10:04:17 +08:00
|
|
|
for i in QtCore QtDeclarative QtGui QtScript; do
|
|
|
|
cp -r ${srcdir}/$_pkgfqn/include/${i}/private/ \
|
|
|
|
${pkgdir}/usr/include/${i}/
|
|
|
|
done
|
|
|
|
|
|
|
|
for i in corelib declarative gui script; do
|
|
|
|
cp -r ${srcdir}/$_pkgfqn/src/${i} ${pkgdir}/usr/src/
|
|
|
|
done
|
2013-07-31 23:59:42 +08:00
|
|
|
|
|
|
|
find ${pkgdir} -name \*.o -type f -delete
|
2010-05-17 16:01:47 +08:00
|
|
|
}
|
2014-06-12 22:09:59 +08:00
|
|
|
|
|
|
|
package_qt-docs() {
|
|
|
|
pkgdesc='The Qt gui toolkit documentation'
|
2016-03-30 00:25:41 +08:00
|
|
|
arch=('x86_64')
|
2014-06-12 22:09:59 +08:00
|
|
|
options=('docs')
|
|
|
|
depends=('qt')
|
|
|
|
replaces=('qt-doc')
|
|
|
|
conflicts=("qt-doc=${pkgver}")
|
|
|
|
categories=('documentation')
|
|
|
|
cd ${srcdir}/${_pkgfqn}
|
|
|
|
install -d ${pkgdir}/usr/share/doc/qt
|
|
|
|
cp -r doc/* ${pkgdir}/usr/share/doc/qt
|
|
|
|
cp -r demos ${pkgdir}/usr/share/doc/qt
|
|
|
|
cp -r examples ${pkgdir}/usr/share/doc/qt
|
2014-12-17 06:06:06 +08:00
|
|
|
}
|