summaryrefslogtreecommitdiff
blob: eb95239f4af422ae97c00637b47715eccd0f43cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/rosegarden/rosegarden-4.1.0.ebuild,v 1.1 2005/02/19 22:51:08 luckyduck Exp $

IUSE="alsa arts jack"

MY_PV="${PV/_rc*/}"
MY_PV="${MY_PV/./-}"
MY_P="${PN}-${MY_PV}"
S="${WORKDIR}/${MY_P}"

DESCRIPTION="MIDI and audio sequencer and notation editor."
HOMEPAGE="http://www.rosegardenmusic.com/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"

DEPEND=">=kde-base/kdelibs-3.0
	|| ( kde-base/kdemultimedia-meta kde-base/kdemultimedia )
	>=x11-libs/qt-3
	!arts? ( media-libs/alsa-lib )
	alsa? ( media-libs/alsa-lib )
	!alsa? ( arts? ( kde-base/arts ) )
	jack? ( media-sound/jack-audio-connection-kit )
	>=media-libs/ladspa-sdk-1.0
	>=media-libs/ladspa-cmt-1.14"

pkg_setup() {
	snd_conf=""
	if use alsa; then
		if use arts; then
			ewarn "alsa and arts USE flags detected.  Only one can"
			ewarn "used by rosegarden... selecting alsa by default."
		fi
		snd_conf="--without-arts"
	else
		if use arts; then
			snd_conf="--without-arts"
		else
			ewarn "Neither arts or alsa USE flags selected.  Choosing"
			ewarn "alsa by default."
			snd_conf="--without-arts"
		fi
	fi
}

src_compile() {
	addwrite ${QTDIR}/etc/settings
	econf ${snd_conf} `use_with jack` \
		--with-ladspa \
		|| die "./configure failed"
	emake || die
}

src_install() {
	einstall || die
	dodoc AUTHORS ChangeLog NEWS README TODO TRANSLATORS
}