[oe] [PATCH] libmodbus: ported recipe from classic and updated

Martin Jansa martin.jansa at gmail.com
Sat May 5 04:46:33 UTC 2012


On Fri, May 04, 2012 at 11:25:08PM +0200, Andrea Galbusera wrote:
> * 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 <gizero at gmail.com>
> ---
>  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"

you can drop this field too.

> +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
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20120505/e88c4e55/attachment-0002.sig>


More information about the Openembedded-devel mailing list