mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Log4cxx 0.10.0 (#2875)
This commit is contained in:
82
dev-libs/log4cxx/log4cxx-0.10.0_20180322.recipe
Normal file
82
dev-libs/log4cxx/log4cxx-0.10.0_20180322.recipe
Normal file
@@ -0,0 +1,82 @@
|
||||
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="!x86_gcc2 x86 x86_64"
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user