blob: 08468e85456af1c50cc09fbd9e7be99e7e2f0325 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
#
# Copyright (C) 2011-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libmbus
PKG_VERSION:=0.7.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.freescada.com/public-dist/
PKG_MD5SUM:=2f1a7ba0ccd683e6708364a13310a6d1
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/libmbus/Default
SECTION:=utils
CATEGORY:=Utilities
URL:=http://www.freescada.com/libmbus/
TITLE:=mbus-tools
endef
define Package/libmbus/Default/description
libmbus is an open source M-bus (Meter-Bus) library.
The Meter-Bus is a standard for reading out meter data from
electricity meters, heat meters, gas meters, etc.
endef
define Package/libmbus
$(call Package/libmbus/Default)
SECTION:=libs
CATEGORY:=Libraries
TITLE:=libmbus
endef
define Package/libmbus/description
$(call Package/libmbus/Default/description)
This package contains the M-bus shared library, used by other programs.
endef
define Package/mbus-serial
$(call Package/libmbus/Default)
DEPENDS+=+libmbus
TITLE+= (serial)
endef
define Package/mbus-serial/description
$(call Package/libmbus/Default/description)
This package contains command line tools for scanning the M-bus
and retrieving data from meters which are connected through a
serial (e.g. RS232) interface.
endef
define Package/mbus-tcp
$(call Package/libmbus/Default)
DEPENDS+=+libmbus
TITLE+= (tcp)
endef
define Package/mbus-tcp/description
$(call Package/libmbus/Default/description)
This package contains command line tools for scanning the M-bus
and retrieving data from meters which are accessible through
M-bus gateways via TCP.
endef
TARGET_CFLAGS += $(FPIC)
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/mbus $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmbus.{so*,la} $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmbus.pc $(1)/usr/lib/pkgconfig/
endef
define Package/libmbus/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmbus.so* $(1)/usr/lib/
endef
define Package/mbus-serial/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mbus-serial-* $(1)/usr/bin/
endef
define Package/mbus-tcp/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mbus-tcp-* $(1)/usr/bin/
endef
$(eval $(call BuildPackage,libmbus))
$(eval $(call BuildPackage,mbus-serial))
$(eval $(call BuildPackage,mbus-tcp))
|