author | Andrea Scarpino
<andrea@archlinux.org> 2012-02-08 14:43:44 UTC |
committer | Andrea Scarpino
<andrea@archlinux.org> 2012-02-08 14:43:44 UTC |
parent | 2cdc677d4214117892b8c4e64ca7d79d9f1c9a53 |
PKGBUILD | +9 | -4 |
fix-plugindir-for-qt-app.patch | +11 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index 9745ccc..5f578b7 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ pkgname=phonon pkgver=4.6.0 -pkgrel=1 +pkgrel=2 epoch=1 arch=('i686' 'x86_64') url='http://phonon.kde.org/' @@ -11,17 +11,22 @@ pkgdesc="The multimedia framework for KDE" depends=('qt' 'phonon-backend' 'libpulse' 'libqzeitgeist') optdepends=('pulseaudio: PulseAudio support') makedepends=('cmake' 'automoc4' 'pulseaudio' 'qtwebkit') -source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.xz") -md5sums=('bbe0c1c62ed14c31479c4c1a6cf1e173') +source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.xz" + 'fix-plugindir-for-qt-app.patch') +md5sums=('bbe0c1c62ed14c31479c4c1a6cf1e173' + 'e37d67038c2501f25ac7ee7c2de54a9a') build() { + cd "${srcdir}"/${pkgname}-${pkgver} + patch -p1 -i "${srcdir}"/fix-plugindir-for-qt-app.patch + cd "${srcdir}" mkdir build cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH=ON \ - -DCMAKE_INSTALL_PREFIX=/usr + -DCMAKE_INSTALL_PREFIX=/usr \ -DPHONON_QT_MKSPECS_INSTALL_DIR=/usr/share/qt/mkspecs/modules \ -DPHONON_QT_PLUGIN_INSTALL_DIR=/usr/lib/qt/plugins/designer make diff --git a/fix-plugindir-for-qt-app.patch b/fix-plugindir-for-qt-app.patch new file mode 100644 index 0000000..376f294 --- /dev/null +++ b/fix-plugindir-for-qt-app.patch @@ -0,0 +1,11 @@ +--- a/phonon/CMakeLists.txt ++++ b/phonon/CMakeLists.txt +@@ -78,7 +78,7 @@ if (PHONON_NO_PLATFORMPLUGIN) + add_definitions(-DQT_NO_PHONON_PLATFORMPLUGIN) + endif (PHONON_NO_PLATFORMPLUGIN) + +-add_definitions(-DPHONON_LIBRARY_PATH="${PLUGIN_INSTALL_DIR}/plugins") ++add_definitions(-DPHONON_LIBRARY_PATH="${CMAKE_INSTALL_PREFIX}/${PLUGIN_INSTALL_DIR}/plugins") + + automoc4_add_library(phonon SHARED ${phonon_LIB_SRCS}) + target_link_libraries(phonon ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})