diff options
Diffstat (limited to 'comms')
-rw-r--r-- | comms/Makefile | 1 | ||||
-rw-r--r-- | comms/libmodbus/Makefile | 46 | ||||
-rw-r--r-- | comms/libmodbus/distinfo | 2 | ||||
-rw-r--r-- | comms/libmodbus/files/patch-Makefile.in | 11 | ||||
-rw-r--r-- | comms/libmodbus/pkg-descr | 5 |
5 files changed, 65 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile index 9a5c357ee676..b4b606c394b0 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -78,6 +78,7 @@ SUBDIR += libfec SUBDIR += libimobiledevice SUBDIR += libirman + SUBDIR += libmodbus SUBDIR += libticables SUBDIR += libticables2 SUBDIR += libticalcs2 diff --git a/comms/libmodbus/Makefile b/comms/libmodbus/Makefile new file mode 100644 index 000000000000..6039c00ebef2 --- /dev/null +++ b/comms/libmodbus/Makefile @@ -0,0 +1,46 @@ +# $FreeBSD$ + +PORTNAME= libmodbus +PORTVERSION= 3.1.0 +CATEGORIES= comms + +MAINTAINER= bsam@FreeBSD.org +COMMENT= Modbus library + +LICENSE= LGPL21 + +USE_GITHUB= yes +GH_ACCOUNT= stephane +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +GNU_CONFIGURE= yes +USE_LDCONFIG= yes + +PLIST_FILES= include/modbus/modbus-rtu.h include/modbus/modbus-tcp.h \ + include/modbus/modbus-version.h include/modbus/modbus.h \ + lib/libmodbus.la lib/libmodbus.so lib/libmodbus.so.6 \ + libdata/pkgconfig/libmodbus.pc +PLIST_DIRS= include/modbus +MAN3= modbus_close.3 modbus_connect.3 modbus_flush.3 modbus_free.3 \ + modbus_get_byte_from_bits.3 modbus_get_byte_timeout.3 \ + modbus_get_float.3 modbus_get_header_length.3 \ + modbus_get_response_timeout.3 modbus_get_socket.3 \ + modbus_mapping_free.3 modbus_mapping_new.3 modbus_new_rtu.3 \ + modbus_new_tcp.3 modbus_new_tcp_pi.3 modbus_read_bits.3 \ + modbus_read_input_bits.3 modbus_read_input_registers.3 \ + modbus_read_registers.3 modbus_receive.3 \ + modbus_receive_confirmation.3 modbus_receive_from.3 \ + modbus_reply.3 modbus_reply_exception.3 \ + modbus_report_slave_id.3 modbus_rtu_get_rts.3 \ + modbus_rtu_get_serial_mode.3 modbus_rtu_set_rts.3 \ + modbus_rtu_set_serial_mode.3 modbus_send_raw_request.3 \ + modbus_set_bits_from_byte.3 modbus_set_bits_from_bytes.3 \ + modbus_set_byte_timeout.3 modbus_set_debug.3 \ + modbus_set_error_recovery.3 modbus_set_float.3 \ + modbus_set_response_timeout.3 modbus_set_slave.3 \ + modbus_set_socket.3 modbus_strerror.3 modbus_tcp_listen.3 \ + modbus_write_and_read_registers.3 modbus_write_bit.3 \ + modbus_write_bits.3 modbus_write_register.3 \ + modbus_write_registers.3 +MAN7= libmodbus.7 + +.include <bsd.port.mk> diff --git a/comms/libmodbus/distinfo b/comms/libmodbus/distinfo new file mode 100644 index 000000000000..13f05885d423 --- /dev/null +++ b/comms/libmodbus/distinfo @@ -0,0 +1,2 @@ +SHA256 (libmodbus-3.1.0.tar.gz) = 0ee9b40245a2a810de44f345580b7bfc54d79d9b2be60424bab84d5431098e4f +SIZE (libmodbus-3.1.0.tar.gz) = 521675 diff --git a/comms/libmodbus/files/patch-Makefile.in b/comms/libmodbus/files/patch-Makefile.in new file mode 100644 index 000000000000..2113cd89ef0f --- /dev/null +++ b/comms/libmodbus/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig 2013-05-14 00:10:34.000000000 +0400 ++++ Makefile.in 2013-05-14 00:11:07.000000000 +0400 +@@ -272,7 +272,7 @@ top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + EXTRA_DIST = MIGRATION README.rst libmodbus.spec + SUBDIRS = src doc tests +-pkgconfigdir = $(libdir)/pkgconfig ++pkgconfigdir = $(prefix)/libdata/pkgconfig + pkgconfig_DATA = libmodbus.pc + all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive diff --git a/comms/libmodbus/pkg-descr b/comms/libmodbus/pkg-descr new file mode 100644 index 000000000000..caf4b32bbd67 --- /dev/null +++ b/comms/libmodbus/pkg-descr @@ -0,0 +1,5 @@ +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. + +WWW: http://libmodbus.org/ |