blob: a52ca25da4b270eb8bc9a6aa9899da0481f28b76 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001SUMMARY = "Locking devices library"
2SECTION = "libs"
Andrew Geissler9aee5002022-03-30 16:27:02 +00003LICENSE = "LGPL-2.1-only"
Brad Bishop19323692019-04-05 15:28:33 -04004LIC_FILES_CHKSUM="file://LICENSE;md5=d8045f3b8f929c1cb29a1e3fd737b499"
5
6PE = "1"
7SRC_URI = "http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/l/lockdev/lockdev_${PV}.orig.tar.gz \
Brad Bishop19323692019-04-05 15:28:33 -04008 file://cross_compile.patch \
9 file://build.patch \
Patrick Williams03907ee2022-05-01 06:28:52 -050010 file://0001-lockdev-Define-MAJOR-MINOR-for-non-glibc-case.patch \
Brad Bishop19323692019-04-05 15:28:33 -040011 "
Brad Bishop19323692019-04-05 15:28:33 -040012SRC_URI[sha256sum] = "ccae635d7ac3fdd50897eceb250872b3d9a191d298f213e7f0c836910d869f82"
Brad Bishop19323692019-04-05 15:28:33 -040013
14inherit lib_package perlnative
Brad Bishop19323692019-04-05 15:28:33 -040015
Brad Bishop19323692019-04-05 15:28:33 -040016TARGET_CC_ARCH += "${LDFLAGS}"
17
Patrick Williams03907ee2022-05-01 06:28:52 -050018CFLAGS:append:libc-musl = " -D__GNU_LIBRARY__"
19
20EXTRA_OEMAKE = "basedir=${D}${prefix} baselib=${baselib} LD='${CC}'"
21
Brad Bishop19323692019-04-05 15:28:33 -040022do_compile() {
Brad Bishope42b3e32020-01-15 22:08:42 -050023 oe_runmake shared static
Brad Bishop19323692019-04-05 15:28:33 -040024}
25do_install() {
Brad Bishope42b3e32020-01-15 22:08:42 -050026 oe_runmake DESTDIR=${D} install
Brad Bishop19323692019-04-05 15:28:33 -040027}