1SUMMARY="A logging framework for C++"
2DESCRIPTION="Apache Log4cxx is a framework which provides the capability to \
3log messages in a variety of formats to the local console, local files, \
4streamed over a socket or even launch an email based on a hierarchy of \
5notification levels."
6HOMEPAGE="https://logging.apache.org/log4cxx/latest_stable/index.html"
7COPYRIGHT="2004-2007 The Apache Software Foundation"
8LICENSE="Apache v2"
9REVISION="2"
10srcGitRev="5f825186936a1876f92b88b371334ff26e997287"
11SOURCE_URI="https://github.com/apache/logging-log4cxx/archive/$srcGitRev.tar.gz"
12CHECKSUM_SHA256="763b07c7a487ff2c42d0e82f7c3fd598083d08dc9f5d8652990295a87d99ddb2"
13SOURCE_FILENAME="log4cxx-$portVersion-$srcGitRev.tar.gz"
14SOURCE_DIR="logging-log4cxx-$srcGitRev"
15
16ARCHITECTURES="all !x86_gcc2"
17SECONDARY_ARCHITECTURES="x86"
18
19libVersion="10.0.0"
20libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
21
22PROVIDES="
23	log4cxx$secondaryArchSuffix = $portVersion
24	lib:liblog4cxx$secondaryArchSuffix = $libVersionCompat
25	"
26REQUIRES="
27	haiku$secondaryArchSuffix
28	lib:libapr_1$secondaryArchSuffix
29	lib:libaprutil_1$secondaryArchSuffix
30	lib:libexpat$secondaryArchSuffix
31	lib:libiconv$secondaryArchSuffix
32	lib:libxml2$secondaryArchSuffix
33	"
34
35PROVIDES_devel="
36	log4cxx${secondaryArchSuffix}_devel = $portVersion
37	devel:liblog4cxx$secondaryArchSuffix = $libVersionCompat
38	"
39REQUIRES_devel="
40	log4cxx$secondaryArchSuffix == $portVersion base
41	"
42
43BUILD_REQUIRES="
44	haiku${secondaryArchSuffix}_devel
45	devel:libapr_1$secondaryArchSuffix
46	devel:libaprutil_1$secondaryArchSuffix
47	devel:libexpat$secondaryArchSuffix
48	devel:libiconv$secondaryArchSuffix
49	devel:libxml2$secondaryArchSuffix
50	"
51BUILD_PREREQUIRES="
52	cmd:autoreconf
53	cmd:gcc$secondaryArchSuffix
54	cmd:libtoolize$secondaryArchSuffix
55	cmd:make
56	"
57
58defineDebugInfoPackage log4cxx$secondaryArchSuffix \
59	$libDir/liblog4cxx.so.$libVersion
60
61BUILD()
62{
63	./autogen.sh
64	runConfigure ./configure --disable-static
65	make $jobArgs
66}
67
68INSTALL()
69{
70	make install
71
72	rm $libDir/lib*.la
73
74	prepareInstalledDevelLibs liblog4cxx
75	fixPkgconfig
76	packageEntries devel $developDir
77}
78
79TEST()
80{
81	make check
82}
83