2 # Copyright (C) 2008-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.hyperrealm.com/libconfig
16 PKG_MD5SUM:=b6ee0ce2b3ef844bad7cac2803a90634
21 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
23 include $(INCLUDE_DIR)/package.mk
25 define Package/libconfig
28 TITLE:=Configuration File Library
29 URL:=http://www.hyperrealm.com/libconfig/
32 define Package/libconfig/description
33 Libconfig is a simple library for manipulating structured configuration
34 files. This file format is more compact and more readable than XML. And
35 unlike XML, it is type-aware, so it is not necessary to do string
36 parsing in application code.
38 Libconfig is very compact -- just 38K for the stripped C shared
39 library (less than one-fourth the size of the expat XML parser library)
40 and 66K for the stripped C++ shared library. This makes it well-suited
41 for memory-constrained systems like handheld devices.
49 define Build/InstallDev
50 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
53 define Package/libconfig/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfig.so* $(1)/usr/lib/
58 $(eval $(call BuildPackage,libconfig))