2 # Copyright (C) 2011-2012 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
://www.freescada.com
/public-dist
/
16 PKG_MD5SUM
:=2f1a7ba0ccd683e6708364a13310a6d1
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libmbus
/Default
26 URL
:=http
://www.freescada.com
/libmbus
/
30 define Package
/libmbus
/Default
/description
31 libmbus is an open source M-bus
(Meter-Bus
) library.
32 The Meter-Bus is a standard for reading out meter data from
33 electricity meters
, heat meters
, gas meters
, etc.
36 define Package
/libmbus
37 $(call Package
/libmbus
/Default
)
43 define Package
/libmbus
/description
44 $(call Package
/libmbus
/Default
/description
)
46 This package contains the M-bus shared library
, used by other programs.
49 define Package
/mbus-serial
50 $(call Package
/libmbus
/Default
)
55 define Package
/mbus-serial
/description
56 $(call Package
/libmbus
/Default
/description
)
58 This package contains command line tools for scanning the M-bus
59 and retrieving data from meters which are connected through a
60 serial
(e.g. RS232
) interface.
63 define Package
/mbus-tcp
64 $(call Package
/libmbus
/Default
)
69 define Package
/mbus-tcp
/description
70 $(call Package
/libmbus
/Default
/description
)
72 This package contains command line tools for scanning the M-bus
73 and retrieving data from meters which are accessible through
74 M-bus gateways via TCP.
77 TARGET_CFLAGS
+= $(FPIC
)
79 define Build
/InstallDev
80 $(INSTALL_DIR
) $(1)/usr
/include
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/mbus
$(1)/usr
/include/
82 $(INSTALL_DIR
) $(1)/usr
/lib
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmbus.
{so
*,la
} $(1)/usr
/lib
/
84 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libmbus.
pc $(1)/usr
/lib
/pkgconfig
/
88 define Package
/libmbus
/install
89 $(INSTALL_DIR
) $(1)/usr
/lib
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmbus.so
* $(1)/usr
/lib
/
93 define Package
/mbus-serial
/install
94 $(INSTALL_DIR
) $(1)/usr
/bin
95 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mbus-serial-
* $(1)/usr
/bin
/
98 define Package
/mbus-tcp
/install
99 $(INSTALL_DIR
) $(1)/usr
/bin
100 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mbus-tcp-
* $(1)/usr
/bin
/
103 $(eval
$(call BuildPackage
,libmbus
))
104 $(eval
$(call BuildPackage
,mbus-serial
))
105 $(eval
$(call BuildPackage
,mbus-tcp
))