mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-12 14:50:08 +02:00
75 lines
1.6 KiB
Bash
75 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="8a83bf982f37bb70825df71a9709fa90ea9f4447fb3c099e1d720a439d88bad6"
|
|
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
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
glog${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libglog$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
glog$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage glog$secondaryArchSuffix \
|
|
$libDir/libglog.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
# rm $libDir/libglog.la
|
|
|
|
prepareInstalledDevelLib libglog
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make -C build test
|
|
}
|