summaryrefslogtreecommitdiffstats
path: root/rules/log4cplus.make
diff options
context:
space:
mode:
authorBernhard Sessler <bernhard.sessler@corscience.de>2013-01-31 11:14:26 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2013-02-03 11:19:21 +0100
commit0ac556f6b55da4c9d41c5e191432ba51276a40eb (patch)
treea4c76cea585f4310d20ce3ef03ec1901fbfc3e50 /rules/log4cplus.make
parentadcc58cb30361659fd1462b06c451caae815a78d (diff)
downloadptxdist-0ac556f6b55da4c9d41c5e191432ba51276a40eb.tar.gz
ptxdist-0ac556f6b55da4c9d41c5e191432ba51276a40eb.tar.xz
log4cplus: Add new package
log4cplus is an excellent port of the popular log4j logging library to C++. Signed-off-by: Bernhard Sessler <bernhard.sessler@corscience.de> [mol: fix dependency] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/log4cplus.make')
-rw-r--r--rules/log4cplus.make67
1 files changed, 67 insertions, 0 deletions
diff --git a/rules/log4cplus.make b/rules/log4cplus.make
new file mode 100644
index 000000000..b91ea6702
--- /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