2 # Copyright (C) 2008-2010 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:=295f580a7bc3a03a44d520d6ace55ee6
21 include $(INCLUDE_DIR)/package.mk
23 define Package/libconfig
26 TITLE:=Configuration File Library
27 URL:=http://www.hyperrealm.com/libconfig/
30 define Package/libconfig/description
31 Libconfig is a simple library for manipulating structured
32 configuration files. This file format is more compact and more
33 readable than XML. And unlike XML, it is type-aware, so it is not
34 necessary to do string parsing in application code.
36 Libconfig is very compact -- just 38K for the stripped C shared
37 library (less than one-fourth the size of the expat XML parser
38 library) and 66K for the stripped C++ shared library. This makes
39 it well-suited for memory-constrained systems like handheld devices.
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include/libconfig/
49 $(CP) $(PKG_INSTALL_DIR)/usr/include/libconfig.h $(1)/usr/include/libconfig/
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfig.{a,so} $(1)/usr/lib/
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfig.so* $(1)/usr/lib/
55 define Package/libconfig/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfig.so.* $(1)/usr/lib/
60 $(eval $(call BuildPackage,libconfig))