meta-wayland/recipes-extended/date/date_git.bb

33 lines
755 B
BlitzBasic
Raw Normal View History

2021-06-04 11:00:37 +02:00
SUMMARY = "A date and time library based on C++11/14/17."
2021-06-02 16:13:46 +02:00
AUTHOR = "Howard Hinnant"
HOMEPAGE = "https://github.com/HowardHinnant/date.git"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b5d973344b3c7bbf7535f0e6e002d017"
SRC_URI = " \
2021-11-23 17:16:27 +01:00
git://github.com/HowardHinnant/date.git;protocol=https;branch=master \
2021-06-02 16:13:46 +02:00
file://date.pc \
"
S = "${WORKDIR}/git"
2021-06-03 19:48:52 +02:00
PV = "3.0.1"
SRCREV = "v${PV}"
2021-06-02 16:13:46 +02:00
inherit cmake
DEPENDS = "curl"
EXTRA_OECMAKE += " \
-DBUILD_TZ_LIB=ON \
-DBUILD_SHARED_LIBS=ON \
-DUSE_SYSTEM_TZ_DB=ON \
"
2021-08-07 06:23:26 +02:00
do_install:append() {
2021-06-02 16:13:46 +02:00
# 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
}