summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2012-05-25 02:15:20 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2012-05-25 02:15:20 +0000
commitf564508406256a7dc7e7f9589788c00e917c1863 (patch)
treeb6ce65710c94504aa252a65ee74453340de3d60c /multimedia
parentUpdate KDE related ports: (diff)
KDE/FreeBSD team presents long awaited KDE SC 4.8.3!
kdeaccessibility4 and kdeutils4 are now meta ports. deskutils/kdepim4 updated to match KDE SC version, old kdepim preserved in deskutils/kdepim44. Follow UPDATING instruction! New ports: - accessibility/kaccessible - accessibility/kmag - accessibility/kmousetool - accessibility/kmouth - archivers/ark - comms/kremotecontrol - deskutils/kcharselect - deskutils/kdepim44 - deskutils/kdepim44-runtime - deskutils/superkaramba - devel/kdebindings4-perl-perlkde - devel/kdebindings4-perl-perlqt - math/analitza - math/kcalc - misc/kde4-l10n-fa - security/kgpg-kde4 - security/kwallet - sysutils/kdf - sysutils/kfloppy - sysutils/sweeper - vietnamese/kde4-l10n - x11-clocks/ktimer - x11/kactivities - x11/libkonq Removed ports: - devel/kdebindings4-kross-interpreters - devel/kdebindings4-python - devel/kdebindings4-ruby - devel/kdebindings4-smoke
Notes
Notes: svn path=/head/; revision=297371
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/kdemultimedia4/Makefile6
-rw-r--r--multimedia/kdemultimedia4/distinfo4
-rw-r--r--multimedia/kdemultimedia4/files/extrapatch-no_alsa (renamed from multimedia/kdemultimedia4/files/extrapatch-CMakeLists.txt)32
-rw-r--r--multimedia/kdemultimedia4/files/patch-svn1250843364
4 files changed, 21 insertions, 385 deletions
diff --git a/multimedia/kdemultimedia4/Makefile b/multimedia/kdemultimedia4/Makefile
index e96a498c3876..50bf62a26260 100644
--- a/multimedia/kdemultimedia4/Makefile
+++ b/multimedia/kdemultimedia4/Makefile
@@ -6,7 +6,6 @@
PORTNAME= kdemultimedia
PORTVERSION= ${KDE4_VERSION}
-PORTREVISION= 3
CATEGORIES= multimedia kde ipv6
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
@@ -21,7 +20,6 @@ LIB_DEPENDS= FLAC.10:${PORTSDIR}/audio/flac \
tag.1:${PORTSDIR}/audio/taglib \
vorbis.4:${PORTSDIR}/audio/libvorbis \
musicbrainz3.6:${PORTSDIR}/audio/libmusicbrainz3 \
- xine.2:${PORTSDIR}/multimedia/libxine \
swscale.1:${PORTSDIR}/multimedia/ffmpeg
.if !defined(PACKAGE_BUILDING)
@@ -35,7 +33,7 @@ KDE4_BUILDENV= yes
USE_QT_VER= 4
QT_COMPONENTS= dbus qt3support svg xml \
moc_build qmake_build rcc_build uic_build
-USE_BZIP2= yes
+USE_XZ= yes
MAKE_JOBS_SAFE= yes
CMAKE_ARGS= -DWITH_TunePimp:BOOL=OFF
@@ -45,7 +43,7 @@ OPTIONS= ALSA "Build with ALSA compatibility library" off \
.include <bsd.port.options.mk>
.if !defined(WITH_ALSA)
-EXTRA_PATCHES+= ${FILESDIR}/extrapatch-CMakeLists.txt
+EXTRA_PATCHES+= ${FILESDIR}/extrapatch-no_alsa
.else
LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib
.endif
diff --git a/multimedia/kdemultimedia4/distinfo b/multimedia/kdemultimedia4/distinfo
index 20d6e89d7527..ae137f1eee14 100644
--- a/multimedia/kdemultimedia4/distinfo
+++ b/multimedia/kdemultimedia4/distinfo
@@ -1,2 +1,2 @@
-SHA256 (KDE/kdemultimedia-4.7.4.tar.bz2) = c1236ed17f575ff793869e5ade024f892ae36aba27a00edafb3495806fb81b28
-SIZE (KDE/kdemultimedia-4.7.4.tar.bz2) = 1644450
+SHA256 (KDE/kdemultimedia-4.8.3.tar.xz) = 9dbad22a853cfc3042305218035ad097b9cb1da287591ace410f9fe430e1b4c8
+SIZE (KDE/kdemultimedia-4.8.3.tar.xz) = 1501996
diff --git a/multimedia/kdemultimedia4/files/extrapatch-CMakeLists.txt b/multimedia/kdemultimedia4/files/extrapatch-no_alsa
index 1a24ca8d6cc8..fdb9b466b253 100644
--- a/multimedia/kdemultimedia4/files/extrapatch-CMakeLists.txt
+++ b/multimedia/kdemultimedia4/files/extrapatch-no_alsa
@@ -1,5 +1,5 @@
---- ./CMakeLists.txt.orig 2010-07-07 21:12:23.000000000 +0400
-+++ ./CMakeLists.txt 2010-08-05 19:14:21.501854303 +0400
+--- ./CMakeLists.txt.orig 2012-05-13 11:39:57.594807250 +0200
++++ ./CMakeLists.txt 2012-05-13 11:40:43.204991538 +0200
@@ -6,7 +6,6 @@
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
@@ -9,30 +9,32 @@
set(PULSEAUDIO_MINIMUM_VERSION "0.9.12")
macro_optional_find_package(PulseAudio)
@@ -15,7 +14,8 @@
- macro_optional_find_package(MusicBrainz)
- macro_log_feature(MUSICBRAINZ_FOUND "MusicBrainz" "A library that provides access to metadata lookup on the MusicBrainz server" "http://www.musicbrainz.org" FALSE "" "Music metadata lookup for KDE multimedia applications. You need version 2.x of libmusicbrainz.")
+ macro_optional_find_package(MusicBrainz3)
+ macro_log_feature(MUSICBRAINZ3_FOUND "MusicBrainz3" "A library that provides access to metadata lookup on the MusicBrainz server" "http://www.musicbrainz.org" FALSE "" "Music metadata lookup for KDE multimedia applications. You need version 3.x of libmusicbrainz, otherwise kscd will not be compiled.")
-alsa_configure_file(${CMAKE_BINARY_DIR}/config-alsa.h)
+find_file(CONFIG_ALSA_H_CMAKE config-alsa.h.cmake ${CMAKE_MODULE_PATH})
+configure_file(${CONFIG_ALSA_H_CMAKE} ${CMAKE_BINARY_DIR}/config-alsa.h)
- macro_optional_find_package(FFmpeg)
+ macro_optional_find_package(FFmpeg COMPONENTS AVCODEC AVFORMAT SWSCALE)
macro_log_feature(FFMPEG_FOUND "FFmpeg" "FFmpeg libraries" "FFmpeg" FALSE "http://www.ffmpeg.org" "FFmpeg required for FFMpegVideoPreview backend")
---- ./kmix/CMakeLists.txt.orig 2011-02-13 14:28:03.000000000 -0200
-+++ ./kmix/CMakeLists.txt 2011-02-13 14:28:01.000000000 -0200
-@@ -1,13 +1,12 @@
- project(kmix)
+--- ./kmix/CMakeLists.txt.orig 2012-05-13 11:40:48.034926108 +0200
++++ ./kmix/CMakeLists.txt 2012-05-13 11:41:22.134856828 +0200
+@@ -4,7 +4,6 @@
+ include(KDE4Defaults)
+ include(MacroLibrary)
- # search packages used by KDE
-find_package(Alsa)
--
- set(PULSEAUDIO_MINIMUM_VERSION "0.9.12")
- macro_optional_find_package(PulseAudio)
+
+ macro_optional_find_package(PulseAudio "0.9.12")
macro_log_feature(PULSEAUDIO_FOUND "PulseAudio" "PulseAudio Audio Server" "http://www.pulseaudio.org/" FALSE "0.9.12" "libpulse is needed to let KMix control PulseAudio")
--alsa_configure_file(${CMAKE_BINARY_DIR}/config-alsa.h)
+@@ -12,7 +11,8 @@
+ pkg_check_modules(CANBERRA libcanberra)
+ macro_log_feature(CANBERRA_FOUND "libcanberra" "libcanberra audio library" "http://0pointer.de/lennart/projects/libcanberra/" FALSE "" "libcanberra is needed for kmix sound feedback")
+-alsa_configure_file(${CMAKE_BINARY_DIR}/config-alsa.h)
+find_file(CONFIG_ALSA_H_CMAKE config-alsa.h.cmake ${CMAKE_MODULE_PATH})
+configure_file(${CONFIG_ALSA_H_CMAKE} ${CMAKE_BINARY_DIR}/config-alsa.h)
+
add_definitions (${QT_DEFINITIONS} ${QT_QTDBUS_DEFINITIONS} ${KDE4_DEFINITIONS} )
- include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
diff --git a/multimedia/kdemultimedia4/files/patch-svn1250843 b/multimedia/kdemultimedia4/files/patch-svn1250843
deleted file mode 100644
index 25b83e8b2d02..000000000000
--- a/multimedia/kdemultimedia4/files/patch-svn1250843
+++ /dev/null
@@ -1,364 +0,0 @@
---- ./kmix/backends/mixer_backend.cpp.orig 2011-08-30 10:51:10.757627695 +0200
-+++ ./kmix/backends/mixer_backend.cpp 2011-08-30 11:02:19.000000000 +0200
-@@ -25,50 +25,54 @@
- #include "core/mixer.h"
- #include <QTimer>
-
-+#define POLL_OSS_RATE_SLOW 1500
-+#define POLL_OSS_RATE_FAST 50
-+
-+
- #include "mixer_backend_i18n.cpp"
-
- Mixer_Backend::Mixer_Backend(Mixer *mixer, int device) :
-- m_devnum (device) , m_isOpen(false), m_recommendedMaster(0), _mixer(mixer), _pollingTimer(0)
-+m_devnum (device) , m_isOpen(false), m_recommendedMaster(0), _mixer(mixer), _pollingTimer(0)
-
- {
-- // In all cases create a QTimer. We will use it once as a singleShot(), even if something smart
-- // like ::select() is possible (as in ALSA).
-- _pollingTimer = new QTimer(); // will be started on open() and stopped on close()
-- connect( _pollingTimer, SIGNAL(timeout()), this, SLOT(readSetFromHW()), Qt::QueuedConnection);
-+ // In all cases create a QTimer. We will use it once as a singleShot(), even if something smart
-+ // like ::select() is possible (as in ALSA).
-+ _pollingTimer = new QTimer(); // will be started on open() and stopped on close()
-+ connect( _pollingTimer, SIGNAL(timeout()), this, SLOT(readSetFromHW()), Qt::QueuedConnection);
- }
-
- Mixer_Backend::~Mixer_Backend()
- {
-- delete _pollingTimer;
-- qDeleteAll(m_mixDevices);
-- m_mixDevices.clear();
-+ delete _pollingTimer;
-+ qDeleteAll(m_mixDevices);
-+ m_mixDevices.clear();
- }
-
-
- bool Mixer_Backend::openIfValid() {
-- bool valid = false;
-- int ret = open();
-- if ( ret == 0 && (m_mixDevices.count() > 0 || _mixer->isDynamic())) {
-- valid = true;
-- // A better ID is now calculated in mixertoolbox.cpp, and set via setID(),
-- // but we want a somehow usable fallback just in case.
--
-- if ( needsPolling() ) {
-- _pollingTimer->start(50);
-- }
-- else {
-- // The initial state must be read manually
-- QTimer::singleShot( 50, this, SLOT( readSetFromHW() ) );
-- }
-- } // cold be opened
-- else {
-- close();
-- }
-- return valid;
-+ bool valid = false;
-+ int ret = open();
-+ if ( ret == 0 && (m_mixDevices.count() > 0 || _mixer->isDynamic())) {
-+ valid = true;
-+ // A better ID is now calculated in mixertoolbox.cpp, and set via setID(),
-+ // but we want a somehow usable fallback just in case.
-+
-+ if ( needsPolling() ) {
-+ _pollingTimer->start(POLL_OSS_RATE_FAST);
-+ }
-+ else {
-+ // The initial state must be read manually
-+ QTimer::singleShot( POLL_OSS_RATE_FAST, this, SLOT(readSetFromHW()) );
-+ }
-+ } // cold be opened
-+ else {
-+ close();
-+ }
-+ return valid;
- }
-
- bool Mixer_Backend::isOpen() {
-- return m_isOpen;
-+ return m_isOpen;
- }
-
- /**
-@@ -77,7 +81,7 @@
- * @return true, if there are changes. Otherwise false is returned.
- */
- bool Mixer_Backend::prepareUpdateFromHW() {
-- return true;
-+ return true;
- }
-
-
-@@ -90,47 +94,81 @@
- * 2) When reconstructing any MixerWidget (e.g. DockIcon after applying preferences)
- */
- void Mixer_Backend::readSetFromHWforceUpdate() const {
-- _readSetFromHWforceUpdate = true;
-+ _readSetFromHWforceUpdate = true;
- }
-
-
- /**
- You can call this to retrieve the freshest information from the mixer HW.
- This method is also called regulary by the mixer timer.
--*/
-+ */
- void Mixer_Backend::readSetFromHW()
- {
-- bool updated = prepareUpdateFromHW();
-- if ( (! updated) && (! _readSetFromHWforceUpdate) ) {
-- // Some drivers (ALSA) are smart. We don't need to run the following
-- // time-consuming update loop if there was no change
-- kDebug(67100) << "Mixer::readSetFromHW(): smart-update-tick";
-- return;
-- }
-- _readSetFromHWforceUpdate = false;
-+ bool updated = prepareUpdateFromHW();
-+ if ( (! updated) && (! _readSetFromHWforceUpdate) ) {
-+ // Some drivers (ALSA) are smart. We don't need to run the following
-+ // time-consuming update loop if there was no change
-+ kDebug(67100) << "Mixer::readSetFromHW(): smart-update-tick";
-+ return;
-+ }
-
-- int ret = Mixer::OK;
-+ //kDebug() << "---tick---" << QTime::currentTime();
-+ _readSetFromHWforceUpdate = false;
-
-- int mdCount = m_mixDevices.count();
-- for(int i=0; i<mdCount ; ++i )
-- {
-- MixDevice *md = m_mixDevices[i];
-- ret = readVolumeFromHW( md->id(), md );
-- if (md->isEnum() ) {
-- /*
-- * This could be reworked:
-- * Plan: Read everything (incuding enum's) in readVolumeFromHW().
-- * readVolumeFromHW() should then be renamed to readHW().
-- */
-- md->setEnumId( enumIdHW(md->id()) );
-- }
-- }
--
-- if ( ret == Mixer::OK )
-+ int ret = Mixer::OK_UNCHANGED;
-+
-+ int mdCount = m_mixDevices.count();
-+ for(int i=0; i<mdCount ; ++i )
-+ {
-+ MixDevice *md = m_mixDevices[i];
-+ int retLoop = readVolumeFromHW( md->id(), md );
-+ if (md->isEnum() ) {
-+ /*
-+ * This could be reworked:
-+ * Plan: Read everything (incuding enum's) in readVolumeFromHW().
-+ * readVolumeFromHW() should then be renamed to readHW().
-+ */
-+ md->setEnumId( enumIdHW(md->id()) );
-+ }
-+ if ( retLoop == Mixer::OK && ret == Mixer::OK_UNCHANGED )
-+ {
-+ ret = Mixer::OK;
-+ }
-+ else if ( retLoop != Mixer::OK && retLoop != Mixer::OK_UNCHANGED )
-+ {
-+ ret = retLoop;
-+ }
-+ }
-+
-+ if ( ret == Mixer::OK )
- {
- // We explicitely exclude Mixer::OK_UNCHANGED and Mixer::ERROR_READ
-+ if ( needsPolling() )
-+ {
-+ _pollingTimer->setInterval(POLL_OSS_RATE_FAST);
-+ QTime fastPollingEndsAt = QTime::currentTime ();
-+ fastPollingEndsAt = fastPollingEndsAt.addSecs(5);
-+ _fastPollingEndsAt = fastPollingEndsAt;
-+ //_fastPollingEndsAt = fastPollingEndsAt;
-+ kDebug() << "Start fast polling from " << QTime::currentTime() <<"until " << _fastPollingEndsAt;
-+ }
- emit controlChanged();
- }
-+
-+ else
-+ {
-+ // This code path is entered on Mixer::OK_UNCHANGED and ERROR
-+ if ( !_fastPollingEndsAt.isNull() )
-+ {
-+ if( _fastPollingEndsAt < QTime::currentTime () )
-+ {
-+ kDebug() << "End fast polling";
-+ _fastPollingEndsAt = QTime();
-+ if ( needsPolling() )
-+ _pollingTimer->setInterval(POLL_OSS_RATE_SLOW);
-+ }
-+ }
-+ }
- }
-
- /**
-@@ -139,19 +177,19 @@
- * The users preference is NOT returned by this method - see the Mixer class for that.
- */
- MixDevice* Mixer_Backend::recommendedMaster() {
-- if ( m_recommendedMaster != 0 ) {
-- return m_recommendedMaster; // Backend has set a recommended master. Thats fine.
-- } // recommendation from Backend
-- else if ( m_mixDevices.count() > 0 ) {
-- return m_mixDevices.at(0); // Backend has NOT set a recommended master. Evil backend => lets help out.
-- } //first device (if exists)
-- else {
-- if ( !_mixer->isDynamic()) {
-- // This should never ever happen, as KMix doe NOT accept soundcards without controls
-- kError(67100) << "Mixer_Backend::recommendedMaster(): returning invalid master. This is a bug in KMix. Please file a bug report stating how you produced this." << endl;
-- }
-- return (MixDevice*)0;
-- }
-+ if ( m_recommendedMaster != 0 ) {
-+ return m_recommendedMaster; // Backend has set a recommended master. Thats fine.
-+ } // recommendation from Backend
-+ else if ( m_mixDevices.count() > 0 ) {
-+ return m_mixDevices.at(0); // Backend has NOT set a recommended master. Evil backend => lets help out.
-+ } //first device (if exists)
-+ else {
-+ if ( !_mixer->isDynamic()) {
-+ // This should never ever happen, as KMix doe NOT accept soundcards without controls
-+ kError(67100) << "Mixer_Backend::recommendedMaster(): returning invalid master. This is a bug in KMix. Please file a bug report stating how you produced this." << endl;
-+ }
-+ return (MixDevice*)0;
-+ }
- }
-
- /**
-@@ -161,7 +199,7 @@
- * code in its subclass (see Mixer_ALSA.cpp for an example).
- */
- void Mixer_Backend::setEnumIdHW(const QString& , unsigned int) {
-- return;
-+ return;
- }
-
- /**
-@@ -171,55 +209,55 @@
- * code in its subclass (see Mixer_ALSA.cpp for an example).
- */
- unsigned int Mixer_Backend::enumIdHW(const QString& ) {
-- return 0;
-+ return 0;
- }
-
- /**
- * Move the stream to a new destination
- */
- bool Mixer_Backend::moveStream( const QString& id, const QString& destId ) {
-- Q_UNUSED(id);
-- Q_UNUSED(destId);
-- return false;
-+ Q_UNUSED(id);
-+ Q_UNUSED(destId);
-+ return false;
- }
-
- void Mixer_Backend::errormsg(int mixer_error)
- {
-- QString l_s_errText;
-- l_s_errText = errorText(mixer_error);
-- kError() << l_s_errText << "\n";
-+ QString l_s_errText;
-+ l_s_errText = errorText(mixer_error);
-+ kError() << l_s_errText << "\n";
- }
-
- int Mixer_Backend::id2num(const QString& id)
- {
-- return id.toInt();
-+ return id.toInt();
- }
-
- QString Mixer_Backend::errorText(int mixer_error)
- {
-- QString l_s_errmsg;
-- switch (mixer_error)
-- {
-- case Mixer::ERR_PERM:
-- l_s_errmsg = i18n("kmix:You do not have permission to access the mixer device.\n" \
-- "Please check your operating systems manual to allow the access.");
-- break;
-- case Mixer::ERR_WRITE:
-- l_s_errmsg = i18n("kmix: Could not write to mixer.");
-- break;
-- case Mixer::ERR_READ:
-- l_s_errmsg = i18n("kmix: Could not read from mixer.");
-- break;
-- case Mixer::ERR_OPEN:
-- l_s_errmsg = i18n("kmix: Mixer cannot be found.\n" \
-- "Please check that the soundcard is installed and that\n" \
-- "the soundcard driver is loaded.\n");
-- break;
-- default:
-- l_s_errmsg = i18n("kmix: Unknown error. Please report how you produced this error.");
-- break;
-- }
-- return l_s_errmsg;
-+ QString l_s_errmsg;
-+ switch (mixer_error)
-+ {
-+ case Mixer::ERR_PERM:
-+ l_s_errmsg = i18n("kmix:You do not have permission to access the mixer device.\n" \
-+ "Please check your operating systems manual to allow the access.");
-+ break;
-+ case Mixer::ERR_WRITE:
-+ l_s_errmsg = i18n("kmix: Could not write to mixer.");
-+ break;
-+ case Mixer::ERR_READ:
-+ l_s_errmsg = i18n("kmix: Could not read from mixer.");
-+ break;
-+ case Mixer::ERR_OPEN:
-+ l_s_errmsg = i18n("kmix: Mixer cannot be found.\n" \
-+ "Please check that the soundcard is installed and that\n" \
-+ "the soundcard driver is loaded.\n");
-+ break;
-+ default:
-+ l_s_errmsg = i18n("kmix: Unknown error. Please report how you produced this error.");
-+ break;
-+ }
-+ return l_s_errmsg;
- }
-
-
---- ./kmix/backends/mixer_backend.h.orig 2011-08-31 14:40:43.854565142 +0200
-+++ ./kmix/backends/mixer_backend.h 2011-08-31 14:45:05.104683569 +0200
-@@ -22,6 +22,8 @@
- #ifndef MIXER_BACKEND_H
- #define MIXER_BACKEND_H
-
-+#include <QTime>
-+
- #include "core/mixer.h"
-
- class Mixer_Backend : public QObject
-@@ -140,6 +142,9 @@
-
- protected slots:
- virtual void readSetFromHW();
-+
-+private:
-+ QTime _fastPollingEndsAt;
- };
-
- #endif
---- ./kmix/core/mixer.h.orig 2011-08-30 10:43:44.917744648 +0200
-+++ ./kmix/core/mixer.h 2011-08-30 10:48:24.467617529 +0200
-@@ -56,7 +56,7 @@
- *
- */
- enum MixerError { OK=0, ERR_PERM=1, ERR_WRITE, ERR_READ,
-- ERR_OPEN, ERR_LASTERR, OK_UNCHANGED };
-+ ERR_OPEN, OK_UNCHANGED };
-
-
- Mixer( QString& ref_driverName, int device );