2012-04-14 20:09:29 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2011-03-28 22:03:25 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libmodbus
|
2012-03-27 19:20:29 +00:00
|
|
|
PKG_VERSION:=3.0.2
|
2012-04-14 20:09:29 +00:00
|
|
|
PKG_RELEASE:=2
|
2011-03-28 22:03:25 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://github.com/downloads/stephane/libmodbus/
|
2012-03-27 19:20:29 +00:00
|
|
|
PKG_MD5SUM:=1aaacce9d9779d3a84f7d1a75774c943
|
2011-03-28 22:03:25 +00:00
|
|
|
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2011-03-28 22:03:25 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libmodbus
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
URL:=http://www.libmodbus.org
|
|
|
|
TITLE:=libmodbus
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libmodbus/description
|
|
|
|
A Modbus library for Linux, Mac OS X, FreeBSD, QNX and Win32
|
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/modbus $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmodbus.{so*,la} $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2012-03-27 19:20:29 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmodbus.pc $(1)/usr/lib/pkgconfig/
|
2011-03-28 22:03:25 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libmodbus/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2012-04-14 20:09:29 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmodbus.so* $(1)/usr/lib/
|
2011-03-28 22:03:25 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libmodbus))
|