5ade648fe3d77bc3188855ce14c4e41be376e7f4
[openwrt/staging/lynxis/omap.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_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libconfig
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=Configuration File Library
29 URL:=http://www.hyperrealm.com/libconfig/
30 endef
31
32 define Package/libconfig/description
33 Libconfig is a simple library for manipulating structured configuration
34 files. This file format is more compact and more readable than XML. And
35 unlike XML, it is type-aware, so it is not necessary to do string
36 parsing in application code.
37
38 Libconfig is very compact -- just 38K for the stripped C shared
39 library (less than one-fourth the size of the expat XML parser library)
40 and 66K for the stripped C++ shared library. This makes it well-suited
41 for memory-constrained systems like handheld devices.
42 endef
43
44 CONFIGURE_ARGS += \
45 --enable-shared \
46 --disable-static \
47 --disable-cxx
48
49 define Build/InstallDev
50 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
51 endef
52
53 define Package/libconfig/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfig.so* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,libconfig))