xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/glog/glog_0.5.0.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunDESCRIPTION = "The glog library implements application-level logging. This \
2*4882a593Smuzhiyunlibrary provides logging APIs based on C++-style streams and various helper \
3*4882a593Smuzhiyunmacros."
4*4882a593SmuzhiyunHOMEPAGE = "https://github.com/google/glog"
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunLICENSE = "BSD-3-Clause"
7*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=dc9db360e0bbd4e46672f3fd91dd6c4b"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunSRC_URI = " \
10*4882a593Smuzhiyun    git://github.com/google/glog.git;nobranch=1;protocol=https \
11*4882a593Smuzhiyun    file://libexecinfo.patch \
12*4882a593Smuzhiyun"
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunSRCREV = "8f9ccfe770add9e4c64e9b25c102658e3c763b73"
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunS = "${WORKDIR}/git"
17*4882a593Smuzhiyun
18*4882a593Smuzhiyuninherit cmake
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunPACKAGECONFIG ?= "shared unwind"
21*4882a593SmuzhiyunPACKAGECONFIG:remove:riscv64 = "unwind"
22*4882a593SmuzhiyunPACKAGECONFIG:remove:riscv32 = "unwind"
23*4882a593SmuzhiyunPACKAGECONFIG:append:libc-musl:riscv64 = " execinfo"
24*4882a593SmuzhiyunPACKAGECONFIG:append:libc-musl:riscv32 = " execinfo"
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunPACKAGECONFIG[unwind] = "-DWITH_UNWIND=ON,-DWITH_UNWIND=OFF,libunwind,libunwind"
27*4882a593SmuzhiyunPACKAGECONFIG[execinfo] = ",,libexecinfo"
28*4882a593SmuzhiyunPACKAGECONFIG[shared] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF,,"
29*4882a593Smuzhiyun
30*4882a593Smuzhiyundo_configure:append() {
31*4882a593Smuzhiyun    # remove WORKDIR info to improve reproducibility
32*4882a593Smuzhiyun    if [ -f  "${B}/config.h" ] ; then
33*4882a593Smuzhiyun        sed -i 's/'$(echo ${WORKDIR} | sed 's_/_\\/_g')'/../g' ${B}/config.h
34*4882a593Smuzhiyun    fi
35*4882a593Smuzhiyun}
36