Add libmodbus package
authorJulien Boibessot <julien.boibessot@armadeus.com>
Wed, 19 Oct 2011 10:35:56 +0000 (12:35 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 28 Oct 2011 11:39:58 +0000 (13:39 +0200)
Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/libmodbus/Config.in [new file with mode: 0644]
package/libmodbus/libmodbus.mk [new file with mode: 0644]

index c6ca350bbc833b49c0179cff19f3af92f6b829fa..33dd59e3bdf125c44995c7c4e841bba3b0dd78ea 100644 (file)
@@ -333,6 +333,7 @@ source "package/libidn/Config.in"
 source "package/libmicrohttpd/Config.in"
 source "package/neon/Config.in"
 source "package/libmnl/Config.in"
+source "package/libmodbus/Config.in"
 source "package/libnl/Config.in"
 source "package/libpcap/Config.in"
 source "package/libosip2/Config.in"
diff --git a/package/libmodbus/Config.in b/package/libmodbus/Config.in
new file mode 100644 (file)
index 0000000..ccf1190
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LIBMODBUS
+       bool "libmodbus"
+       help
+         libmodbus is a free software library to send/receive data according
+         to the Modbus protocol. This library is written in C and supports
+         RTU (serial) and TCP (Ethernet) communications.
+
+         http://libmodbus.org
diff --git a/package/libmodbus/libmodbus.mk b/package/libmodbus/libmodbus.mk
new file mode 100644 (file)
index 0000000..ab134fd
--- /dev/null
@@ -0,0 +1,11 @@
+#############################################################
+#
+# libmodbus
+#
+#############################################################
+LIBMODBUS_VERSION = 3.0.1
+LIBMODBUS_SITE = http://github.com/downloads/stephane/libmodbus
+LIBMODBUS_SOURCE = libmodbus-$(LIBMODBUS_VERSION).tar.gz
+LIBMODBUS_INSTALL_STAGING = YES
+
+$(eval $(call AUTOTARGETS))