* based on recipe by Radoslav Kolev which was in classic * updated to latest released version 3.0.2 * also provide an _git version with up-to-date SRCREV and DEFAULT_PREFERENCE = "-1" * common part factorized as libmodbus.inc
Signed-off-by: Andrea Galbusera <[email protected]> --- meta-oe/recipes-extended/libmodbus/libmodbus.inc | 13 +++++++++++++ .../recipes-extended/libmodbus/libmodbus_3.0.2.bb | 8 ++++++++ .../recipes-extended/libmodbus/libmodbus_git.bb | 13 +++++++++++++ 3 files changed, 34 insertions(+), 0 deletions(-) create mode 100644 meta-oe/recipes-extended/libmodbus/libmodbus.inc create mode 100644 meta-oe/recipes-extended/libmodbus/libmodbus_3.0.2.bb create mode 100644 meta-oe/recipes-extended/libmodbus/libmodbus_git.bb diff --git a/meta-oe/recipes-extended/libmodbus/libmodbus.inc b/meta-oe/recipes-extended/libmodbus/libmodbus.inc new file mode 100644 index 0000000..8e0e011 --- /dev/null +++ b/meta-oe/recipes-extended/libmodbus/libmodbus.inc @@ -0,0 +1,13 @@ +SUMMARY = "A Modbus library" +DESCRIPTION = "libmodbus is a C library designed to provide a fast and robust \ +implementation of the Modbus protocol. It runs on Linux, Mac OS X, FreeBSD, \ +QNX and Windows." +HOMEPAGE = "http://www.libmodbus.org/" +SECTION = "libs" +PRIORITY = "optional" +LICENSE = "LGPLv2.1+" +LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c" + +INC_PR = "r0" + +inherit autotools pkgconfig diff --git a/meta-oe/recipes-extended/libmodbus/libmodbus_3.0.2.bb b/meta-oe/recipes-extended/libmodbus/libmodbus_3.0.2.bb new file mode 100644 index 0000000..7a99f72 --- /dev/null +++ b/meta-oe/recipes-extended/libmodbus/libmodbus_3.0.2.bb @@ -0,0 +1,8 @@ +require libmodbus.inc + +PR = "${INC_PR}.0" + +SRC_URI = "http://github.com/downloads/stephane/libmodbus/libmodbus-${PV}.tar.gz" + +SRC_URI[md5sum] = "1aaacce9d9779d3a84f7d1a75774c943" +SRC_URI[sha256sum] = "927ec90e0e299a7d4ec7086b1e2590566bdfc3bbc22e12204229361c029f2615" diff --git a/meta-oe/recipes-extended/libmodbus/libmodbus_git.bb b/meta-oe/recipes-extended/libmodbus/libmodbus_git.bb new file mode 100644 index 0000000..793a9d6 --- /dev/null +++ b/meta-oe/recipes-extended/libmodbus/libmodbus_git.bb @@ -0,0 +1,13 @@ +require libmodbus.inc + +SRCREV = "23dd803f3f2b7be668408fa938e8d665249b4fba" + +PV = "3.0.2+gitr${SRCPV}" + +PR = "${INC_PR}.0" + +DEFAULT_PREFERENCE = "-1" + +SRC_URI = "git://github.com/stephane/libmodbus;branch=master;protocol=git" +S = "${WORKDIR}/git" + -- 1.7.5.4 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
