blob: 6b101ef676f9d2bf5f345d386f0270749ff6a7d4 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001DESCRIPTION = "The glog library implements application-level logging. This \
2library provides logging APIs based on C++-style streams and various helper \
3macros."
4HOMEPAGE = "https://github.com/google/glog"
5
6LICENSE = "BSD-3-Clause"
7LIC_FILES_CHKSUM = "file://COPYING;md5=dc9db360e0bbd4e46672f3fd91dd6c4b"
8
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08009SRC_URI = " \
Brad Bishope42b3e32020-01-15 22:08:42 -050010 git://github.com/google/glog.git;nobranch=1 \
Andrew Geissler97771a32021-03-05 15:23:11 -060011 file://0001-Find-Libunwind-during-configure.patch \
Andrew Geissler32b11992021-03-31 13:37:05 -050012 file://libexecinfo.patch \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013"
14
Andrew Geissler97771a32021-03-05 15:23:11 -060015SRCREV = "96a2f23dca4cc7180821ca5f32e526314395d26a"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080016
17S = "${WORKDIR}/git"
18
19inherit cmake
20
Andrew Geissler82c905d2020-04-13 13:39:40 -050021PACKAGECONFIG ?= "shared unwind"
22PACKAGECONFIG_remove_riscv64 = "unwind"
23PACKAGECONFIG_remove_riscv32 = "unwind"
Andrew Geissler32b11992021-03-31 13:37:05 -050024PACKAGECONFIG_append_libc-musl_riscv64 = " execinfo"
25PACKAGECONFIG_append_libc-musl_riscv32 = " execinfo"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080026
Andrew Geissler82c905d2020-04-13 13:39:40 -050027PACKAGECONFIG[unwind] = "-DWITH_UNWIND=ON,-DWITH_UNWIND=OFF,libunwind,libunwind"
Andrew Geissler32b11992021-03-31 13:37:05 -050028PACKAGECONFIG[execinfo] = ",,libexecinfo"
Andrew Geissler82c905d2020-04-13 13:39:40 -050029PACKAGECONFIG[shared] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF,,"
Andrew Geisslera2681d92020-10-16 10:17:07 -050030
31do_configure_append() {
32 # remove WORKDIR info to improve reproducibility
33 if [ -f "${B}/config.h" ] ; then
34 sed -i 's/'$(echo ${WORKDIR} | sed 's_/_\\/_g')'/../g' ${B}/config.h
35 fi
36}