Do not use host includes, especially on 64-bits nomultilib systems
[openwrt/svn-archive/archive.git] / libs / confuse / Makefile
1 #
2 # Copyright (C) 2006 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: Makefile 9349 2007-10-18 18:46:37Z blogic $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=confuse
12 PKG_VERSION:=2.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/confuse/
17 PKG_MD5SUM:=4bc9b73d77ebd571ac834619ce0b3582
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/confuse
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=libConfuse is a configuration file parser library
28 URL:=http://www.nongnu.org/confuse/
29 endef
30
31 define Package/confuse/description
32 libConfuse is a configuration file parser library, licensed under the terms of the LGPL,
33 and written in C. It supports sections and (lists of) values (strings, integers, floats,
34 booleans or other sections), as well as some other features (such as single/double-quoted
35 strings, environment variable expansion, functions and nested include statements). It makes
36 it very easy to add configuration file capability to a program using a simple API.
37
38 The goal of libConfuse is not to be the configuration file parser library with a gazillion
39 of features. Instead, it aims to be easy to use and quick to integrate with your code.
40 libConfuse was called libcfg before, but was changed to not confuse with other similar libraries.
41 endef
42
43 CONFIGURE_ARGS += \
44 --enable-shared \
45 --enable-static \
46 --disable-rpath \
47 --without-libiconv-prefix \ --without-libintl-prefix \
48
49 MAKE_FLAGS += \
50 -C $(PKG_BUILD_DIR)/src \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
52 all install \
53
54 define Build/InstallDev
55 mkdir -p $(1)/usr/include
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/confuse.h $(1)/usr/include/
57 mkdir -p $(1)/usr/lib/pkgconfig
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfuse.{a,so*} $(1)/usr/lib/
59 $(CP) $(PKG_BUILD_DIR)/*.pc $(1)/usr/lib/pkgconfig/
60 endef
61
62 define Build/UninstallDev
63 rm -rf \
64 $(STAGING_DIR)/usr/include/confuse.h \
65 $(STAGING_DIR)/usr/lib/libconfuse.{a,so*}
66 endef
67
68 define Package/confuse/install
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfuse.so.* $(1)/usr/lib/
71 endef
72
73 $(eval $(call BuildPackage,confuse))