diff options
Diffstat (limited to 'media-libs/libffado/libffado-2.0.0.ebuild')
-rw-r--r-- | media-libs/libffado/libffado-2.0.0.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/media-libs/libffado/libffado-2.0.0.ebuild b/media-libs/libffado/libffado-2.0.0.ebuild new file mode 100644 index 0000000..b7c3910 --- /dev/null +++ b/media-libs/libffado/libffado-2.0.0.ebuild @@ -0,0 +1,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 +} |