summaryrefslogtreecommitdiffstats
path: root/rules/log4cplus.make
blob: 18fc53fb04be451582e93c2979e5e592431cfa5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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.2
LOG4CPLUS_MD5		:= c798e13a0f3d4af0e7a777d16974f092
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	:= Apache-2.0

# ----------------------------------------------------------------------------
# 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