From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 3.mo6.mail-out.ovh.net ([178.33.253.26] helo=mo6.mail-out.ovh.net) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1X8bXG-0006AM-TP for ptxdist@pengutronix.de; Sat, 19 Jul 2014 22:47:15 +0200 Received: from mail407.ha.ovh.net (gw6.ovh.net [213.251.189.206]) by mo6.mail-out.ovh.net (Postfix) with SMTP id 1E84CFF9B94 for ; Sat, 19 Jul 2014 22:47:14 +0200 (CEST) From: "Guillaume GOURAT" Date: Sat, 19 Jul 2014 22:47:01 +0200 Message-ID: <004601cfa392$97ed2e90$c7c78bb0$@gourat@nexvision.fr> MIME-Version: 1.0 Content-Language: fr Subject: [ptxdist] [PATCH] libconfig: new package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de libconfig: new package Signed-off-by: Guillaume Gourat diff --git a/rules/libconfig.in b/rules/libconfig.in new file mode 100644 index 0000000..286668a --- /dev/null +++ b/rules/libconfig.in @@ -0,0 +1,27 @@ +## SECTION=system_libraries + +menuconfig LIBCONFIG + tristate + prompt "libconfig " + select LIBC_M + select GCCLIBS_GCC_S + select GCCLIBS_CXX + help + Libconfig is a simple library for processing structured configuration + files. Libconfig is very compact, a fraction of the size of the expat + XML parser library. This makes it well-suited for memory-constrained + systems like handheld devices. + + See http://www.hyperrealm.com/libconfig/ for info about it. + +if LIBCONFIG + +config LIBCONFIG_INSTALL_LIBCONFIG_SO + bool + prompt "Install libconfig on the target" + +config LIBCONFIG_INSTALL_LIBCONFIGPP_SO + bool + prompt "Install libconfig++ on the target" + +endif diff --git a/rules/libconfig.make b/rules/libconfig.make new file mode 100644 index 0000000..26919d3 --- /dev/null +++ b/rules/libconfig.make @@ -0,0 +1,63 @@ +# -*-makefile-*- +# +# Copyright (C) 2014 by Guillaume Gourat +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBCONFIG) += libconfig + +# +# Paths and names +# +LIBCONFIG_VERSION := 1.4.9 +LIBCONFIG_MD5 := b6ee0ce2b3ef844bad7cac2803a90634 +LIBCONFIG := libconfig-$(LIBCONFIG_VERSION) +LIBCONFIG_SUFFIX := tar.gz +LIBCONFIG_URL := http://www.hyperrealm.com/libconfig/$(LIBCONFIG).$(LIBCONFIG_SUFFIX) +LIBCONFIG_SOURCE := $(SRCDIR)/$(LIBCONFIG).$(LIBCONFIG_SUFFIX) +LIBCONFIG_DIR := $(BUILDDIR)/$(LIBCONFIG) +LIBCONFIG_LICENSE := LGPL + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LIBCONFIG_CONF_TOOL := autoconf + +LIBCONFIG_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --disable-examples + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libconfig.targetinstall: $(libconfig_targetinstall_deps_default) + @$(call targetinfo, $@) + + @$(call install_init, libconfig) + @$(call install_fixup, libconfig,PRIORITY,optional) + @$(call install_fixup, libconfig,SECTION,base) + @$(call install_fixup, libconfig,AUTHOR,"Guillaume Gourat ") + @$(call install_fixup, libconfig,DESCRIPTION,missing) + +ifdef PTXCONF_LIBCONFIG_INSTALL_LIBCONFIG_SO + @$(call install_lib, libconfig, 0, 0, 0644, libconfig) +endif + +ifdef PTXCONF_LIBCONFIG_INSTALL_LIBCONFIGPP_SO + @$(call install_lib, libconfig, 0, 0, 0644, libconfig++) +endif + + @$(call install_finish, libconfig) + + @$(call touch, $@) + +# vim: syntax=make -- ptxdist mailing list ptxdist@pengutronix.de