aboutsummaryrefslogtreecommitdiff
path: root/multimedia/phonon
diff options
context:
space:
mode:
authorDima Panov <fluffy@FreeBSD.org>2010-05-11 09:47:27 +0000
committerDima Panov <fluffy@FreeBSD.org>2010-05-11 09:47:27 +0000
commit41d0bfeb68174becd59e9da96bdc49a090b51a3e (patch)
treeeb633289eed9d478293a97892ca7d7b2bfbe1b53 /multimedia/phonon
parent11026b2530c16eb169a3f9b5c9b876f89b285eef (diff)
downloadports-41d0bfeb68174becd59e9da96bdc49a090b51a3e.tar.gz
ports-41d0bfeb68174becd59e9da96bdc49a090b51a3e.zip
Notes
Diffstat (limited to 'multimedia/phonon')
-rw-r--r--multimedia/phonon/Makefile66
-rw-r--r--multimedia/phonon/distinfo3
-rw-r--r--multimedia/phonon/files/patch-CMakeLists.txt32
-rw-r--r--multimedia/phonon/files/patch-phonon_pulsesupport.cpp34
-rw-r--r--multimedia/phonon/pkg-descr1
-rw-r--r--multimedia/phonon/pkg-message3
-rw-r--r--multimedia/phonon/pkg-plist170
7 files changed, 309 insertions, 0 deletions
diff --git a/multimedia/phonon/Makefile b/multimedia/phonon/Makefile
new file mode 100644
index 000000000000..f3ed1e46432f
--- /dev/null
+++ b/multimedia/phonon/Makefile
@@ -0,0 +1,66 @@
+# New ports collection Makefile for: phonon
+# Date created: 2008-01-30
+# Whom: Martin Wilke <miwi@FreeBSD.org>
+#
+# $FreeBSD$
+
+PORTNAME= phonon
+PORTVERSION= 4.4.1
+CATEGORIES= multimedia kde ipv6
+MASTER_SITES= ${MASTER_SITE_KDE} \
+ http://ns.ael.ru/~fluffy.khv/distfiles/
+MASTER_SITE_SUBDIR= ${PHONON_BRANCH}/${PORTNAME}/${PORTVERSION}/
+DIST_SUBDIR= KDE
+
+MAINTAINER= kde@FreeBSD.org
+COMMENT= Multimedia framework for KDE4
+
+CONFLICTS= qt4-phonon-4* kdebase-runtime-4.1.[0-4]*
+
+PHONON_BRANCH= stable
+USE_BZIP2= yes
+USE_KDE4= kdehier automoc4 kdeprefix
+KDE4_BUILDENV= yes
+USE_QT_VER= 4
+QT_COMPONENTS= gui dbus xml qtestlib \
+ qmake_build moc_build rcc_build uic_build
+
+OPTIONS= PULSEAUDIO "Phonon support for PulseAudio" off
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_PULSEAUDIO)
+CMAKE_ARGS+= -DWITH_PulseAudio:BOOL=ON
+LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio
+USE_GNOME+= glib20
+.else
+CMAKE_ARGS+= -DWITH_PulseAudio:BOOL=OFF
+.endif
+
+PLIST_SUB+= QT_PREFIX=${QT_PREFIX}
+
+.if defined(WITH_QT_PHONON)
+IGNORE= conflicts with Qt4 phonon. Please, deinstall qt4-phonon and set WITH_KDE_PHONON to continue
+.endif
+
+post-patch:
+#fix finding automoc when PREFIX is not matched KDE4_PREFIX
+ ${REINPLACE_CMD} -e 's|NO_DEFAULT_PATH|${KDE4_PREFIX} NO_DEFAULT_PATH|' \
+ ${PATCH_WRKSRC}/cmake/FindAutomoc4.cmake
+
+pre-configure:
+ ${REINPLACE_CMD} -e '/phonon.pc/s|pkgconfig|../libdata/pkgconfig|' \
+ -e 's|{QT_INCLUDES}|{QT_INCLUDES} ${LOCALBASE}/include|'\
+ ${PATCH_WRKSRC}/CMakeLists.txt
+
+post-install:
+ ${LN} -sf ${PREFIX}/include/phonon ${QT_INCDIR}/phonon
+ ${LN} -sf ${PREFIX}/include/phonon ${QT_INCDIR}/Phonon
+ ${LN} -sf ${PREFIX}/include/KDE/Phonon ${PREFIX}/include/phonon/Phonon
+ ${LN} -sf ${PREFIX}/lib/libphonon.so.4.4.0 ${QT_LIBDIR}/libphonon.so
+ ${LN} -sf ${PREFIX}/lib/libphonon.so.4.4.0 ${QT_LIBDIR}/libphonon.so.4
+ ${LN} -sf ${PREFIX}/lib/libphononexperimental.so.4.4.0 ${QT_LIBDIR}/libphononexperimental.so
+ ${LN} -sf ${PREFIX}/lib/libphononexperimental.so.4.4.0 ${QT_LIBDIR}/libphononexperimental.so.4
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/multimedia/phonon/distinfo b/multimedia/phonon/distinfo
new file mode 100644
index 000000000000..f8471851a1b8
--- /dev/null
+++ b/multimedia/phonon/distinfo
@@ -0,0 +1,3 @@
+MD5 (KDE/phonon-4.4.1.tar.bz2) = 5a1444f009a77054f16fea38c08e6cb5
+SHA256 (KDE/phonon-4.4.1.tar.bz2) = 8a52b0e74c5fb5c8dd3ce65d745c7052cdcea0e7535658fbc655671cef5e5277
+SIZE (KDE/phonon-4.4.1.tar.bz2) = 625008
diff --git a/multimedia/phonon/files/patch-CMakeLists.txt b/multimedia/phonon/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..a3b0e7e15147
--- /dev/null
+++ b/multimedia/phonon/files/patch-CMakeLists.txt
@@ -0,0 +1,32 @@
+--- ./CMakeLists.txt.orig 2009-01-22 11:20:44.000000000 +0300
++++ ./CMakeLists.txt 2009-02-21 01:36:17.000000000 +0300
+@@ -127,12 +127,12 @@
+
+ try_run(_run_result _compile_result ${CMAKE_BINARY_DIR} ${_source_file} CMAKE_FLAGS "${_include_dirs}")
+
+- if(NOT _compile_result)
+- message(FATAL_ERROR "Could not compile simple test program:\n ${_source}")
+- endif(NOT _compile_result)
+- if(_run_result)
+- message(FATAL_ERROR "Qt compiled without support for -fvisibility=hidden. This will break plugins and linking of some applications. Please fix your Qt installation.")
+- endif(_run_result)
++# if(NOT _compile_result)
++# message(FATAL_ERROR "Could not compile simple test program:\n ${_source}")
++# endif(NOT _compile_result)
++# if(_run_result)
++# message(FATAL_ERROR "Qt compiled without support for -fvisibility=hidden. This will break plugins and linking of some applications. Please fix your Qt installation.")
++# endif(_run_result)
+
+ if (GCC_IS_NEWER_THAN_4_2)
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility-inlines-hidden")
+@@ -260,8 +260,8 @@
+ endif (Q_WS_WIN)
+
+ if (Q_WS_X11)
+- add_subdirectory(gstreamer)
+- add_subdirectory(xine)
++# add_subdirectory(gstreamer)
++# add_subdirectory(xine)
+ endif (Q_WS_X11)
+
+ if(NOT WIN32) # pkgconfig file
diff --git a/multimedia/phonon/files/patch-phonon_pulsesupport.cpp b/multimedia/phonon/files/patch-phonon_pulsesupport.cpp
new file mode 100644
index 000000000000..3b54bdce8fcf
--- /dev/null
+++ b/multimedia/phonon/files/patch-phonon_pulsesupport.cpp
@@ -0,0 +1,34 @@
+--- ./phonon/pulsesupport.cpp
++++ ./phonon/pulsesupport.cpp
+@@ -569,6 +569,31 @@
+ return;
+ }
+ pa_operation_unref(o);
++
++ // In the case of reconnection or simply lagging behind the stream object creation
++ // on startup (due to the probe+reconnect system), we invalidate all loaded streams
++ // and then load up info about all streams.
++ for (QMap<QString, PulseStream*>::iterator it = s_outputStreams.begin(); it != s_outputStreams.end(); ++it) {
++ PulseStream *stream = *it;
++ logMessage(QString("Phonon Output Stream %1 is gone at the PA end. Marking it as invalid in our cache as we may reuse it.").arg(stream->uuid()));
++ stream->setIndex(PA_INVALID_INDEX);
++ }
++ if (!(o = pa_context_get_sink_input_info_list(c, sink_input_cb, NULL))) {
++ logMessage(QString("pa_context_get_sink_input_info_list() failed"));
++ return;
++ }
++ pa_operation_unref(o);
++
++ for (QMap<QString, PulseStream*>::iterator it = s_captureStreams.begin(); it != s_captureStreams.end(); ++it) {
++ PulseStream *stream = *it;
++ logMessage(QString("Phonon Capture Stream %1 is gone at the PA end. Marking it as invalid in our cache as we may reuse it.").arg(stream->uuid()));
++ stream->setIndex(PA_INVALID_INDEX);
++ }
++ if (!(o = pa_context_get_source_output_info_list(c, source_output_cb, NULL))) {
++ logMessage(QString("pa_context_get_source_output_info_list() failed"));
++ return;
++ }
++ pa_operation_unref(o);
+ }
+
+ #ifdef HAVE_PULSEAUDIO_DEVICE_MANAGER \ No newline at end of file
diff --git a/multimedia/phonon/pkg-descr b/multimedia/phonon/pkg-descr
new file mode 100644
index 000000000000..8b64634e7f07
--- /dev/null
+++ b/multimedia/phonon/pkg-descr
@@ -0,0 +1 @@
+Phonon is multimedia framework for QT4/KDE4.
diff --git a/multimedia/phonon/pkg-message b/multimedia/phonon/pkg-message
new file mode 100644
index 000000000000..3aaf6ee5f229
--- /dev/null
+++ b/multimedia/phonon/pkg-message
@@ -0,0 +1,3 @@
+Please consider to install backends for phonon:
+- Xine backend (multimedia/phonon-xine) and/or
+- Gstreamer backend (multimedia/phonon-gstreamer)
diff --git a/multimedia/phonon/pkg-plist b/multimedia/phonon/pkg-plist
new file mode 100644
index 000000000000..99f6c868d474
--- /dev/null
+++ b/multimedia/phonon/pkg-plist
@@ -0,0 +1,170 @@
+include/KDE/Phonon/AbstractAudioOutput
+include/KDE/Phonon/AbstractMediaStream
+include/KDE/Phonon/AbstractVideoOutput
+include/KDE/Phonon/AddonInterface
+include/KDE/Phonon/AudioDevice
+include/KDE/Phonon/AudioDeviceEnumerator
+include/KDE/Phonon/AudioOutput
+include/KDE/Phonon/AudioOutputDevice
+include/KDE/Phonon/AudioOutputDeviceModel
+include/KDE/Phonon/AudioOutputInterface
+include/KDE/Phonon/BackendCapabilities
+include/KDE/Phonon/BackendInterface
+include/KDE/Phonon/Effect
+include/KDE/Phonon/EffectDescription
+include/KDE/Phonon/EffectDescriptionModel
+include/KDE/Phonon/EffectInterface
+include/KDE/Phonon/EffectParameter
+include/KDE/Phonon/EffectWidget
+include/KDE/Phonon/Experimental/AbstractVideoDataOutput
+include/KDE/Phonon/Experimental/AudioDataOutput
+include/KDE/Phonon/Experimental/SnapshotInterface
+include/KDE/Phonon/Experimental/VideoDataOutput
+include/KDE/Phonon/Experimental/VideoDataOutputInterface
+include/KDE/Phonon/Experimental/VideoFrame
+include/KDE/Phonon/Experimental/VideoFrame2
+include/KDE/Phonon/Experimental/Visualization
+include/KDE/Phonon/Global
+include/KDE/Phonon/MediaController
+include/KDE/Phonon/MediaNode
+include/KDE/Phonon/MediaObject
+include/KDE/Phonon/MediaObjectInterface
+include/KDE/Phonon/MediaSource
+include/KDE/Phonon/ObjectDescription
+include/KDE/Phonon/ObjectDescriptionModel
+include/KDE/Phonon/Path
+include/KDE/Phonon/PlatformPlugin
+include/KDE/Phonon/SeekSlider
+include/KDE/Phonon/StreamInterface
+include/KDE/Phonon/VideoPlayer
+include/KDE/Phonon/VideoWidget
+include/KDE/Phonon/VideoWidgetInterface
+include/KDE/Phonon/VolumeFaderEffect
+include/KDE/Phonon/VolumeFaderInterface
+include/KDE/Phonon/VolumeSlider
+include/phonon/AbstractAudioOutput
+include/phonon/AbstractMediaStream
+include/phonon/AbstractVideoOutput
+include/phonon/AddonInterface
+include/phonon/AudioCaptureDevice
+include/phonon/AudioCaptureDeviceModel
+include/phonon/AudioChannelDescription
+include/phonon/AudioChannelDescriptionModel
+include/phonon/AudioOutput
+include/phonon/AudioOutputDevice
+include/phonon/AudioOutputDeviceModel
+include/phonon/AudioOutputInterface
+include/phonon/AudioOutputInterface40
+include/phonon/AudioOutputInterface42
+include/phonon/BackendCapabilities
+include/phonon/BackendInterface
+include/phonon/Effect
+include/phonon/EffectDescription
+include/phonon/EffectDescriptionModel
+include/phonon/EffectInterface
+include/phonon/EffectParameter
+include/phonon/EffectWidget
+include/phonon/Global
+include/phonon/MediaController
+include/phonon/MediaNode
+include/phonon/MediaObject
+include/phonon/MediaObjectInterface
+include/phonon/MediaSource
+include/phonon/ObjectDescription
+include/phonon/ObjectDescriptionData
+include/phonon/ObjectDescriptionModel
+include/phonon/ObjectDescriptionModelData
+include/phonon/Path
+include/phonon/Phonon
+include/phonon/PlatformPlugin
+include/phonon/SeekSlider
+include/phonon/StreamInterface
+include/phonon/SubtitleDescription
+include/phonon/SubtitleDescriptionModel
+include/phonon/VideoPlayer
+include/phonon/VideoWidget
+include/phonon/VideoWidgetInterface
+include/phonon/VideoWidgetInterface44
+include/phonon/VideoWidgetInterfaceLatest
+include/phonon/VolumeFaderEffect
+include/phonon/VolumeFaderInterface
+include/phonon/VolumeSlider
+include/phonon/abstractaudiooutput.h
+include/phonon/abstractmediastream.h
+include/phonon/abstractvideooutput.h
+include/phonon/addoninterface.h
+include/phonon/audiodataoutput.h
+include/phonon/audiodataoutputinterface.h
+include/phonon/audiooutput.h
+include/phonon/audiooutputinterface.h
+include/phonon/backendcapabilities.h
+include/phonon/backendinterface.h
+include/phonon/effect.h
+include/phonon/effectinterface.h
+include/phonon/effectparameter.h
+include/phonon/effectwidget.h
+include/phonon/experimental/abstractaudiodataoutput.h
+include/phonon/experimental/abstractvideodataoutput.h
+include/phonon/experimental/audiodataoutput.h
+include/phonon/experimental/audiodataoutputinterface.h
+include/phonon/experimental/audioformat.h
+include/phonon/experimental/avcapture.h
+include/phonon/experimental/backendcapabilities.h
+include/phonon/experimental/backendinterface.h
+include/phonon/experimental/export.h
+include/phonon/experimental/globalconfig.h
+include/phonon/experimental/mediasource.h
+include/phonon/experimental/objectdescription.h
+include/phonon/experimental/packet.h
+include/phonon/experimental/packetpool.h
+include/phonon/experimental/phononnamespace.h
+include/phonon/experimental/snapshotinterface.h
+include/phonon/experimental/videodataoutput.h
+include/phonon/experimental/videodataoutput2.h
+include/phonon/experimental/videodataoutputinterface.h
+include/phonon/experimental/videoframe.h
+include/phonon/experimental/videoframe2.h
+include/phonon/experimental/videowidget.h
+include/phonon/experimental/visualization.h
+include/phonon/globalconfig.h
+include/phonon/mediacontroller.h
+include/phonon/medianode.h
+include/phonon/mediaobject.h
+include/phonon/mediaobjectinterface.h
+include/phonon/mediasource.h
+include/phonon/objectdescription.h
+include/phonon/objectdescriptionmodel.h
+include/phonon/path.h
+include/phonon/phonon_export.h
+include/phonon/phonondefs.h
+include/phonon/phononnamespace.h
+include/phonon/platformplugin.h
+include/phonon/pulsesupport.h
+include/phonon/seekslider.h
+include/phonon/streaminterface.h
+include/phonon/videoplayer.h
+include/phonon/videowidget.h
+include/phonon/videowidgetinterface.h
+include/phonon/volumefadereffect.h
+include/phonon/volumefaderinterface.h
+include/phonon/volumeslider.h
+lib/libphonon.so
+lib/libphonon.so.4
+lib/libphonon.so.4.4.0
+lib/libphononexperimental.so
+lib/libphononexperimental.so.4
+lib/libphononexperimental.so.4.4.0
+libdata/pkgconfig/phonon.pc
+share/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml
+@dirrm include/phonon/experimental
+@dirrm include/phonon
+@dirrm include/KDE/Phonon/Experimental
+@dirrm include/KDE/Phonon
+@cwd %%QT_PREFIX%%
+%%QT_INCDIR_REL%%/phonon
+%%QT_INCDIR_REL%%/Phonon
+%%QT_LIBDIR_REL%%/libphonon.so
+%%QT_LIBDIR_REL%%/libphonon.so.4
+%%QT_LIBDIR_REL%%/libphononexperimental.so
+%%QT_LIBDIR_REL%%/libphononexperimental.so.4
+