phonon-backend-gstreamer stable port information

Info3: <<
Package: phonon-%type_pkg[phonon]-backend-gstreamer
Version: 4.5.1
Revision: 2
Description: Phonon GStreamer backend (%type_pkg[phonon])
Type: phonon (mac x11)
License: LGPL
Maintainer: Benjamin Reed

Depends: <<
glib2-shlibs (>= 2.22.0-1),
gst-plugins-base-0.10-shlibs (>= 0.10.34-1),
gstreamer-0.10-shlibs (>= 0.10.34-1),
phonon-%type_pkg[phonon]-shlibs (>= 4.5.0-1),
qt4-base-%type_pkg[phonon]-qtcore-shlibs (>= 4.7.3-1),
qt4-base-%type_pkg[phonon]-qtgui-shlibs (>= 4.7.3-1),
qt4-base-%type_pkg[phonon]-qtopengl-shlibs (>= 4.7.3-1)
<<
BuildDepends: <<
automoc-%type_pkg[phonon] (>= 0.9.89-0.999999.1),
cmake (>= 2.8.2-1),
fink (>= 0.30.0-1),
glib2-dev (>= 2.22.0-1),
gstreamer-0.10-dev (>= 0.10.34-1),
gst-plugins-base-0.10-dev (>= 0.10.34-1),
kde4-buildenv (>= 4.6.0-1),
libxml2 (>= 2.6.32-1),
system-openssl-dev,
phonon-%type_pkg[phonon] (>= 4.5.0-1),
qt4-base-%type_pkg[phonon] (>= 4.7.3-1)
<<
Replaces: qt4-%type_pkg[phonon] (<< 4.7.3-1)
GCC: 4.0

Source: mirror:kde:stable/phonon/phonon-backend-gstreamer/%v/src/phonon-backend-gstreamer-%v.tar.bz2
Source-MD5: 021cf7740208e7212b7ce91adb6a349b
PatchFile: phonon-backend-gstreamer.patch
PatchFile-MD5: e5c0a53161b8c9a236a743d63f0a2077

UseMaxBuildJobs: true
CompileScript: <<
#!/bin/sh -ev

export KDE4_PREFIX="%p" KDE4_TYPE="%type_pkg[phonon]"
# KDE4_INSTALL_PREFIX="%p/lib/qt4-%type_pkg[phonon]"
export PATH="%p/opt/kde4/%type_pkg[phonon]/bin:$PATH"
. %p/sbin/kde4-buildenv.sh

mkdir -p build
pushd build
cmake $KDE4_CMAKE_ARGS -DPLUGIN_INSTALL_DIR="%p/lib/qt4-%type_pkg[phonon]" ..
make VERBOSE=1
popd
<<

InstallScript: <<
#!/bin/sh -ev

pushd build
make -j1 install/fast DESTDIR="%d"
popd
<<

DescDetail: <<
Phonon is the Qt 4 multimedia API, which provides a task-oriented
abstraction layer for capturing, mixing, processing, and playing
audio and video content.

This package provides a phonon backend implementation which uses
the GStreamer multimedia framework.
<<
<<

phonon-backend-gstreamer stable port .patch

diff -Nurd phonon-backend-gstreamer-4.5.1/CMakeLists.txt phonon-backend-gstreamer-4.5.1-new/CMakeLists.txt
--- phonon-backend-gstreamer-4.5.1/CMakeLists.txt 2011-05-04 00:34:52.000000000 -0400
+++ phonon-backend-gstreamer-4.5.1-new/CMakeLists.txt 2011-05-18 17:20:19.000000000 -0400
@@ -14,8 +14,6 @@
set(PHONON_GST_VERSION "${PHONON_GST_MAJOR_VERSION}.${PHONON_GST_MINOR_VERSION}.${PHONON_GST_PATCH_VERSION}")
add_definitions(-DPHONON_GST_VERSION="${PHONON_GST_VERSION}")

-if (Q_WS_X11)
add_subdirectory(gstreamer)
-endif (Q_WS_X11)

