diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-07-26 10:02:51 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-07-26 10:02:51 +0000 |
commit | 4e049d82b42892be8b53789f57bb367afa6a9e1d (patch) | |
tree | b33bb3273595584f3c7081af2ceea2eba998c5b8 /package/libs | |
parent | 3f8c8d6f6006f310166ebc9e845f2a532c56a7dc (diff) | |
download | mtk-20170518-4e049d82b42892be8b53789f57bb367afa6a9e1d.zip mtk-20170518-4e049d82b42892be8b53789f57bb367afa6a9e1d.tar.gz mtk-20170518-4e049d82b42892be8b53789f57bb367afa6a9e1d.tar.bz2 |
libconfig: add from /packages, update to latest version, add myself as maintainer
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37552
Diffstat (limited to 'package/libs')
-rw-r--r-- | package/libs/libconfig/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/package/libs/libconfig/Makefile b/package/libs/libconfig/Makefile new file mode 100644 index 0000000..5ade648 --- /dev/null +++ b/package/libs/libconfig/Makefile @@ -0,0 +1,58 @@ +# +# Copyright (C) 2008-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:=libconfig +PKG_VERSION:=1.4.9 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.hyperrealm.com/libconfig +PKG_MD5SUM:=b6ee0ce2b3ef844bad7cac2803a90634 + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org> + +include $(INCLUDE_DIR)/package.mk + +define Package/libconfig + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Configuration File Library + URL:=http://www.hyperrealm.com/libconfig/ +endef + +define Package/libconfig/description + Libconfig is a simple library for manipulating structured configuration + files. This file format is more compact and more readable than XML. And + unlike XML, it is type-aware, so it is not necessary to do string + parsing in application code. + + Libconfig is very compact -- just 38K for the stripped C shared + library (less than one-fourth the size of the expat XML parser library) + and 66K for the stripped C++ shared library. This makes it well-suited + for memory-constrained systems like handheld devices. +endef + +CONFIGURE_ARGS += \ + --enable-shared \ + --disable-static \ + --disable-cxx + +define Build/InstallDev + $(CP) $(PKG_INSTALL_DIR)/* $(1)/ +endef + +define Package/libconfig/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfig.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libconfig)) |