diff options
author | Jonathan Callen <jcallen@gentoo.org> | 2009-12-23 00:29:34 +0000 |
---|---|---|
committer | Jonathan Callen <jcallen@gentoo.org> | 2009-12-23 00:29:34 +0000 |
commit | 15347a4fe0ae797a9dd55429ce5f399c16b4fbbc (patch) | |
tree | 527a59825fa29533fb36ac87b17baa6febe51236 /kde-base/kmix | |
parent | Fix prefix support (diff) | |
download | historical-15347a4fe0ae797a9dd55429ce5f399c16b4fbbc.tar.gz historical-15347a4fe0ae797a9dd55429ce5f399c16b4fbbc.tar.bz2 historical-15347a4fe0ae797a9dd55429ce5f399c16b4fbbc.zip |
Pull in changes from overlay and patch for prefix support (Solaris)
Package-Manager: portage--svn/cvs/Linux i686
Diffstat (limited to 'kde-base/kmix')
-rw-r--r-- | kde-base/kmix/ChangeLog | 6 | ||||
-rw-r--r-- | kde-base/kmix/files/kmix-4.3.2-solaris.patch | 101 | ||||
-rw-r--r-- | kde-base/kmix/kmix-4.3.4.ebuild | 9 |
3 files changed, 112 insertions, 4 deletions
diff --git a/kde-base/kmix/ChangeLog b/kde-base/kmix/ChangeLog index 39fbeffe3d58..a39cf2005fdb 100644 --- a/kde-base/kmix/ChangeLog +++ b/kde-base/kmix/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for kde-base/kmix # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kmix/ChangeLog,v 1.143 2009/12/10 21:35:25 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kmix/ChangeLog,v 1.144 2009/12/23 00:29:34 abcd Exp $ + + 23 Dec 2009; Jonathan Callen <abcd@gentoo.org> + +files/kmix-4.3.2-solaris.patch, kmix-4.3.4.ebuild: + Pull in changes from overlay and patch for prefix support (Solaris) 10 Dec 2009; Tomáš Chvátal <scarabeus@gentoo.org> -kmix-4.3.1.ebuild: Drop KDE SC-4.3.1. diff --git a/kde-base/kmix/files/kmix-4.3.2-solaris.patch b/kde-base/kmix/files/kmix-4.3.2-solaris.patch new file mode 100644 index 000000000000..10c3bbf29606 --- /dev/null +++ b/kde-base/kmix/files/kmix-4.3.2-solaris.patch @@ -0,0 +1,101 @@ +Desc: Fix compilation on Solaris. Needs OSS installed! +Author: Please refer to + https://solaris.bionicmutton.org/hg/kde4-specs-432/file/539d9ed6c7b5/specs/patches/kdemultimedia-kmix_sun.diff + +--- kmix/mixer_sun.cpp.orig 2009-09-06 21:57:49.699297806 +0200 ++++ kmix/mixer_sun.cpp 2009-09-06 23:08:54.665165476 +0200 +@@ -31,7 +31,8 @@ + + #include "mixer_sun.h" + #include "mixer.h" +- ++#include <sys/soundcard.h> ++#include <QTimer> + //====================================================================== + // CONSTANT/ENUM DEFINITIONS + //====================================================================== +@@ -125,7 +126,7 @@ + // FUNCTION : Mixer::Mixer + // DESCRIPTION : Class constructor. + //====================================================================== +-Mixer_SUN::Mixer_SUN(int devnum) : Mixer_Backend(mixer, devnum) ++Mixer_SUN::Mixer_SUN(Mixer *mixer, int devnum) : Mixer_Backend(mixer, devnum) + { + if ( devnum == -1 ) + m_devnum = 0; +@@ -155,12 +156,12 @@ + // + // Open the mixer hardware driver + // +- QCString audiodev(getenv("AUDIODEV")); ++ QString audiodev(getenv("AUDIODEV")); + if(audiodev.isNull()) + audiodev = "/dev/audio"; + audiodev += "ctl"; + _udi = audiodev; // use device name as UDI. Doesn't matter as we only use it for hotplugging/unplugging. +- if ( ( fd = ::open( audiodev.data(), O_RDWR ) ) < 0 ) ++ if ( ( fd = ::open( audiodev.toAscii().data(), O_RDWR ) ) < 0 ) + { + if ( errno == EACCES ) + return Mixer::ERR_PERM; +@@ -172,16 +173,35 @@ + // + // Mixer is open. Now define all of the mix devices. + // ++ int devmask, recmask, i_recsrc, stereodevs; ++ // Mixer is open. Now define properties ++ if (ioctl(fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1) ++ return Mixer::ERR_READ; ++ if (ioctl(fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1) ++ return Mixer::ERR_READ; ++ if (ioctl(fd, SOUND_MIXER_READ_RECSRC, &i_recsrc) == -1) ++ return Mixer::ERR_READ; ++ if (ioctl(fd, SOUND_MIXER_READ_STEREODEVS, &stereodevs) == -1) ++ return Mixer::ERR_READ; + + for ( int idx = 0; idx < numDevs; idx++ ) + { +- Volume vol( 2, AUDIO_MAX_GAIN ); +- QString id; ++ Volume::ChannelMask chnmask = Volume::MLEFT; ++ if ( stereodevs & ( 1 << idx ) ) chnmask = (Volume::ChannelMask)(chnmask|Volume::MRIGHT); ++ ++ Volume playbackVol( chnmask, 100, 1, true, false ); ++ QString id; + id.setNum(idx); + MixDevice* md = new MixDevice( _mixer, id, + QString(MixerDevNames[idx]), MixerChannelTypes[idx]); +- md->addPlaybackVolume(vol); +- md->setRecSource( isRecsrcHW( idx ) ); ++ md->addPlaybackVolume(playbackVol); ++ // Tutorial: Howto add a simple capture switch ++ if ( recmask & ( 1 << idx ) ) { ++ // can be captured => add capture volume, with no capture volume ++ chnmask = Volume::MNONE; ++ Volume captureVol( chnmask, 100, 1, true, true ); ++ md->addCaptureVolume(captureVol); ++ } + m_mixDevices.append( md ); + } + +@@ -234,10 +254,10 @@ + int Mixer_SUN::readVolumeFromHW( const QString& id, MixDevice *md ) + { + audio_info_t audioinfo; ++ int devnum = id2num(id); + uint_t devMask = MixerSunPortMasks[devnum]; + + Volume& volume = md->playbackVolume(); +- int devnum = id2num(id); + // + // Read the current audio information from the driver + // +@@ -253,7 +273,7 @@ + switch ( devnum ) + { + case MIXERDEV_MASTER_VOLUME : +- volume.setSwitchActivated( audioinfo.output_muted ); ++ //volume.setSwitchActivated( audioinfo.output_muted ); + GainBalanceToVolume( audioinfo.play.gain, + audioinfo.play.balance, + volume ); diff --git a/kde-base/kmix/kmix-4.3.4.ebuild b/kde-base/kmix/kmix-4.3.4.ebuild index f348f8e4b7a6..e434f5cef96d 100644 --- a/kde-base/kmix/kmix-4.3.4.ebuild +++ b/kde-base/kmix/kmix-4.3.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kmix/kmix-4.3.4.ebuild,v 1.1 2009/12/01 10:48:18 wired Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kmix/kmix-4.3.4.ebuild,v 1.2 2009/12/23 00:29:34 abcd Exp $ EAPI="2" @@ -17,10 +17,13 @@ DEPEND=" " RDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}"/${PN}-4.3.2-solaris.patch ) + src_configure() { - mycmakeargs="${mycmakeargs} + mycmakeargs=( $(cmake-utils_use_with pulseaudio PulseAudio) - $(cmake-utils_use_with alsa)" + $(cmake-utils_use_with alsa) + ) kde4-meta_src_configure } |