fa25692b6f846d04c05b8771f2c6a189e6e0bb13
[openwrt/openwrt.git] / package / libs / libconfig / Makefile
1 #
2 # Copyright (C) 2008-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libconfig
11 PKG_VERSION:=1.4.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.hyperrealm.com/libconfig
16 PKG_MD5SUM:=b6ee0ce2b3ef844bad7cac2803a90634
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 PKG_LICENSE:=LGPL-2.1+
22 PKG_LICENSE_FILES:=COPYING.LIB
23
24 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
25 PKG_LICENSE:=LGPL-2.1+
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/libconfig
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=Configuration File Library
33 URL:=http://www.hyperrealm.com/libconfig/
34 endef
35
36 define Package/libconfig/description
37 Libconfig is a simple library for manipulating structured configuration
38 files. This file format is more compact and more readable than XML. And
39 unlike XML, it is type-aware, so it is not necessary to do string
40 parsing in application code.
41
42 Libconfig is very compact -- just 38K for the stripped C shared
43 library (less than one-fourth the size of the expat XML parser library)
44 and 66K for the stripped C++ shared library. This makes it well-suited
45 for memory-constrained systems like handheld devices.
46 endef
47
48 CONFIGURE_ARGS += \
49 --enable-shared \
50 --disable-static \
51 --disable-cxx
52
53 define Build/InstallDev
54 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
55 endef
56
57 define Package/libconfig/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfig.so* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,libconfig))