From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 19.mo6.mail-out.ovh.net ([188.165.56.177] helo=mo6.mail-out.ovh.net) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1X8nk3-0005n9-KI for ptxdist@pengutronix.de; Sun, 20 Jul 2014 11:49:16 +0200 Received: from mail95.ha.ovh.net (gw6.ovh.net [213.251.189.206]) by mo6.mail-out.ovh.net (Postfix) with SMTP id 2266AFF94D3 for ; Sun, 20 Jul 2014 11:49:15 +0200 (CEST) From: "Guillaume GOURAT" Date: Sun, 20 Jul 2014 11:49:03 +0200 Message-ID: <006101cfa3ff$d8131170$88393450$@gourat@nexvision.fr> MIME-Version: 1.0 Content-Language: fr Subject: [ptxdist] [PATCH] 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: , 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 gflags: add new package Signed-off-by: Guillaume Gourat 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 -- ptxdist mailing list ptxdist@pengutronix.de