libsml: update to 0.2
[openwrt/svn-archive/archive.git] / libs / libsml / Makefile
1 #
2 # Copyright (C) 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libsml
11 PKG_VERSION:=0.2
12 PKG_RELEASE:=1
13 PKG_REV:=550aa8216295ff76076f35ce2eb00872dfd83f8f
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=git://github.com/dailab/libsml.git
17 PKG_SOURCE_VERSION:=$(PKG_REV)
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_PROTO:=git
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libsml
24 SECTION:=libs
25 CATEGORY:=Libraries
26 URL:=https://github.com/dailab/libsml
27 TITLE:=Library which implements the Smart Messaging Language (SML) protocol
28 DEPENDS:=+libuuid
29 endef
30
31 MAKE_FLAGS += \
32 UNAME="Linux"
33
34 define Package/libsml/description
35 libSML is a library which implements the Smart Messaging Language (SML) protocol specified by
36 VDE's Forum Netztechnik/Netzbetrieb (FNN). It can be utilized to communicate to FNN specified
37 Smart Meters or Smart Meter components (EDL/MUC).
38 endef
39
40 define Build/InstallDev
41 $(INSTALL_DIR) $(1)/usr/include
42 $(CP) $(PKG_BUILD_DIR)/sml/include/sml $(1)/usr/include/
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(CP) $(PKG_BUILD_DIR)/sml/lib/libsml.{so*,a} $(1)/usr/lib/
45 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
46 $(CP) $(PKG_BUILD_DIR)/sml.pc $(1)/usr/lib/pkgconfig/
47 endef
48
49 define Package/libsml/install
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_BUILD_DIR)/sml/lib/libsml.so* $(1)/usr/lib/
52 endef
53
54 $(eval $(call BuildPackage,libsml))