mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 4/6] glog: add new package
Date: Mon, 1 Sep 2014 12:31:04 +0200	[thread overview]
Message-ID: <20140901103104.GD5271@pengutronix.de> (raw)
In-Reply-To: <1405936382-6544-4-git-send-email-guillaume.gourat@nexvision.fr>

On Mon, Jul 21, 2014 at 11:53:00AM +0200, Guillaume Gourat wrote:
> From: Guillaume GOURAT <guillaume.gourat@nexvision.fr>
> 
> 
> Signed-off-by: Guillaume GOURAT <guillaume.gourat@nexvision.fr>
> ---
>  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 <guillaume.gourat@nexvision.fr>
> +#
> +# 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'

what's "LIBS='-lgcc'" for?

And gflags must be disabled by force, if not selected. Add this too GLOG_ENV:

ac_cv_lib_gflags_main=$(call ptx/ifdef, PTXCONF_GLOG_USE_GFLAGS,,no)

> +
> +# ----------------------------------------------------------------------------
> +# 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 <guillaume.gourat@nexvision.fr>")
> +	@$(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
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2014-09-01 10:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-21  9:52 [ptxdist] [PATCH 1/6] libconfig: " Guillaume Gourat
2014-07-21  9:52 ` [ptxdist] [PATCH 2/6] libevent: version bump 2.0.10 -> 2.0.21 Guillaume Gourat
2014-07-21  9:52 ` [ptxdist] [PATCH 3/6] gflags: add new package Guillaume Gourat
2014-07-21  9:53 ` [ptxdist] [PATCH 4/6] glog: " Guillaume Gourat
2014-09-01 10:31   ` Michael Olbrich [this message]
2014-07-21  9:53 ` [ptxdist] [PATCH 5/6] libhiredis: " Guillaume Gourat
2014-09-01 10:49   ` Michael Olbrich
2014-07-21  9:53 ` [ptxdist] [PATCH 6/6] libhiredis: fix pkgconfig file generation Guillaume Gourat
2014-09-01 10:25 ` [ptxdist] [PATCH 1/6] libconfig: new package Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140901103104.GD5271@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox