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