[packages] libconfig: install pkgconfig data in staging dir
[packages.git] / 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.8
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.hyperrealm.com/libconfig
16 PKG_MD5SUM:=36788da452e9fcfc8efb7661ef5d31ef
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libconfig
24   SECTION:=libs
25   CATEGORY:=Libraries
26   TITLE:=Configuration File Library
27   URL:=http://www.hyperrealm.com/libconfig/
28 endef
29
30 define Package/libconfig/description
31  Libconfig is a simple library for manipulating structured configuration
32  files. This file format is more compact and more readable than XML. And
33  unlike XML, it is type-aware, so it is not necessary to do string
34  parsing in application code.
35
36  Libconfig is very compact -- just 38K for the stripped C shared
37  library (less than one-fourth the size of the expat XML parser library)
38  and 66K for the stripped C++ shared library. This makes it well-suited
39  for memory-constrained systems like handheld devices.
40 endef
41
42 CONFIGURE_ARGS += \
43         --enable-shared \
44         --enable-static \
45         --disable-cxx
46
47 define Build/InstallDev
48         $(INSTALL_DIR) $(1)/usr/include
49         $(CP) $(PKG_INSTALL_DIR)/usr/include/libconfig.h $(1)/usr/include/
50         $(INSTALL_DIR) $(1)/usr/lib
51         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfig.{a,so*} $(1)/usr/lib/
52         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libconfig.pc $(1)/usr/lib/pkgconfig/
54 endef
55
56 define Package/libconfig/install
57         $(INSTALL_DIR) $(1)/usr/lib
58         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfig.so* $(1)/usr/lib/
59 endef
60
61 $(eval $(call BuildPackage,libconfig))