2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://libmodbus.org
/releases
16 PKG_HASH
:=c8c862b0e9a7ba699a49bc98f62bdffdfafd53a5716c0e162696b4bf108d3637
18 PKG_MAINTAINER
:=Michael Heimpold
<mhei@heimpold.de
>
20 PKG_LICENSE
:=GPL-3.0
+ LGPL-2.1
+
21 PKG_LICENSE_FILES
:=COPYING COPYING.LESSER
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/libmodbus
31 URL
:=http
://www.libmodbus.org
35 define Package
/libmodbus
/description
36 A Modbus library for Linux
, Mac OS X
, FreeBSD
, QNX and Win32.
39 CONFIGURE_ARGS
+= --without-documentation
--disable-tests
40 TARGET_CFLAGS
+= $(FPIC
)
42 define Build
/InstallDev
43 $(INSTALL_DIR
) $(1)/usr
/include
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/modbus
$(1)/usr
/include/
45 $(INSTALL_DIR
) $(1)/usr
/lib
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmodbus.
{so
*,la
} $(1)/usr
/lib
/
47 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libmodbus.
pc $(1)/usr
/lib
/pkgconfig
/
51 define Package
/libmodbus
/install
52 $(INSTALL_DIR
) $(1)/usr
/lib
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmodbus.so
* $(1)/usr
/lib
/
56 $(eval
$(call BuildPackage
,libmodbus
))