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
:=https
://hyperrealm.github.io
/libconfig
/dist/
16 PKG_HASH
:=7c3c7a9c73ff3302084386e96f903eb62ce06953bb1666235fac74363a16fad9
21 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
22 PKG_LICENSE
:=LGPL-2.1
+
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/libconfig
29 TITLE
:=Configuration File Library
30 URL
:=http
://www.hyperrealm.com
/libconfig
/
34 define Package
/libconfig
/description
35 Libconfig is a simple library for manipulating structured configuration
36 files. This file format is more compact and more readable than XML. And
37 unlike XML
, it is type-aware
, so it is not necessary to do string
38 parsing in application code.
40 Libconfig is very compact
-- just
38K for the stripped C shared
41 library
(less than one-fourth the size of the expat XML parser library
)
42 and
66K for the stripped C
++ shared library. This makes it well-suited
43 for memory-constrained systems like handheld devices.
51 define Build
/InstallDev
52 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)/
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
))