blob: 79d8de34840d51545c4601b7ff83eb3520eef1f9 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-patch-bay/alsa-patch-bay-1.0.0-r3.ebuild,v 1.1 2008/10/14 16:17:10 flameeyes Exp $
EAPI=1
IUSE="alsa jack ladcca fltk +gtk"
inherit eutils
DESCRIPTION="Graphical patch bay for the ALSA sequencer API."
HOMEPAGE="http://pkl.net/~node/software/alsa-patch-bay/index.html"
SRC_URI="http://pkl.net/~node/software/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
DEPEND="gtk? ( =dev-cpp/gtkmm-2.2* )
fltk? ( >=x11-libs/fltk-1.1.2 )
alsa? ( >=media-libs/alsa-lib-0.9.0_rc1 )
jack? ( media-sound/jack-audio-connection-kit )
ladcca? ( media-libs/ladcca )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-amd64.patch
epatch "${FILESDIR}"/${P}-gcc43.patch
}
src_compile() {
econf $(use_enable fltk) $(use_enable gtk gtkmm) $(use_enable jack) \
$(use_enable alsa) $(use_enable jack) || die
emake || die
}
src_install() {
# needs patching: make DESTDIR="${D}" APB_DESKTOP_PREFIX=/usr/share install || die
einstall APB_DESKTOP_PREFIX="${D}"/usr/share || die
dodoc AUTHORS NEWS README THANKS TODO
}
pkg_preinst() {
if [ -e "${D}"/usr/bin/jack-patch-bay ]
then
rm "${D}"/usr/bin/jack-patch-bay
ln -s alsa-patch-bay "${D}"/usr/bin/jack-patch-bay
fi
}
|