2 # Copyright (C) 2006-2014 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.xz
15 PKG_SOURCE_URL
:=https
://github.com
/martinh
/libconfuse
/releases
/download
/v
$(PKG_VERSION
)
16 PKG_HASH
:=1dd50a0320e135a55025b23fcdbb3f0a81913b6d0b0a9df8cc2fdf3b3dc67010
20 PKG_LICENSE_FILES
:=LICENSE
21 PKG_CPE_ID
:=cpe
:/a
:libconfuse_project
:libconfuse
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/confuse
31 TITLE
:=libConfuse is a configuration file parser library
32 URL
:=https
://github.com
/martinh
/libconfuse
35 define Package
/confuse
/description
36 libConfuse is a configuration file parser library
, licensed under the
37 terms of the ISC license
, and written in C. It supports sections and
38 (lists of
) values
(strings
, integers
, floats
, booleans or other
39 sections
), as well
as some other features
(such
as single
/double-quoted
40 strings
, environment variable expansion
, functions and nested
include
41 statements
). It makes it very easy to add configuration file capability
42 to a program using a simple API.
44 The goal of libConfuse is not to be the configuration file parser
45 library with a gazillion of features. Instead
, it aims to be easy to use
46 and quick to integrate with your code. libConfuse was called libcfg
47 before
, but was changed to not confuse with other similar libraries.
54 --without-libiconv-prefix \
55 --without-libintl-prefix \
59 define Build
/InstallDev
60 $(INSTALL_DIR
) $(1)/usr
/include
61 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/confuse.h
$(1)/usr
/include/
62 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libconfuse.
{a
,so
*} $(1)/usr
/lib
/
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libconfuse.
pc $(1)/usr
/lib
/pkgconfig
/
67 define Package
/confuse
/install
68 $(INSTALL_DIR
) $(1)/usr
/lib
69 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libconfuse.so.
* $(1)/usr
/lib
/
72 $(eval
$(call BuildPackage
,confuse
))