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

EAPI=2

inherit eutils autotools savedconfig

IUSE="alsa lash"
RESTRICT="mirror"

DESCRIPTION="JACK audio mixer using GTK2 interface and made in C."
HOMEPAGE="http://69b.org/cms/software/jackmaster"
SRC_URI="http://69b.org/web69/dl/dev_${P}.cpio.7z"

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

# Not sure about the required swig version, report if 1.3.25 doesn't work
RDEPEND=">=media-sound/jack-audio-connection-kit-0.80.0
>=x11-libs/gtk+-2.4.0
alsa? ( >=media-libs/alsa-lib-0.9.0 )
lash? ( >=media-sound/lash-0.5.0 )
"

DEPEND="${RDEPEND}
app-arch/cpio
app-arch/p7zip
"

src_unpack() {
	unpack ${A}
	cpio -i -I "${WORKDIR}/dev_${P}.cpio"
}

src_prepare() {
	epatch "${FILESDIR}/fix_configure_in.patch"
	eautoreconf
}

src_configure() {
	restore_config config.h
	econf \
		$(use_enable alsa ) \
		$(use_enable lash )
}

src_install() {
	save_config config.h
	dodoc AUTHORS ChangeLog INSTALL NEWS README TODO
	dobin src/${PN}
	doicon ${PN}16x16.xpm
	make_desktop_entry ${PN} "JackMaster" ${PN}16x16 "AudioVideo;Audio"
}