mirror of
https://codeberg.org/flk/meta-wayland.git
synced 2025-07-13 06:24:28 +02:00
First commit
This commit is contained in:
32
recipes-extended/date/date_git.bb
Normal file
32
recipes-extended/date/date_git.bb
Normal file
@ -0,0 +1,32 @@
|
||||
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
|
||||
}
|
||||
|
10
recipes-extended/date/files/date.pc
Normal file
10
recipes-extended/date/files/date.pc
Normal file
@ -0,0 +1,10 @@
|
||||
prefix=/usr
|
||||
exec_prefix=/usr
|
||||
libdir=/usr/lib
|
||||
includedir=/usr/include
|
||||
|
||||
Name: date
|
||||
Description: date library
|
||||
Version: 3.0.0
|
||||
Cflags: -I${includedir}/date
|
||||
Libs: -L${libdir} -ldate-tz -lpthread
|
Reference in New Issue
Block a user