florian 6011943da4 libsml: update to 0.2
This patch updates the libsml package to the latest revision.

The current revision of the libsml package is outdated for 7 months.
Meanwhile, the developers of libsml provided various bug fixes,
notably to support big-endian machines correctly.

[florian: pass UNAME directly from the Makefiel]

Signed-off-by: Daniel Pauli <paulid@student.ethz.ch>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@34529 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-05 18:04:18 +00:00

55 lines
1.5 KiB
Makefile

#
# Copyright (C) 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:=libsml
PKG_VERSION:=0.2
PKG_RELEASE:=1
PKG_REV:=550aa8216295ff76076f35ce2eb00872dfd83f8f
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=git://github.com/dailab/libsml.git
PKG_SOURCE_VERSION:=$(PKG_REV)
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_PROTO:=git
include $(INCLUDE_DIR)/package.mk
define Package/libsml
SECTION:=libs
CATEGORY:=Libraries
URL:=https://github.com/dailab/libsml
TITLE:=Library which implements the Smart Messaging Language (SML) protocol
DEPENDS:=+libuuid
endef
MAKE_FLAGS += \
UNAME="Linux"
define Package/libsml/description
libSML is a library which implements the Smart Messaging Language (SML) protocol specified by
VDE's Forum Netztechnik/Netzbetrieb (FNN). It can be utilized to communicate to FNN specified
Smart Meters or Smart Meter components (EDL/MUC).
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_BUILD_DIR)/sml/include/sml $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/sml/lib/libsml.{so*,a} $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_BUILD_DIR)/sml.pc $(1)/usr/lib/pkgconfig/
endef
define Package/libsml/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/sml/lib/libsml.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libsml))