aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-05-25 20:40:12 +0200
committerMartin Dietze <mdietze@gmail.com>2013-03-02 17:16:49 +0100
commit6a498b1770d9c998bb1b8f964f93d24a9dade68e (patch)
tree0f5782130faad76fb94bf012aec90c4bb7598c27 /recipes
parenta46639eec73fbbb906fa8b6df3bff2536fd88c33 (diff)
downloadopenembedded-6a498b1770d9c998bb1b8f964f93d24a9dade68e.tar.gz
openembedded-6a498b1770d9c998bb1b8f964f93d24a9dade68e.tar.bz2
openembedded-6a498b1770d9c998bb1b8f964f93d24a9dade68e.zip
hamlib 1.2.9: fix bindings
Diffstat (limited to 'recipes')
-rw-r--r--recipes/sdr/hamlib_1.2.9.bb28
1 files changed, 20 insertions, 8 deletions
diff --git a/recipes/sdr/hamlib_1.2.9.bb b/recipes/sdr/hamlib_1.2.9.bb
index c1406d67e2..8815c622e6 100644
--- a/recipes/sdr/hamlib_1.2.9.bb
+++ b/recipes/sdr/hamlib_1.2.9.bb
@@ -1,12 +1,15 @@
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"
+DEPENDS = "swig-native perl python libusb-compat tcl gnuradio"
SRC_URI = "${SOURCEFORGE_MIRROR}/hamlib/hamlib-${PV}.tar.gz"
+PR = "r1"
+
inherit autotools_stage
+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
@@ -17,17 +20,26 @@ PARALLEL_MAKE = ""
do_compile_prepend() {
mkdir -p ${STAGING_LIBDIR}/.libs
ln -sf ${STAGING_LIBDIR}/libusb* ${STAGING_LIBDIR}/.libs/
+ 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
}
-FILES_${PN} = "${bindir} ${sbindir} ${libdir}/hamlib*"
+# There's one perl module that doesn't honour CFLAGS :(
+INSANE_SKIP_${PN} = True
+FILES_${PN} = "${bindir} ${sbindir} ${libdir}/hamlib* ${libdir}/p*/ ${libdir}/tcl"
+FILES_${PN}-dbg += "${libdir}/perl/*/auto/Hamlib/.debug/"
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)
+ 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"