[packages] libiconv-full: autoreconf is broken with this package, use patch-libtool...
[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.1
12 PKG_RELEASE:=1
13 PKG_REV:=4e546fb0db0bd4c0a2c3c2f3d29ac0a0ba6651a3
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 define Package/libsml/description
32 libSML is a library which implements the Smart Messaging Language (SML) protocol specified by
33 VDE's Forum Netztechnik/Netzbetrieb (FNN). It can be utilized to communicate to FNN specified
34 Smart Meters or Smart Meter components (EDL/MUC).
35 endef
36
37 define Build/InstallDev
38 $(INSTALL_DIR) $(1)/usr/include
39 $(CP) $(PKG_BUILD_DIR)/sml/include/sml $(1)/usr/include/
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_BUILD_DIR)/sml/lib/libsml.{so*,a} $(1)/usr/lib/
42 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
43 $(CP) $(PKG_BUILD_DIR)/sml.pc $(1)/usr/lib/pkgconfig/
44 endef
45
46 define Package/libsml/install
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_BUILD_DIR)/sml/lib/libsml.so* $(1)/usr/lib/
49 endef
50
51 $(eval $(call BuildPackage,libsml))