diff options
author | Koen Kooi <koen@openembedded.org> | 2010-01-14 12:22:11 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-01-14 12:22:11 +0100 |
commit | c7fea056f9bd10d6bc04379a770897fccc3b35fd (patch) | |
tree | d094863ad7908b6ee076ab2a044c293588273690 | |
parent | 2a8420f21bf586c90ffd4d4f08f94ddff98ba9cf (diff) |
hamlib: update to 1.2.10
-rw-r--r-- | conf/checksums.ini | 4 | ||||
-rw-r--r-- | recipes/sdr/hamlib_1.2.10.bb | 43 |
2 files changed, 47 insertions, 0 deletions
diff --git a/conf/checksums.ini b/conf/checksums.ini index e1b2eaa8c7..ad3a6b203e 100644 --- a/conf/checksums.ini +++ b/conf/checksums.ini @@ -11918,6 +11918,10 @@ sha256=80655b3531ea56a5d64085e572dfb8d3ecabffd28af482cd130f72dfdd6254b0 md5=ae7177ab8f0163d3ef2df71f0de2b357 sha256=33dd87dc9452227375b8b9cdad940581714a55d55ff18ae2990905ac2f81fa0f +[http://downloads.sourceforge.net/hamlib/hamlib-1.2.10.tar.gz] +md5=29f0d30779a8ffe0444eb523a6ad8344 +sha256=9b50825666519b0b86469f1988a0de09ce2ffc08fa221f9aa40d18c7b7f6c651 + [http://downloads.sourceforge.net/hamlib/hamlib-1.2.8.tar.gz] md5=74eaf1be4cf1cbdecee54808c6930788 sha256=be81153a6e2830234d62818c8aa5658b1410b538a3676686a3f1373f03036b81 diff --git a/recipes/sdr/hamlib_1.2.10.bb b/recipes/sdr/hamlib_1.2.10.bb new file mode 100644 index 0000000000..7033b4662c --- /dev/null +++ b/recipes/sdr/hamlib_1.2.10.bb @@ -0,0 +1,43 @@ +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" + +inherit autotools + +EXTRA_OECONF = "--with-perl-inc=${STAGING_LIBDIR}/perl/5.8.8/CORE" +# This is a hack, someone with some more time should fix the autofoo +do_configure() { + oe_runconf +} + +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) +} + +AUTOTOOLS_STAGE_PKGCONFIG = "1" + + |