summaryrefslogtreecommitdiff
blob: ffaea4d12c2cf7674fb795db38a07444ef7073a1 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Modular audio synthesizer using Jack, LADSPA, DSSI etc."
HOMEPAGE="http://www.nongnu.org/om-synth/"
SRC_URI="http://savannah.nongnu.org/download/om-synth/${P}.tar.gz"

IUSE="alsa debug dssi gtk ladspa lash patch-loader"
LICENSE="GPL-2"
KEYWORDS="~x86"
SLOT="0"

RDEPEND=">=media-libs/liblo-0.22
	media-sound/jack-audio-connection-kit
	alsa? ( >=media-libs/alsa-lib-1.0 )
	dssi? ( media-libs/dssi )
	ladspa? ( media-libs/ladspa-sdk )
	lash? ( >=media-sound/lash-0.5.0 )
	patch-loader? ( dev-libs/libxml2 )
	gtk? ( >=dev-cpp/gtkmm-2.4
		>=dev-cpp/libgnomecanvasmm-2.6
		>=dev-cpp/libglademm-2.4.1 )"

DEPEND="${RDEPEND}
	dev-util/pkgconfig"

pkg_setup() {
	if use gtk && ! use patch-loader ; then
		eerror 'USE="gtk" requires USE="patch-loader" too.'
		die "gtk without patch-loader detected"
	fi
}

src_compile() {

	econf \
		$(use_enable alsa) \
		$(use_enable debug) \
		$(use_enable dssi) \
		$(use_enable ladspa) \
		$(use_enable lash) \
		$(use_enable patch-loader) \
		$(use_enable gtk gtk-client) \
		|| die "econf failed"

	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc AUTHORS ChangeLog NEWS README THANKS TODO
}

pkg_postinst() {
	einfo
	elog "NOTE: If you want to be able to run the om-synth example"
	elog "patches (in /usr/share/om/patches/), please install the"
	elog "media-plugins/omins (>=0.2.0) package, too."
	einfo
}