0
0
Fork 0
haikuports/dev-libs/log4cxx/log4cxx-0.10.0_20180322.recipe

83 lines
2.0 KiB
Bash

SUMMARY="A logging framework for C++"
DESCRIPTION="Apache Log4cxx is a framework which provides the capability to \
log messages in a variety of formats to the local console, local files, \
streamed over a socket or even launch an email based on a hierarchy of \
notification levels."
HOMEPAGE="https://logging.apache.org/log4cxx/latest_stable/index.html"
COPYRIGHT="2004-2007 The Apache Software Foundation"
LICENSE="Apache v2"
REVISION="1"
srcGitRev="5f825186936a1876f92b88b371334ff26e997287"
SOURCE_URI="https://github.com/apache/logging-log4cxx/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="763b07c7a487ff2c42d0e82f7c3fd598083d08dc9f5d8652990295a87d99ddb2"
SOURCE_FILENAME="log4cxx-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="logging-log4cxx-$srcGitRev"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="10.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
log4cxx$secondaryArchSuffix = $portVersion
lib:liblog4cxx$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libapr_1$secondaryArchSuffix
lib:libaprutil_1$secondaryArchSuffix
lib:libexpat$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
"
PROVIDES_devel="
log4cxx${secondaryArchSuffix}_devel = $portVersion
devel:liblog4cxx$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
log4cxx$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libapr_1$secondaryArchSuffix
devel:libaprutil_1$secondaryArchSuffix
devel:libexpat$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoreconf
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
defineDebugInfoPackage log4cxx$secondaryArchSuffix \
$libDir/liblog4cxx.so.$libVersion
BUILD()
{
./autogen.sh
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/lib*.la
prepareInstalledDevelLibs liblog4cxx
fixPkgconfig
packageEntries devel $developDir
}
TEST()
{
make check
}