summaryrefslogtreecommitdiff
blob: 7d54b981c359b90893952b113ebf293d8e2ca599 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/slv2/slv2-0.3.2.ebuild,v 1.1 2007/12/10 21:41:52 aballier Exp $

DESCRIPTION="A library to make the use of LV2 plugins as simple as possible for applications"
HOMEPAGE="http://wiki.drobilla.net/SLV2"
SRC_URI="http://download.drobilla.net/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug doc jack"

RDEPEND="dev-libs/redland
	media-libs/raptor
	jack? ( media-sound/jack-audio-connection-kit )"
DEPEND="${RDEPEND}
	doc? ( app-doc/doxygen )
	dev-util/pkgconfig"


src_compile() {
	econf $(use_enable debug) \
		$(use_enable jack) \
		$(use_enable doc documentation)

	emake || die "make failed"
	if use doc; then
		emake docs || die "creating documentation failed"
	fi
}

src_install() {
	emake DESTDIR="${D}" install || die "make install failed"
	dodoc AUTHORS README
	doman doc/man/man3/*
	use doc && dohtml doc/html/*
}