diff options
author | Koen Kooi <koen@openembedded.org> | 2009-05-25 18:48:17 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-05-25 18:48:17 +0200 |
commit | eefaa805730d6b7bbf791864c4fbc3d44135d5a7 (patch) | |
tree | c6ec399f5cb309f4f1aa6ddcda95694c1429b8d2 /recipes/sdr/hamlib_1.2.9.bb | |
parent | ea3ee6d324986ee60435e6bc0673f661f8aed9f9 (diff) |
hamlib: add rough version of 1.2.9
Diffstat (limited to 'recipes/sdr/hamlib_1.2.9.bb')
-rw-r--r-- | recipes/sdr/hamlib_1.2.9.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes/sdr/hamlib_1.2.9.bb b/recipes/sdr/hamlib_1.2.9.bb new file mode 100644 index 0000000000..c1406d67e2 --- /dev/null +++ b/recipes/sdr/hamlib_1.2.9.bb @@ -0,0 +1,35 @@ +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 python libusb-compat tcl gnuradio" + +SRC_URI = "${SOURCEFORGE_MIRROR}/hamlib/hamlib-${PV}.tar.gz" + +inherit autotools_stage + +# This is a hack, someone with some more time should fix the autofoo +do_configure() { + oe_runconf +} + +PARALLEL_MAKE = "" + +do_compile_prepend() { + mkdir -p ${STAGING_LIBDIR}/.libs + ln -sf ${STAGING_LIBDIR}/libusb* ${STAGING_LIBDIR}/.libs/ +} + +FILES_${PN} = "${bindir} ${sbindir} ${libdir}/hamlib*" + +python populate_packages_prepend () { + cv_libdir = bb.data.expand('${libdir}', d) + cv_libdir_dbg = bb.data.expand('${libdir}/.debug', d) + do_split_packages(d, cv_libdir, '^lib(.*)\.so$', 'lib%s-dev', 'hamlib %s development package', extra_depends='${PN}-dev', allow_links=True) + do_split_packages(d, cv_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'hamlib %s development package', extra_depends='${PN}-dev') + do_split_packages(d, cv_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'hamlib %s development package', extra_depends='${PN}-dev') + do_split_packages(d, cv_libdir, '^lib(.*)\.so\.*', 'lib%s', 'hamlib %s library', extra_depends='', allow_links=True) +} + +AUTOTOOLS_STAGE_PKGCONFIG = "1" + + |