2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.hyperrealm.com
/libconfig
/
17 PKG_MD5SUM
:=00f2ebfacb5a0b7b02b409b751432b80
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/libconfig
24 TITLE
:=Configuration File Library
25 URL
:=http
://www.hyperrealm.com
/libconfig
/
28 define Package
/libconfig
/description
29 Libconfig is a simple library for manipulating structured
30 configuration files. This file format is more compact and more
31 readable than XML. And unlike XML
, it is type-aware
, so it is not
32 necessary to do string parsing in application code.
34 Libconfig is very compact
-- just
38K for the stripped C shared
35 library
(less than one-fourth the size of the expat XML parser
36 library
) and
66K for the stripped C
++ shared library. This makes
37 it well-suited for memory-constrained systems like handheld devices.
46 CFLAGS
="$(TARGET_CFLAGS)" \
47 DESTDIR
="$(PKG_INSTALL_DIR)" \
50 define Build
/InstallDev
51 mkdir
-p
$(1)/usr
/include
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libconfig.h
$(1)/usr
/include/
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libconfig.
{a
,so
} $(1)/usr
/lib
/
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libconfig.so
* $(1)/usr
/lib
/
58 define Package
/libconfig
/install
59 $(INSTALL_DIR
) $(1)/usr
/lib
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libconfig.so.
* $(1)/usr
/lib
/
63 $(eval
$(call BuildPackage
,libconfig
))