2012-05-20 06:02:02 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2012-02-07 10:42:42 +08:00
|
|
|
|
2014-07-23 02:36:46 +08:00
|
|
|
pkgbase=phonon-backend-gstreamer
|
|
|
|
pkgname=('phonon-backend-gstreamer' 'phonon-qt5-backend-gstreamer')
|
2015-01-12 08:00:01 +08:00
|
|
|
pkgver=4.8.2
|
2016-01-02 14:57:04 +08:00
|
|
|
pkgrel=2
|
2012-02-07 10:42:42 +08:00
|
|
|
pkgdesc="Phonon GStreamer backend"
|
2012-11-29 05:52:56 +08:00
|
|
|
arch=('x86_64')
|
2012-02-07 10:42:42 +08:00
|
|
|
url='http://phonon.kde.org'
|
|
|
|
license=('LGPL')
|
2014-07-23 02:36:46 +08:00
|
|
|
makedepends=('pkg-config' 'cmake' 'automoc4' 'phonon' 'phonon-qt5')
|
2014-10-09 15:36:39 +08:00
|
|
|
optdepends=('gst-plugins-good: For media format support'
|
|
|
|
'gst-plugins-bad: For media format support'
|
|
|
|
'gst-plugins-ugly: For media format support'
|
|
|
|
'gst-libav: For media format support')
|
2012-02-07 10:42:42 +08:00
|
|
|
groups=("kde-complete" "kde-uninstall")
|
2016-01-02 14:57:04 +08:00
|
|
|
source=("http://download.kde.org/stable/phonon/phonon-backend-gstreamer/${pkgver}/src/phonon-backend-gstreamer-${pkgver}.tar.xz"
|
|
|
|
"phonon-gstreamer-gst15_include_dirs.patch")
|
|
|
|
md5sums=('ce441035dc5a00ffaac9a64518ab5c62'
|
|
|
|
'c4a3d5230b07d4d84a8f05a8575c69aa')
|
2014-07-23 02:36:46 +08:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir build-qt4
|
|
|
|
mkdir build-qt5
|
|
|
|
|
2016-01-02 14:57:04 +08:00
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1239790
|
|
|
|
patch -Np1 -i ../phonon-gstreamer-gst15_include_dirs.patch
|
|
|
|
}
|
2012-02-07 10:42:42 +08:00
|
|
|
|
|
|
|
build() {
|
2014-07-23 02:36:46 +08:00
|
|
|
cd build-qt4
|
|
|
|
cmake ../${pkgname}-${pkgver} \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
2016-01-02 14:57:04 +08:00
|
|
|
-D__KDE_HAVE_GCC_VISIBILITY=NO \
|
2014-07-23 02:36:46 +08:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
|
|
make
|
|
|
|
|
|
|
|
cd ../build-qt5
|
|
|
|
cmake ../${pkgname}-${pkgver} \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
2016-01-02 14:57:04 +08:00
|
|
|
-D__KDE_HAVE_GCC_VISIBILITY=NO \
|
2014-07-23 02:36:46 +08:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-DPHONON_BUILD_PHONON4QT5=ON
|
|
|
|
make
|
2012-02-07 10:42:42 +08:00
|
|
|
}
|
|
|
|
|
2014-07-23 02:36:46 +08:00
|
|
|
package_phonon-backend-gstreamer() {
|
|
|
|
pkgdesc="Phonon GStreamer backend for Qt4"
|
2014-09-09 20:57:27 +08:00
|
|
|
depends=('gst-plugins-base')
|
2014-07-23 02:36:46 +08:00
|
|
|
provides=('phonon-backend')
|
|
|
|
|
|
|
|
cd build-qt4
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2012-02-07 10:42:42 +08:00
|
|
|
}
|
2014-07-23 02:36:46 +08:00
|
|
|
|
|
|
|
package_phonon-qt5-backend-gstreamer() {
|
|
|
|
pkgdesc="Phonon GStreamer backend for Qt5"
|
2014-09-09 20:57:27 +08:00
|
|
|
depends=('gst-plugins-base')
|
2014-07-23 02:36:46 +08:00
|
|
|
provides=('phonon-qt5-backend')
|
|
|
|
|
|
|
|
cd build-qt5
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
# Those are not needed
|
|
|
|
rm -rf "${pkgdir}"/usr/share
|
2014-09-09 20:57:27 +08:00
|
|
|
}
|