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-0005sZ-4H for ptxdist@pengutronix.de; Mon, 21 Jul 2014 11:55:21 +0200 Received: from mail438.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo5.mail-out.ovh.net (Postfix) with SMTP id D8F13FF9246 for ; Mon, 21 Jul 2014 11:55:19 +0200 (CEST) From: Guillaume Gourat Date: Mon, 21 Jul 2014 11:53:00 +0200 Message-Id: <1405936382-6544-4-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 4/6] glog: 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/glog.in | 24 ++++++++++++++++++++++++ rules/glog.make | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100755 rules/glog.in create mode 100755 rules/glog.make diff --git a/rules/glog.in b/rules/glog.in new file mode 100755 index 0000000..9fecc9c --- /dev/null +++ b/rules/glog.in @@ -0,0 +1,24 @@ +## SECTION=system_libraries + +menuconfig GLOG + tristate + prompt "glog " + select LIBC_M + select LIBC_PTHREAD + select GCCLIBS_GCC_S + select GCCLIBS_CXX + select GFLAGS if GLOG_USE_GFLAGS + help + The glog library implements application-level logging. This library + provides logging APIs based on C++-style streams and various helper + macros. + + See https://code.google.com/p/google-glog/ for info about it. + +if GLOG + +config GLOG_USE_GFLAGS + bool + prompt "commandline flags processing using gflags" + +endif diff --git a/rules/glog.make b/rules/glog.make new file mode 100755 index 0000000..522153a --- /dev/null +++ b/rules/glog.make @@ -0,0 +1,54 @@ +# -*-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_GLOG) += glog + +# +# Paths and names +# +GLOG_VERSION := 0.3.3 +GLOG_MD5 := a6fd2c22f8996846e34c763422717c18 +GLOG := glog-$(GLOG_VERSION) +GLOG_SUFFIX := tar.gz +GLOG_URL := http://google-glog.googlecode.com/files/$(GLOG).$(GLOG_SUFFIX) +GLOG_SOURCE := $(SRCDIR)/$(GLOG).$(GLOG_SUFFIX) +GLOG_DIR := $(BUILDDIR)/$(GLOG) +GLOG_LICENSE := BSD New + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +GLOG_CONF_TOOL := autoconf +GLOG_ENV := $(CROSS_ENV) LIBS='-lgcc' + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/glog.targetinstall: + @$(call targetinfo) + + @$(call install_init, glog) + @$(call install_fixup, glog,PRIORITY,optional) + @$(call install_fixup, glog,SECTION,base) + @$(call install_fixup, glog,AUTHOR,"Guillaume GOURAT ") + @$(call install_fixup, glog,DESCRIPTION,missing) + + @$(call install_lib, glog, 0, 0, 0644, libglog) + + @$(call install_finish, glog) + + @$(call touch) + +# vim: syntax=make -- 1.7.10.4 -- ptxdist mailing list ptxdist@pengutronix.de