summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-base/phonon-kde/phonon-kde-4.2.4.ebuild')
-rw-r--r--kde-base/phonon-kde/phonon-kde-4.2.4.ebuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/kde-base/phonon-kde/phonon-kde-4.2.4.ebuild b/kde-base/phonon-kde/phonon-kde-4.2.4.ebuild
index 3dbfecf82625..58c90859b064 100644
--- a/kde-base/phonon-kde/phonon-kde-4.2.4.ebuild
+++ b/kde-base/phonon-kde/phonon-kde-4.2.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/phonon-kde/phonon-kde-4.2.4.ebuild,v 1.1 2009/06/04 13:49:25 alexxy Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/phonon-kde/phonon-kde-4.2.4.ebuild,v 1.2 2009/07/30 14:44:56 scarabeus Exp $
EAPI="2"
@@ -13,11 +13,11 @@ HOMEPAGE="http://phonon.kde.org"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
LICENSE="GPL-2"
-IUSE="debug pulseaudio +xine"
+IUSE="alsa debug pulseaudio +xine"
DEPEND="
- media-libs/alsa-lib
media-sound/phonon[xine?]
+ alsa? ( media-libs/alsa-lib )
pulseaudio? ( media-sound/pulseaudio )
"
RDEPEND="${DEPEND}
@@ -32,14 +32,17 @@ src_prepare() {
# 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"
+ sed -e "s:FIND_PACKAGE(Alsa):macro_optional_find_package(Alsa):"
+ -i phonon/CMakeLists.txt || die "Failed to make alsa optional"
kde4-meta_src_prepare
}
src_configure() {
mycmakeargs="${mycmakeargs}
+ $(cmake-utils_use_with alsa)
$(cmake-utils_use_with pulseaudio PulseAudio)
- $(cmake-utils_use_with xine Xine)"
+ $(cmake-utils_use_with xine)"
kde4-meta_src_configure
}