From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 5.mo5.mail-out.ovh.net ([87.98.173.103] helo=mo5.mail-out.ovh.net) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1X9AJU-0005sR-4F for ptxdist@pengutronix.de; Mon, 21 Jul 2014 11:55:22 +0200 Received: from mail438.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo5.mail-out.ovh.net (Postfix) with SMTP id B371FFF8DFC for ; Mon, 21 Jul 2014 11:55:19 +0200 (CEST) From: Guillaume Gourat Date: Mon, 21 Jul 2014 11:52:59 +0200 Message-Id: <1405936382-6544-3-git-send-email-guillaume.gourat@nexvision.fr> In-Reply-To: <1405936382-6544-1-git-send-email-guillaume.gourat@nexvision.fr> References: <1405936382-6544-1-git-send-email-guillaume.gourat@nexvision.fr> Subject: [ptxdist] [PATCH 3/6] gflags: add new package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 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 Cc: Guillaume GOURAT From: Guillaume GOURAT Signed-off-by: Guillaume GOURAT --- rules/gflags.in | 16 ++++++++++++++++ rules/gflags.make | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100755 rules/gflags.in create mode 100755 rules/gflags.make diff --git a/rules/gflags.in b/rules/gflags.in new file mode 100755 index 0000000..fc6c199 --- /dev/null +++ b/rules/gflags.in @@ -0,0 +1,16 @@ +## SECTION=system_libraries + +config GFLAGS + tristate + prompt "gflags" + select LIBC_M + select LIBC_PTHREAD + select GCCLIBS_GCC_S + select GCCLIBS_CXX + help + The gflags library implements commandline flags processing. As such it's + a replacement for getopt(). It has increased flexibility, including + built-in support for C++ types like string, and the ability to define + flags in the source file in which they're used. + + See https://code.google.com/p/gflags/ for info about it. diff --git a/rules/gflags.make b/rules/gflags.make new file mode 100755 index 0000000..c01910e --- /dev/null +++ b/rules/gflags.make @@ -0,0 +1,53 @@ +# -*-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_GFLAGS) += gflags + +# +# Paths and names +# +GFLAGS_VERSION := 2.0 +GFLAGS_MD5 := 9084829124e02a7e6be0f0f824523423 +GFLAGS := gflags-$(GFLAGS_VERSION) +GFLAGS_SUFFIX := tar.gz +GFLAGS_URL := http://gflags.googlecode.com/files/$(GFLAGS)-no-svn-files.$(GFLAGS_SUFFIX) +GFLAGS_SOURCE := $(SRCDIR)/$(GFLAGS)-no-svn-files.$(GFLAGS_SUFFIX) +GFLAGS_DIR := $(BUILDDIR)/$(GFLAGS) +GFLAGS_LICENSE := BSD New + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +GFLAGS_CONF_TOOL := autoconf + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/gflags.targetinstall: + @$(call targetinfo) + + @$(call install_init, gflags) + @$(call install_fixup, gflags,PRIORITY,optional) + @$(call install_fixup, gflags,SECTION,base) + @$(call install_fixup, gflags,AUTHOR,"Guillaume Gourat ") + @$(call install_fixup, gflags,DESCRIPTION,missing) + + @$(call install_lib, gflags, 0, 0, 0644, libgflags) + + @$(call install_finish, gflags) + + @$(call touch) + +# vim: syntax=make -- 1.7.10.4 -- ptxdist mailing list ptxdist@pengutronix.de