blob: 0434cca779379db9a2093d32bbf67dbec13312b7 (
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
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/rosegarden/rosegarden-1.7.2-r1.ebuild,v 1.1 2008/10/10 12:46:52 flameeyes Exp $
EAPI=2
inherit eutils kde-functions cmake-utils
MY_PV="${PV/_rc*/}"
#MY_PV="${MY_PV/4./}"
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/rosegarden/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="alsa debug jack dssi lirc"
RDEPEND="
alsa? ( >=media-libs/alsa-lib-1.0[midi]
jack? ( >=media-sound/jack-audio-connection-kit-0.77 )
)
>=media-libs/ladspa-sdk-1.0
>=media-libs/ladspa-cmt-1.14
dssi? ( >=media-libs/dssi-0.4 )
lirc? ( >=app-misc/lirc-0.7 )
>=media-libs/liblrdf-0.3
>=sci-libs/fftw-3.0.0
>=media-libs/liblo-0.7"
DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.15
>=dev-util/cmake-2.4.2"
need-kde 3.5
pkg_setup() {
if ! use alsa && use jack; then
ewarn "If you want JACK support you also need to enable"
ewarn "ALSA support, or the whole sound support will be"
ewarn "disabled."
fi
}
src_prepare() {
epatch "${FILESDIR}/rosegarden-1.6.1-asneeded.patch" \
"${FILESDIR}/rosegarden-1.6.1.desktop.diff"
}
src_configure() {
tc-export CC CXX LD
# cmake is stupid, very very stupid.
sed -i -e 's:CMAKE_CXX_FLAGS_\(RELEASE\|RELWITHDEBINFO\|DEBUG\).*".*"):CMAKE_CXX_FLAGS_\1 "'"${CXXFLAGS}"'"):' \
CMakeLists.txt || die "unable to sanitise CXXFLAGS"
mycmakeargs="$(cmake-utils_use_want alsa SOUND)
$(cmake-utils_use_want jack JACK)
$(cmake-utils_use_want dssi DSSI)
$(cmake-utils_use_want lirc LIRC)"
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
dodoc AUTHORS README TRANSLATORS
}
|