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
:=23c63272baf2ef4e2cbbafad2cf57de7eb81f006ec347c00b954819824add25e
17 PKG_MAINTAINER
:=Daniel Engberg
<daniel.engberg.lists@pyret.net
>
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/confuse
27 TITLE
:=libConfuse is a configuration file parser library
28 URL
:=https
://github.com
/martinh
/libconfuse
31 define Package
/confuse
/description
32 libConfuse is a configuration file parser library
, licensed under the
33 terms of the ISC license
, and written in C. It supports sections and
34 (lists of
) values
(strings
, integers
, floats
, booleans or other
35 sections
), as well
as some other features
(such
as single
/double-quoted
36 strings
, environment variable expansion
, functions and nested
include
37 statements
). It makes it very easy to add configuration file capability
38 to a program using a simple API.
40 The goal of libConfuse is not to be the configuration file parser
41 library with a gazillion of features. Instead
, it aims to be easy to use
42 and quick to integrate with your code. libConfuse was called libcfg
43 before
, but was changed to not confuse with other similar libraries.
46 TARGET_CFLAGS
+= $(FPIC
)
52 --without-libiconv-prefix \
53 --without-libintl-prefix \
57 -C
$(PKG_BUILD_DIR
)/src \
58 DESTDIR
="$(PKG_INSTALL_DIR)" \
61 define Build
/InstallDev
62 $(INSTALL_DIR
) $(1)/usr
/include
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/confuse.h
$(1)/usr
/include/
64 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libconfuse.
{a
,so
*} $(1)/usr
/lib
/
66 $(CP
) $(PKG_BUILD_DIR
)/*.
pc $(1)/usr
/lib
/pkgconfig
/
69 define Build
/UninstallDev
71 $(STAGING_DIR
)/usr
/include/confuse.h \
72 $(STAGING_DIR
)/usr
/lib
/libconfuse.
{a
,so
*}
75 define Package
/confuse
/install
76 $(INSTALL_DIR
) $(1)/usr
/lib
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libconfuse.so.
* $(1)/usr
/lib
/
80 $(eval
$(call BuildPackage
,confuse
))