diff options
Diffstat (limited to 'kde-base/phonon-kde/phonon-kde-4.3.5.ebuild')
-rw-r--r-- | kde-base/phonon-kde/phonon-kde-4.3.5.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/kde-base/phonon-kde/phonon-kde-4.3.5.ebuild b/kde-base/phonon-kde/phonon-kde-4.3.5.ebuild new file mode 100644 index 000000000000..e37b819a1475 --- /dev/null +++ b/kde-base/phonon-kde/phonon-kde-4.3.5.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/kde-base/phonon-kde/phonon-kde-4.3.5.ebuild,v 1.1 2010/01/25 17:31:43 scarabeus Exp $ + +EAPI="2" + +KMNAME="kdebase-runtime" +KMMODULE="phonon" +inherit kde4-meta + +DESCRIPTION="Phonon KDE Integration" +HOMEPAGE="http://phonon.kde.org" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +LICENSE="GPL-2" +IUSE="alsa debug pulseaudio +xine" + +DEPEND=" + media-sound/phonon[xine?] + alsa? ( media-libs/alsa-lib ) + pulseaudio? ( media-sound/pulseaudio ) +" +RDEPEND="${DEPEND}" + +add_blocker phonon-xine + +PATCHES=( + "${FILESDIR}"/${PN}-4.3.4-optional-alsa.patch +) + +src_prepare() { + kde4-meta_src_prepare + + # Don't build tests - they require OpenGL + sed -e 's/add_subdirectory(tests)//' \ + -i phonon/CMakeLists.txt || die "Failed to disable tests" + + # Disable automagic + sed -e 's/find_package(Xine)/macro_optional_find_package(Xine)/' \ + -i phonon/kcm/xine/CMakeLists.txt || die "Failed to make xine optional" +} + +src_configure() { + mycmakeargs=( + $(cmake-utils_use_with alsa) + $(cmake-utils_use_with pulseaudio PulseAudio) + $(cmake-utils_use_with xine) + ) + + kde4-meta_src_configure +} |