blob: b7c3910a393ed2a1e907381419ea95ca81624aa4 (
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
62
63
64
65
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=1
inherit eutils multilib
RESTRICT="mirror"
MY_P="${P/_/-}"
DESCRIPTION="Successor for freebob: Library for accessing BeBoB IEEE1394 devices"
HOMEPAGE="http://www.ffado.org"
SRC_URI="http://www.ffado.org/files/${MY_P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="debug qt4"
RDEPEND=">=media-libs/alsa-lib-1.0.0
>=dev-cpp/libxmlpp-2.13.0
>=sys-libs/libraw1394-1.3.0
>=media-libs/libiec61883-1.1.0
>=sys-libs/libavc1394-0.5.3
>=sys-apps/dbus-1.0
qt4? (
|| ( ( x11-libs/qt-core x11-libs/qt-gui )
>=x11-libs/qt-4.0:4 )
dev-python/PyQt4
>=dev-python/dbus-python-0.83.0 )"
DEPEND="${RDEPEND}
dev-util/scons"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-fix-scons-options.patch"
}
src_compile () {
local myconf=""
use debug \
&& myconf="${myconf} DEBUG=True ENABLE_OPTIMIZATIONS=False" \
|| myconf="${myconf} DEBUG=False ENABLE_OPTIMIZATIONS=True"
scons \
PREFIX=/usr \
LIBDIR=/usr/$(get_libdir) \
${myconf} || die
}
src_install () {
scons DESTDIR="${D}" WILL_DEAL_WITH_XDG_MYSELF="True" install || die
dodoc AUTHORS ChangeLog NEWS README TODO
if use qt4; then
newicon "support/xdg/hi64-apps-ffado.png" "ffado.png"
newmenu "support/xdg/ffado.org-ffadomixer.desktop" "ffado-mixer.desktop"
fi
}
|