2 # Copyright (C) 2006-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
://bzero.se
/confuse
16 PKG_MD5SUM
:=0e883d66f0f58fc33585b430c652aa30
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/confuse
25 TITLE
:=libConfuse is a configuration file parser library
26 URL
:=http
://www.nongnu.org
/confuse
/
29 define Package
/confuse
/description
30 libConfuse is a configuration file parser library
, licensed under the
31 terms of the ISC license
, and written in C. It supports sections and
32 (lists of
) values
(strings
, integers
, floats
, booleans or other
33 sections
), as well
as some other features
(such
as single
/double-quoted
34 strings
, environment variable expansion
, functions and nested
include
35 statements
). It makes it very easy to add configuration file capability
36 to a program using a simple API.
38 The goal of libConfuse is not to be the configuration file parser
39 library with a gazillion of features. Instead
, it aims to be easy to use
40 and quick to integrate with your code. libConfuse was called libcfg
41 before
, but was changed to not confuse with other similar libraries.
44 TARGET_CFLAGS
+= $(FPIC
)
50 --without-libiconv-prefix \
51 --without-libintl-prefix \
54 -C
$(PKG_BUILD_DIR
)/src \
55 DESTDIR
="$(PKG_INSTALL_DIR)" \
58 define Build
/InstallDev
59 $(INSTALL_DIR
) $(1)/usr
/include
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/confuse.h
$(1)/usr
/include/
61 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libconfuse.
{a
,so
*} $(1)/usr
/lib
/
63 $(CP
) $(PKG_BUILD_DIR
)/*.
pc $(1)/usr
/lib
/pkgconfig
/
66 define Build
/UninstallDev
68 $(STAGING_DIR
)/usr
/include/confuse.h \
69 $(STAGING_DIR
)/usr
/lib
/libconfuse.
{a
,so
*}
72 define Package
/confuse
/install
73 $(INSTALL_DIR
) $(1)/usr
/lib
74 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libconfuse.so.
* $(1)/usr
/lib
/
77 $(eval
$(call BuildPackage
,confuse
))