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

33 lines
741 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 = " \
git://github.com/HowardHinnant/date.git;protocol=https \
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
}