libv4l: update to 1.22.1
[feed/packages.git] / libs / confuse / Makefile
1 #
2 # Copyright (C) 2006-2014 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:=3.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=https://github.com/martinh/libconfuse/releases/download/v$(PKG_VERSION)
16 PKG_HASH:=1dd50a0320e135a55025b23fcdbb3f0a81913b6d0b0a9df8cc2fdf3b3dc67010
17
18 PKG_MAINTAINER:=
19 PKG_LICENSE:=ISC
20 PKG_LICENSE_FILES:=LICENSE
21 PKG_CPE_ID:=cpe:/a:libconfuse_project:libconfuse
22
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/confuse
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=libConfuse is a configuration file parser library
32 URL:=https://github.com/martinh/libconfuse
33 endef
34
35 define Package/confuse/description
36 libConfuse is a configuration file parser library, licensed under the
37 terms of the ISC license, and written in C. It supports sections and
38 (lists of) values (strings, integers, floats, booleans or other
39 sections), as well as some other features (such as single/double-quoted
40 strings, environment variable expansion, functions and nested include
41 statements). It makes it very easy to add configuration file capability
42 to a program using a simple API.
43
44 The goal of libConfuse is not to be the configuration file parser
45 library with a gazillion of features. Instead, it aims to be easy to use
46 and quick to integrate with your code. libConfuse was called libcfg
47 before, but was changed to not confuse with other similar libraries.
48 endef
49
50 CONFIGURE_ARGS += \
51 --enable-shared \
52 --enable-static \
53 --disable-rpath \
54 --without-libiconv-prefix \
55 --without-libintl-prefix \
56 --disable-examples \
57 --with-pic
58
59 define Build/InstallDev
60 $(INSTALL_DIR) $(1)/usr/include
61 $(CP) $(PKG_INSTALL_DIR)/usr/include/confuse.h $(1)/usr/include/
62 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfuse.{a,so*} $(1)/usr/lib/
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libconfuse.pc $(1)/usr/lib/pkgconfig/
65 endef
66
67 define Package/confuse/install
68 $(INSTALL_DIR) $(1)/usr/lib
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfuse.so.* $(1)/usr/lib/
70 endef
71
72 $(eval $(call BuildPackage,confuse))