blob: f13925ee1857145a720e09e16acce11a23fdf43b [file] [log] [blame]
DESCRIPTION = "A library for faking the system time in user-space programs"
SECTION = "libs"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SRCREV = "d475b925943ad404c6c728ac868dc73949e7281c"
SRC_URI = "git://github.com/wolfcw/libfaketime.git;branch=master;protocol=https \
file://0001-Makefile-Detect-compiler-in-makefile.patch \
"
S = "${WORKDIR}/git"
CFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE"
do_configure[noexec] = "1"
do_compile () {
oe_runmake
}
do_install () {
install -d ${D}${libdir}/faketime
oe_libinstall -C src libfaketime ${D}${libdir}/faketime
install -d ${D}${bindir}
install -m 0755 src/faketime ${D}${bindir}
}
FILES:${PN} = "${bindir}/faketime ${libdir}/faketime/lib*${SOLIBS}"
FILES:${PN}-dev += "${libdir}/faketime/lib*${SOLIBSDEV}"