source: packages/libs/libmodbus/Makefile @ 31286

Last change on this file since 31286 was 31286, checked in by jow, 5 years ago

libmodbus: install/inlcude all symlinks in package

Signed-off-by: Michael Heimpold <mhei@…>

File size: 1.2 KB
Line 
1#
2# Copyright (C) 2006-2012 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libmodbus
11PKG_VERSION:=3.0.2
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://github.com/downloads/stephane/libmodbus/
16PKG_MD5SUM:=1aaacce9d9779d3a84f7d1a75774c943
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/libmodbus
24  SECTION:=libs
25  CATEGORY:=Libraries
26  URL:=http://www.libmodbus.org
27  TITLE:=libmodbus
28endef
29
30define Package/libmodbus/description
31A Modbus library for Linux, Mac OS X, FreeBSD, QNX and Win32
32endef
33
34TARGET_CFLAGS += $(FPIC)
35
36define Build/InstallDev
37        $(INSTALL_DIR) $(1)/usr/include
38        $(CP) $(PKG_INSTALL_DIR)/usr/include/modbus $(1)/usr/include/
39        $(INSTALL_DIR) $(1)/usr/lib
40        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmodbus.{so*,la} $(1)/usr/lib/
41        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
42        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmodbus.pc $(1)/usr/lib/pkgconfig/
43endef
44
45define Package/libmodbus/install
46        $(INSTALL_DIR) $(1)/usr/lib
47        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmodbus.so* $(1)/usr/lib/
48endef
49
50$(eval $(call BuildPackage,libmodbus))
Note: See TracBrowser for help on using the repository browser.