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] [PATCHv3] log4cplus: Add new package
Date: Sun, 3 Feb 2013 12:23:47 +0100	[thread overview]
Message-ID: <20130203112347.GL2408@pengutronix.de> (raw)
In-Reply-To: <1359627266-9517-1-git-send-email-bernhard.sessler@corscience.de>

On Thu, Jan 31, 2013 at 11:14:26AM +0100, Bernhard Sessler wrote:
> log4cplus is an excellent port of the popular log4j logging library
> to C++.
> 
> Signed-off-by: Bernhard Sessler <bernhard.sessler@corscience.de>
> ---
>  rules/log4cplus.in   | 25 ++++++++++++++++++++
>  rules/log4cplus.make | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 92 insertions(+)
>  create mode 100644 rules/log4cplus.in
>  create mode 100644 rules/log4cplus.make
> 
> diff --git a/rules/log4cplus.in b/rules/log4cplus.in
> new file mode 100644
> index 0000000..3a5f117
> --- /dev/null
> +++ b/rules/log4cplus.in
> @@ -0,0 +1,25 @@
> +## SECTION=system_libraries
> +
> +menuconfig LOG4CPLUS
> +	tristate
> +	prompt "log4cplus                     "
> +	select HOST_CMAKE
> +	select LIBC

This is not needed, libc is always installed.
I've removed that line and applied the patch.

Michael

> +	select GCCLIBS_GCC_S
> +	select GCCLIBS_CXX
> +	select GLIBC_PTHREAD
> +	select QT4 if LOG4CPLUS_QT4
> +	help
> +	  The purpose of this project is to port the
> +	  excellent Log for Java (log4j) logging
> +	  library to C++.
> +
> +if LOG4CPLUS
> +
> +config LOG4CPLUS_QT4
> +	bool
> +	prompt "Qt4 debug appender"
> +	help
> +	  Build the log4cplus Qt4 debug appender
> +
> +endif
> diff --git a/rules/log4cplus.make b/rules/log4cplus.make
> new file mode 100644
> index 0000000..fff15b0
> --- /dev/null
> +++ b/rules/log4cplus.make
> @@ -0,0 +1,67 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2012 by Bernhard Sessler <bernhard.sessler@corscience.de>
> +#                       Corscience GmbH & Co. KG <info@corscience.de>, Germany
> +#
> +# 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_LOG4CPLUS) += log4cplus
> +
> +#
> +# Paths and names
> +#
> +LOG4CPLUS_VERSION	:= 1.1.0
> +LOG4CPLUS_MD5		:= 8f04a7b2db55384440b0ab83b6362d5d
> +LOG4CPLUS			:= log4cplus-$(LOG4CPLUS_VERSION)
> +LOG4CPLUS_SUFFIX	:= tar.xz
> +LOG4CPLUS_URL		:= $(call ptx/mirror, SF, log4cplus/$(LOG4CPLUS).$(LOG4CPLUS_SUFFIX))
> +LOG4CPLUS_SOURCE	:= $(SRCDIR)/$(LOG4CPLUS).$(LOG4CPLUS_SUFFIX)
> +LOG4CPLUS_DIR		:= $(BUILDDIR)/$(LOG4CPLUS)
> +LOG4CPLUS_LICENSE	:= APLv2
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +LOG4CPLUS_CONF_TOOL	:= cmake
> +
> +LOG4CPLUS_CONF_OPT	:= $(CROSS_CMAKE_USR)
> +LOG4CPLUS_CONF_OPT	+= -DLOG4CPLUS_BUILD_TESTING=OFF
> +
> +ifdef PTXCONF_LOG4CPLUS_QT4
> +LOG4CPLUS_CONF_OPT	+= -DLOG4CPLUS_QT4=ON
> +endif
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/log4cplus.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, log4cplus)
> +	@$(call install_fixup, log4cplus, PRIORITY, optional)
> +	@$(call install_fixup, log4cplus, SECTION, base)
> +	@$(call install_fixup, log4cplus, AUTHOR, \
> +		"Bernhard Sessler <bernhard.sessler@corscience.de>")
> +	@$(call install_fixup, log4cplus,DESCRIPTION,missing)
> +
> +	@$(call install_lib, log4cplus, 0, 0, 0644, liblog4cplus)
> +	@$(call install_copy, log4cplus, 0, 0, 0755, -, /usr/bin/loggingserver)
> +
> +ifdef PTXCONF_LOG4CPLUS_QT4
> +	@$(call install_lib, log4cplus, 0, 0, 0644, liblog4cplusqt4debugappender)
> +endif
> +
> +	@$(call install_finish, log4cplus)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> -- 
> 1.8.1.1
> 
> 
> -- 
> 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:[~2013-02-03 11:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-31 10:14 Bernhard Sessler
2013-02-03 11:23 ` Michael Olbrich [this message]

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=20130203112347.GL2408@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