git » phonon.git » commit b14690a

Fix build with Qt 5.4.2

author Antonio Rojas
2015-05-30 13:37:40 UTC
committer Antonio Rojas
2015-05-30 13:37:40 UTC
parent 51d1cd12fd02b2b2c34847da2ffcfb17fa59919d

Fix build with Qt 5.4.2

PKGBUILD +10 -3

diff --git a/PKGBUILD b/PKGBUILD
index aaa3589..9f0b660 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,18 +3,23 @@
 pkgbase=phonon
 pkgname=('phonon-qt4' 'phonon-qt5')
 pkgver=4.8.3
-pkgrel=1
+pkgrel=2
 arch=('i686' 'x86_64')
 url='http://phonon.kde.org/'
 license=('LGPL')
 makedepends=('cmake' 'automoc4' 'libpulse' 'libqzeitgeist' 'qt5-base' 'qt5-tools' 'qt5-quick1')
 options=('!emptydirs')
-source=("http://download.kde.org/stable/${pkgbase}/${pkgver}/src/${pkgbase}-${pkgver}.tar.xz")
-md5sums=('88bb9867261803eed61ff53a7c026338')
+source=("http://download.kde.org/stable/${pkgbase}/${pkgver}/src/${pkgbase}-${pkgver}.tar.xz" 'qt-5.4.2.patch')
+md5sums=('88bb9867261803eed61ff53a7c026338'
+         '0235218127e47f646dd037661970aa97')
 
 prepare() {
   mkdir build
   mkdir build-qt5
+
+# Fix build with Qt 5.4.2
+  cd $pkgbase-$pkgver
+  patch -p1 -i "$srcdir"/qt-5.4.2.patch
 }
 
 build() {
@@ -25,6 +30,7 @@ build() {
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON \
     -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 \
+    -D__KDE_HAVE_GCC_VISIBILITY=NO \
     -DCMAKE_INSTALL_LIBDIR=lib
   make
 
@@ -35,6 +41,7 @@ build() {
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON \
     -DPHONON_BUILD_PHONON4QT5=ON \
+    -D__KDE_HAVE_GCC_VISIBILITY=NO \
     -DCMAKE_INSTALL_LIBDIR=lib
   make
 }