# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic eutils DESCRIPTION="GNU Radio" LICENSE="GPL-2" HOMEPAGE="http://www.gnuradio.org/trac" SRC_URI="ftp://ftp.gnu.org/gnu/gnuradio/${P}.tar.gz" SLOT="0" IUSE="usrp usb doc jack wxwindows alsa sdl portaudio debug examples" KEYWORDS="x86" DEPEND="virtual/libc >=dev-lang/python-2.3 >=dev-lang/swig-1.3.25 >=sci-libs/fftw-3.0 >=dev-util/cppunit-1.9.14 dev-libs/boost dev-python/numeric wxwindows? ( >=dev-python/wxpython-2.5.2.7 ) alsa? ( media-libs/alsa-lib media-sound/alsa-headers ) usb? ( dev-libs/libusb ) sdl? ( media-libs/libsdl ) usrp? ( >=dev-embedded/sdcc-2.4.0 ) doc? ( app-doc/doxygen app-text/xmlto ) jack? ( media-sound/jack-audio-connection-kit ) portaudio? ( >=media-libs/portaudio-19 )" pkg_setup() { elog "This ebuild does not currently install comedi dependencies." elog "If you require the comedi component you will need to install" elog "the neccessary libraries yourself prior to emerging gnuradio." if !(has_version "cross-avr/avr-libc") ; then elog "In order to build the ezdop and gr-ezdop components you will" elog "need avr-gcc and the corresponding binutils. This toolchain" elog "can be emerged with crossdev as follows:" elog "# emerge crossdev" elog "# crossdev -t avr" elog "" elog "You will need to emerge gnuradio after crossdev has finished" elog "installing the avr toolchain for the ezdop components to build." fi epause 5 } src_unpack() { unpack ${A} cd "${S}" } src_compile() { econf \ $(use_enable doc doxygen) \ $(use_with debug) \ || die "econf failed" emake || die "emake failed" } src_test() { emake check || die "make check failed" } src_install() { make install DESTDIR="${D}" || die "make install failed" # Install examples if use examples ; then mkdir -p ${D}/usr/share/doc/${PF}/examples/ cp -r gnuradio-examples/* ${D}/usr/share/doc/${PF}/examples/ fi }