aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-test/libfaketime/libfaketime_0.9.10.bb
blob: f13925ee1857145a720e09e16acce11a23fdf43b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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}"