meta-wayland/recipes-extended/date/date_git.bb
2021-06-02 16:13:46 +02:00

33 lines
733 B
BlitzBasic

SUMMARY = "A date and time library based on the C++11/14/17."
AUTHOR = "Howard Hinnant"
HOMEPAGE = "https://github.com/HowardHinnant/date.git"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b5d973344b3c7bbf7535f0e6e002d017"
SRC_URI = " \
git://github.com/HowardHinnant/date.git;protocol=https \
file://date.pc \
"
SRCREV = "v3.0.0"
S = "${WORKDIR}/git"
inherit cmake
DEPENDS = "curl"
EXTRA_OECMAKE += " \
-DBUILD_TZ_LIB=ON \
-DBUILD_SHARED_LIBS=ON \
-DUSE_SYSTEM_TZ_DB=ON \
"
do_install_append() {
# source lacks pkgconfig support. Include a pc file, so 'date' can be found using pkgconfig
install -d ${D}${libdir}/pkgconfig
install -m 0644 ${WORKDIR}/date.pc ${D}${libdir}/pkgconfig
}