xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/glog/glog_0.5.0.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1DESCRIPTION = "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
9SRC_URI = " \
10    git://github.com/google/glog.git;nobranch=1;protocol=https \
11    file://libexecinfo.patch \
12"
13
14SRCREV = "8f9ccfe770add9e4c64e9b25c102658e3c763b73"
15
16S = "${WORKDIR}/git"
17
18inherit cmake
19
20PACKAGECONFIG ?= "shared unwind"
21PACKAGECONFIG:remove:riscv64 = "unwind"
22PACKAGECONFIG:remove:riscv32 = "unwind"
23PACKAGECONFIG:append:libc-musl:riscv64 = " execinfo"
24PACKAGECONFIG:append:libc-musl:riscv32 = " execinfo"
25
26PACKAGECONFIG[unwind] = "-DWITH_UNWIND=ON,-DWITH_UNWIND=OFF,libunwind,libunwind"
27PACKAGECONFIG[execinfo] = ",,libexecinfo"
28PACKAGECONFIG[shared] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF,,"
29
30do_configure:append() {
31    # remove WORKDIR info to improve reproducibility
32    if [ -f  "${B}/config.h" ] ; then
33        sed -i 's/'$(echo ${WORKDIR} | sed 's_/_\\/_g')'/../g' ${B}/config.h
34    fi
35}
36