1 DESCRIPTION = "GNU Radio"
5 DEPENDS = "virtual/libusb0 guile-native fftwf python virtual/libsdl alsa-lib jack boost cppunit sdcc-native swig-native python-numpy"
8 inherit distutils-base autotools autotools_stage pkgconfig
11 export HOST_SYS=${MULTIMACH_TARGET_SYS}
13 CXXFLAGS_powerpc += "-lstdc++"
18 --enable-gr-video-sdl \
19 --enable-gr-audio-alsa \
20 --enable-gr-audio-jack \
21 --enable-gr-audio-oss \
24 --with-pythondir=${PYTHON_SITEPACKAGES_DIR} \
25 PYTHON_CPPFLAGS=-I${STAGING_INCDIR}/${PYTHON_DIR} \
28 #export USB_CFLAGS="-I${STAGING_INCDIR}"
29 #export USB_LIBS="-L${STAGING_LIBDIR}"
31 do_configure_prepend() {
32 if [ -e ${WORKDIR}/acinclude.m4 ] ; then
33 cp ${WORKDIR}/acinclude.m4 ${S}
37 do_configure_append() {
38 find ${S} -name Makefile | xargs sed -i s:'-I/usr/include':'-I${STAGING_INCDIR}':g
39 find ${S} -name Makefile | xargs sed -i s:' /usr/include':' ${STAGING_INCDIR}':g
44 sed -i s,-l:libusb-gnur.a,,g ${STAGING_LIBDIR}/libusrp.la
47 RDEPENDS_${PN} = "python-core python-audio python-threading python-codecs python-lang python-textutils \
48 python-shell python-pickle python-compiler python-pkgutil python-pydoc python-mmap \
49 python-netclient python-unittest python-difflib python-pprint python-numpy \
52 RDEPENDS_gnuradio-usrp = "python-core"
56 libmblock libmblock-qa \
57 libgr-audio-alsa libgr-audio-oss libgr-audio-jack\
58 libusrp libusrp-inband libusrp-inband-qa \
60 libgnuradio-core libgnuradio-core-qa \
61 gnuradio-usrp-dbg gnuradio-usrp gnuradio-examples \
64 FILES_gnuradio-examples = "${datadir}/gnuradio/examples"
66 FILES_libpmt = "${libdir}/libpmt.so"
67 FILES_libpmt-qa = "${libdir}/libpmt-qa.so"
68 FILES_libmblock = "${libdir}/libmblock.so"
69 FILES_libmblock-qa = "${libdir}/libmblock-qa.so"
70 FILES_libgr-audio-alsa = "${libdir}/libgr_audio_alsa.so ${sysconfdir}/gnuradio/conf.d/gr-audio-alsa.conf"
71 FILES_libgr-audio-oss = "${libdir}/libgr_audio_oss.so ${sysconfdir}/gnuradio/conf.d/gr-audio-oss.conf"
72 FILES_libgr-audio-jack = "${libdir}/libgr_audio_jack.so ${sysconfdir}/gnuradio/conf.d/gr-audio-jack.conf"
75 FILES_libusrp = "${libdir}/libusrp.so.*"
76 FILES_libusrp-inband = "${libdir}/libusrp_inband.so.*"
77 FILES_libusrp-inband-qa = "${libdir}/libusrp_inband-qa.so"
78 FILES_libgnuradio-core = "${libdir}/libgnuradio-core.so.* ${sysconfdir}/gnuradio/conf.d/*core*"
79 FILES_libgnuradio-core-qa = "${libdir}/libgnuradio-core-qa.so.*"
80 FILES_libgromnithread = "${libdir}/libgromnithread.so*"
82 FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}/gnuradio/*"
83 FILES_${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/gnuradio/.debug \
84 ${PYTHON_SITEPACKAGES_DIR}/gnuradio/*/.debug \
87 FILES_gnuradio-usrp = "${PYTHON_SITEPACKAGES_DIR}/usrp/* \
90 FILES_gnuradio-usrp-dbg = "${PYTHON_SITEPACKAGES_DIR}/usrp/.debug"