* [ptxdist] [PATCHv2] log4cplus: Add new package
@ 2013-01-30 12:32 Bernhard Sessler
2013-01-30 20:12 ` Alexander Aring
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Bernhard Sessler @ 2013-01-30 12:32 UTC (permalink / raw)
To: ptxdist
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 | 21 ++++++++++++++++
rules/log4cplus.make | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 88 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..941188f
--- /dev/null
+++ b/rules/log4cplus.in
@@ -0,0 +1,21 @@
+## SECTION=system_libraries
+
+menuconfig LOG4CPLUS
+ tristate
+ prompt "log4cplus "
+ 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..b494b39
--- /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 := log4cplus
+
+# ----------------------------------------------------------------------------
+# 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] [PATCHv2] log4cplus: Add new package
2013-01-30 12:32 [ptxdist] [PATCHv2] log4cplus: Add new package Bernhard Sessler
@ 2013-01-30 20:12 ` Alexander Aring
2013-01-31 9:42 ` Andreas Bießmann
2013-01-31 9:46 ` Bernhard Walle
2 siblings, 0 replies; 6+ messages in thread
From: Alexander Aring @ 2013-01-30 20:12 UTC (permalink / raw)
To: ptxdist
Hi,
On Wed, Jan 30, 2013 at 01:32:48PM +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 | 21 ++++++++++++++++
> rules/log4cplus.make | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 88 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..941188f
> --- /dev/null
> +++ b/rules/log4cplus.in
> @@ -0,0 +1,21 @@
> +## SECTION=system_libraries
> +
> +menuconfig LOG4CPLUS
> + tristate
> + prompt "log4cplus "
> + 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..b494b39
> --- /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 := log4cplus
Interesting license :-)
On the SF log4cplus project website stands "Apache License V2.0"
which is "APLv2" in ptxdist.
Regards
Alex
> +
> +# ----------------------------------------------------------------------------
> +# 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
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] [PATCHv2] log4cplus: Add new package
2013-01-30 12:32 [ptxdist] [PATCHv2] log4cplus: Add new package Bernhard Sessler
2013-01-30 20:12 ` Alexander Aring
@ 2013-01-31 9:42 ` Andreas Bießmann
2013-01-31 9:44 ` Bernhard Walle
2013-01-31 9:46 ` Bernhard Walle
2 siblings, 1 reply; 6+ messages in thread
From: Andreas Bießmann @ 2013-01-31 9:42 UTC (permalink / raw)
To: ptxdist
Hi Bernhard,
On 30.01.2013 13:32, 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 | 21 ++++++++++++++++
> rules/log4cplus.make | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 88 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..941188f
> --- /dev/null
> +++ b/rules/log4cplus.in
> @@ -0,0 +1,21 @@
> +## SECTION=system_libraries
> +
> +menuconfig LOG4CPLUS
> + tristate
> + prompt "log4cplus "
> + select GLIBC_PTHREAD
just realized that you build log4cplus with cmake. Therefore missing
dependency to host-cmake here!
> + select QT4 if LOG4CPLUS_QT4
Shouldn't we move that select QT4 down to the LOG4CPLUS_QT4 switch?
> + 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
<snip>
Best regards
Andreas Bießmann
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] [PATCHv2] log4cplus: Add new package
2013-01-30 12:32 [ptxdist] [PATCHv2] log4cplus: Add new package Bernhard Sessler
2013-01-30 20:12 ` Alexander Aring
2013-01-31 9:42 ` Andreas Bießmann
@ 2013-01-31 9:46 ` Bernhard Walle
2013-01-31 10:10 ` Bernhard Seßler
2 siblings, 1 reply; 6+ messages in thread
From: Bernhard Walle @ 2013-01-31 9:46 UTC (permalink / raw)
To: ptxdist
* Bernhard Sessler <bernhard.sessler@corscience.de> [2013-01-30 13:32]:
> log4cplus is an excellent port of the popular log4j logging library
> to C++.
>
[...]
> +
> +menuconfig LOG4CPLUS
> + tristate
> + prompt "log4cplus "
> + select GLIBC_PTHREAD
You're probably missing GCCLIBS_CXX (libstdc++) here, right?
Regards,
Bernhard
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] [PATCHv2] log4cplus: Add new package
2013-01-31 9:46 ` Bernhard Walle
@ 2013-01-31 10:10 ` Bernhard Seßler
0 siblings, 0 replies; 6+ messages in thread
From: Bernhard Seßler @ 2013-01-31 10:10 UTC (permalink / raw)
To: ptxdist
Yes, probably... :)
Thanks for all the hints to what I did wrong. I'll submit an updated patch.
Regards,
Bernhard
On 31/01/13 10:46, Bernhard Walle wrote:
> * Bernhard Sessler <bernhard.sessler@corscience.de> [2013-01-30 13:32]:
<snip>
>> +
>> +menuconfig LOG4CPLUS
>> + tristate
>> + prompt "log4cplus "
>> + select GLIBC_PTHREAD
> You're probably missing GCCLIBS_CXX (libstdc++) here, right?
>
>
> Regards,
> Bernhard
>
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-01-31 10:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-30 12:32 [ptxdist] [PATCHv2] log4cplus: Add new package Bernhard Sessler
2013-01-30 20:12 ` Alexander Aring
2013-01-31 9:42 ` Andreas Bießmann
2013-01-31 9:44 ` Bernhard Walle
2013-01-31 9:46 ` Bernhard Walle
2013-01-31 10:10 ` Bernhard Seßler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox