Update giflib to 4.1.6 (#3582)
[openwrt/svn-archive/archive.git] / libs / libconfig / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libconfig
12 PKG_VERSION:=1.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.hyperrealm.com/libconfig/
17 PKG_MD5SUM:=00f2ebfacb5a0b7b02b409b751432b80
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libconfig
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=Configuration File Library
25 URL:=http://www.hyperrealm.com/libconfig/
26 endef
27
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.
33
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.
38 endef
39
40 CONFIGURE_ARGS += \
41 --enable-shared \
42 --enable-static \
43 --disable-cxx
44
45 MAKE_FLAGS += \
46 CFLAGS="$(TARGET_CFLAGS)" \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
48 all install
49
50 define Build/InstallDev
51 mkdir -p $(1)/usr/include
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/libconfig.h $(1)/usr/include/
53 mkdir -p $(1)/usr/lib
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/
56 endef
57
58 define Package/libconfig/install
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfig.so.* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,libconfig))