diff options
author | Koen Kooi <koen@openembedded.org> | 2010-12-31 11:11:18 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-12-31 11:11:18 +0100 |
commit | 1bfb0fcfe4634387bcc51757c45c03a53ab46b21 (patch) | |
tree | 8ed648e264243d942eb2832f3082843c7046f803 /recipes/sdr | |
parent | 223f8b13100497b8354d4dfd38587b534603da53 (diff) | |
download | openembedded-1bfb0fcfe4634387bcc51757c45c03a53ab46b21.tar.gz |
hamlib: add 1.2.12
Signed-off-by: Koen Kooi <koen@openembedded.org>
Diffstat (limited to 'recipes/sdr')
-rw-r--r-- | recipes/sdr/hamlib_1.2.12.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes/sdr/hamlib_1.2.12.bb b/recipes/sdr/hamlib_1.2.12.bb new file mode 100644 index 0000000000..69e5e6e208 --- /dev/null +++ b/recipes/sdr/hamlib_1.2.12.bb @@ -0,0 +1,39 @@ +DESCRIPTION = "The Ham Radio Control Libraries, Hamlib for short, is a development effort to provide a consistent interface for programmers wanting to incorporate radio control in their programs" +LICENSE = "GPLv2" + +DEPENDS = "swig-native perl python virtual/libusb0 tcl gnuradio" + +SRC_URI = "${SOURCEFORGE_MIRROR}/hamlib/hamlib-${PV}.tar.gz" +SRC_URI[md5sum] = "914835c0fe4d618d1cd62f1fd0a8dd7d" +SRC_URI[sha256sum] = "735782ecd83de4036cef7dfcc87eac5095420406bd0ac2262d967e808c2d108c" + +inherit autotools + +EXTRA_OECONF = "--with-perl-inc=${STAGING_LIBDIR}/perl/5.10.1/CORE" + +PARALLEL_MAKE = "" + +do_compile_prepend() { + for i in $(find ${S} -name "Makefile") ; do + sed -i -e 's:${STAGING_LIBDIR_NATIVE}:${STAGING_LIBDIR}:g' \ + -e s:-L/usr/local/lib::g \ + -e 's:\"$(CC)\":\"${CC}\" LD=\"${LD}\" LDFLAGS=\"${LDFLAGS}\":g' \ + -e s:${STAGING_INCDIR_NATIVE}/python2.6:${STAGING_INCDIR}/python2.6:g $i + done +} + +# There's one perl module that doesn't honour CFLAGS :( +INSANE_SKIP_${PN} = True +FILES_${PN} = "${bindir} ${sbindir} ${libdir}/hamlib*.so ${libdir}/p*/ ${libdir}/tcl" +FILES_${PN}-dbg += "${libdir}/perl/*/auto/Hamlib/.debug/" + +python populate_packages_prepend () { + hamlib_libdir = bb.data.expand('${libdir}', d) + hamlib_libdir_dbg = bb.data.expand('${libdir}/.debug', d) + do_split_packages(d, hamlib_libdir, '^lib(.*)\.so$', 'lib%s-dev', 'hamlib %s development package', extra_depends='${PN}-dev', allow_links=True) + do_split_packages(d, hamlib_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'hamlib %s development package', extra_depends='${PN}-dev') + do_split_packages(d, hamlib_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'hamlib %s development package', extra_depends='${PN}-dev') + do_split_packages(d, hamlib_libdir, '^lib(.*)\.so\.*', 'lib%s', 'hamlib %s library', extra_depends='', allow_links=True) +} + + |