Files
haikuports/dev-cpp/glog/glog-0.7.1.recipe
2025-01-21 15:45:46 +01:00

74 lines
1.6 KiB
Bash

SUMMARY="Google Logging Library"
DESCRIPTION="Google Logging (glog) is a C++98 library that implements application-level logging. \
The library provides logging APIs based on C++-style streams and various helper macros."
HOMEPAGE="https://github.com/google/glog/"
COPYRIGHT="1999-2017 Google Inc.
2003-2008 Jouni Malinen and contributors"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://github.com/google/glog/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="00e4a87e87b7e7612f519a41e491f16623b12423620006f59f5688bfd8d13b08"
SOURCE_FILENAME="glog-v$portVersion.tar.gz"
PATCHES="glog-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
glog$secondaryArchSuffix = $portVersion
lib:libglog$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgflags$secondaryArchSuffix
"
PROVIDES_devel="
glog${secondaryArchSuffix}_devel = $portVersion
devel:libglog$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
glog$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libgflags$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs
make -C build $jobArgs
}
INSTALL()
{
make -C build install
prepareInstalledDevelLib \
libglog
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$libDir/cmake
}
TEST()
{
ctest --test-dir build --output-on-failure
}