macro_display_feature_log()
diff -Nurd phonon-backend-gstreamer-4.5.1/gstreamer/CMakeLists.txt phonon-backend-gstreamer-4.5.1-new/gstreamer/CMakeLists.txt
--- phonon-backend-gstreamer-4.5.1/gstreamer/CMakeLists.txt 2011-05-04 00:34:52.000000000 -0400
+++ phonon-backend-gstreamer-4.5.1-new/gstreamer/CMakeLists.txt 2011-05-18 17:20:27.000000000 -0400
@@ -25,6 +25,7 @@
${GSTREAMER_PLUGIN_PBUTILS_INCLUDE_DIR}
${GLIB2_INCLUDE_DIR}
${LIBXML2_INCLUDE_DIR}
+ ${OPENGL_INCLUDE_DIR}
${X11_X11_INCLUDE_PATH})
add_definitions(-DPHONON_BACKEND_VERSION_4_2)
if (PHONON_FOUND_EXPERIMENTAL)
@@ -67,13 +68,13 @@
list(APPEND phonon_gstreamer_SRCS glrenderer.cpp)
endif(OPENGL_FOUND)

- if(NOT WIN32)
+ if(Q_WS_X11)
set(phonon_gstreamer_SRCS
${phonon_gstreamer_SRCS}
x11renderer.cpp)
macro_optional_find_package(Alsa)
macro_ensure_version("0.10.22" ${GSTREAMER_VERSION} GSTREAMER_HAS_NONBLOCKING_ALSASINK)
- endif(NOT WIN32)
+ endif(Q_WS_X11)
if(ALSA_FOUND AND NOT GSTREAMER_HAS_NONBLOCKING_ALSASINK)
add_definitions(-DUSE_ALSASINK2)
include_directories(${ALSA_INCLUDES})
diff -Nurd phonon-backend-gstreamer-4.5.1/gstreamer/devicemanager.cpp phonon-backend-gstreamer-4.5.1-new/gstreamer/devicemanager.cpp
--- phonon-backend-gstreamer-4.5.1/gstreamer/devicemanager.cpp 2011-05-04 00:34:53.000000000 -0400
+++ phonon-backend-gstreamer-4.5.1-new/gstreamer/devicemanager.cpp 2011-05-18 17:20:19.000000000 -0400
@@ -311,7 +311,7 @@
if (m_videoSinkWidget == "software") {
return new WidgetRenderer(parent);
}
-#ifndef Q_WS_QWS
+#ifdef Q_WS_X11
else if (m_videoSinkWidget == "xwindow") {
return new X11Renderer(parent);
} else {
diff -Nurd phonon-backend-gstreamer-4.5.1/gstreamer/x11renderer.cpp phonon-backend-gstreamer-4.5.1-new/gstreamer/x11renderer.cpp
--- phonon-backend-gstreamer-4.5.1/gstreamer/x11renderer.cpp 2011-05-04 00:34:55.000000000 -0400
+++ phonon-backend-gstreamer-4.5.1-new/gstreamer/x11renderer.cpp 2011-05-18 17:20:19.000000000 -0400
@@ -18,7 +18,7 @@
#include "videowidget.h"
#include "x11renderer.h"

-#ifndef Q_WS_QWS
+#ifdef Q_WS_X11

#include "backend.h"
#include "mediaobject.h"
@@ -199,4 +199,4 @@

QT_END_NAMESPACE

-#endif // Q_WS_QWS
+#endif // Q_WS_X11
diff -Nurd phonon-backend-gstreamer-4.5.1/gstreamer/x11renderer.h phonon-backend-gstreamer-4.5.1-new/gstreamer/x11renderer.h
--- phonon-backend-gstreamer-4.5.1/gstreamer/x11renderer.h 2011-05-04 00:34:55.000000000 -0400
+++ phonon-backend-gstreamer-4.5.1-new/gstreamer/x11renderer.h 2011-05-18 17:20:19.000000000 -0400
@@ -22,7 +22,7 @@

QT_BEGIN_NAMESPACE

-#ifndef Q_WS_QWS
+#ifdef Q_WS_X11

class QString;

@@ -58,7 +58,7 @@
}
} //namespace Phonon::Gstreamer

-#endif // Q_WS_QWS
+#endif // Q_WS_X11

QT_END_NAMESPACE

phonon-backend-gstreamer _unstable_ port .patch