blob: 7834d9a47f94c51785203cb0b707b1838383fec8 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/hydrogen/hydrogen-0.9.1.ebuild,v 1.8 2007/02/12 19:23:13 aballier Exp $
inherit eutils kde-functions
DESCRIPTION="Linux Drum Machine"
HOMEPAGE="http://hydrogen.sourceforge.net/"
SRC_URI="mirror://sourceforge/hydrogen/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~ppc64"
IUSE="alsa jack ladspa"
DEPEND=">=media-libs/libsndfile-1.0.0
>=media-libs/audiofile-0.2.3
~media-libs/flac-1.1.2
=x11-libs/qt-3*
alsa? ( media-libs/alsa-lib )
jack? ( media-sound/jack-audio-connection-kit )
ladspa? ( media-libs/liblrdf )"
need-qt 3
src_unpack() {
unpack ${A}
cd ${S}
if use ppc; then
epatch ${FILESDIR}/${PV}-OSS.patch
fi
epatch ${FILESDIR}/hydrogen-0.9.0-asneeded.patch
}
src_compile() {
econf $(use_enable jack jack-support) \
$(use_enable alsa alsa-seq) \
$(use_enable ladspa lrdf-support) \
|| die "Failed configuring hydrogen!"
emake || die "Failed making hydrogen!"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS ChangeLog README TODO
newicon hydrogen_gui/img/icon32.png hydrogen.png
make_desktop_entry hydrogen hydrogen hydrogen.png Audio
}
|