summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@siemens.com>2016-04-13 17:00:54 +0200
committerArmin Kuster <akuster808@gmail.com>2016-05-02 14:03:02 -0700
commit8b159070456ea4664efc4041d15c1b4709eca607 (patch)
tree1805e93803fb5ad6a9eb0a401c1d3d34c5a91476
parent7a0519d8408ac82249bbe0f74f53f411bc4cf69d (diff)
downloadmeta-openembedded-8b159070456ea4664efc4041d15c1b4709eca607.tar.gz
libmodbus: add support for the libmodbus development release
libmodbus has two release streams: - stable: which currently is 3.0.x and does only receive fixes - development: 3.1.x which receives new features and according to upstream is also very stable Some users require access to the newer features. So a recipe for the development branch but leave the stable branch the default. This is similar to what is done for the nginx recipe which also has two release streams. Signed-off-by: Pascal Bach <pascal.bach@siemens.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-oe/recipes-extended/libmodbus/libmodbus.inc13
-rw-r--r--meta-oe/recipes-extended/libmodbus/libmodbus_3.0.6.bb14
-rw-r--r--meta-oe/recipes-extended/libmodbus/libmodbus_3.1.2.bb7
3 files changed, 21 insertions, 13 deletions
diff --git a/meta-oe/recipes-extended/libmodbus/libmodbus.inc b/meta-oe/recipes-extended/libmodbus/libmodbus.inc
new file mode 100644
index 000000000..a01659a72
--- /dev/null
+++ b/meta-oe/recipes-extended/libmodbus/libmodbus.inc
@@ -0,0 +1,13 @@
1SUMMARY = "A Modbus library"
2DESCRIPTION = "libmodbus is a C library designed to provide a fast and robust \
3implementation of the Modbus protocol. It runs on Linux, Mac OS X, FreeBSD, \
4QNX and Windows."
5HOMEPAGE = "http://www.libmodbus.org/"
6SECTION = "libs"
7
8LICENSE = "LGPLv2.1+"
9LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c"
10
11SRC_URI = "http://libmodbus.org/releases/${BP}.tar.gz"
12
13inherit autotools pkgconfig
diff --git a/meta-oe/recipes-extended/libmodbus/libmodbus_3.0.6.bb b/meta-oe/recipes-extended/libmodbus/libmodbus_3.0.6.bb
index c5e6ae865..b4d32fb2c 100644
--- a/meta-oe/recipes-extended/libmodbus/libmodbus_3.0.6.bb
+++ b/meta-oe/recipes-extended/libmodbus/libmodbus_3.0.6.bb
@@ -1,16 +1,4 @@
1SUMMARY = "A Modbus library" 1require libmodbus.inc
2DESCRIPTION = "libmodbus is a C library designed to provide a fast and robust \
3implementation of the Modbus protocol. It runs on Linux, Mac OS X, FreeBSD, \
4QNX and Windows."
5HOMEPAGE = "http://www.libmodbus.org/"
6SECTION = "libs"
7
8LICENSE = "LGPLv2.1+"
9LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c"
10
11SRC_URI = "http://libmodbus.org/site_media/build/${BP}.tar.gz"
12
13inherit autotools pkgconfig
14 2
15SRC_URI[md5sum] = "c80f88b6ca19cabc4ceffc195ca07771" 3SRC_URI[md5sum] = "c80f88b6ca19cabc4ceffc195ca07771"
16SRC_URI[sha256sum] = "046d63f10f755e2160dc56ef681e5f5ad3862a57c1955fd82e0ce036b69471b6" 4SRC_URI[sha256sum] = "046d63f10f755e2160dc56ef681e5f5ad3862a57c1955fd82e0ce036b69471b6"
diff --git a/meta-oe/recipes-extended/libmodbus/libmodbus_3.1.2.bb b/meta-oe/recipes-extended/libmodbus/libmodbus_3.1.2.bb
new file mode 100644
index 000000000..6fcfc3a1f
--- /dev/null
+++ b/meta-oe/recipes-extended/libmodbus/libmodbus_3.1.2.bb
@@ -0,0 +1,7 @@
1require libmodbus.inc
2
3# Use the stable branch by default
4DEFAULT_PREFERENCE = "-1"
5
6SRC_URI[md5sum] = "dd4262f87ed835c4d1e560f8321a222c"
7SRC_URI[sha256sum] = "661e14f9dc904f3f1b034464ddaa5fd4b8472f8f5d1ea10a1148af85591b7ee9"