mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-02-14 14:20:28 +00:00
anonscm.debian.org has been replaced with https://salsa.debian.org however, lockdev has been dropped from debian packages, so its not maintained at salsa.debian.org, therefore resort to archives and add few more fixes to get it building from archive. bump PE since version still remains 1.0.3 but we drop +git${...} from PV Signed-off-by: Khem Raj <raj.khem@gmail.com>
30 lines
1.1 KiB
BlitzBasic
30 lines
1.1 KiB
BlitzBasic
SUMMARY = "Locking devices library"
|
|
SECTION = "libs"
|
|
LICENSE = "LGPLv2.1"
|
|
LIC_FILES_CHKSUM="file://LICENSE;md5=d8045f3b8f929c1cb29a1e3fd737b499"
|
|
|
|
PE = "1"
|
|
SRC_URI = "http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/l/lockdev/lockdev_${PV}.orig.tar.gz \
|
|
http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/l/lockdev/lockdev_${PV}-1.6.diff.gz;name=debianpatch \
|
|
file://cross_compile.patch \
|
|
file://build.patch \
|
|
"
|
|
SRC_URI[md5sum] = "64b9c1b87b125fc348e892e24625524a"
|
|
SRC_URI[sha256sum] = "ccae635d7ac3fdd50897eceb250872b3d9a191d298f213e7f0c836910d869f82"
|
|
SRC_URI[debianpatch.md5sum] = "5ef6267c42fca9145e0af006ccb6aff7"
|
|
SRC_URI[debianpatch.sha256sum] = "a5405c6ee5e97e45eeb1c81330a7e9f444a58bda5e6771fa30007516c115007e"
|
|
|
|
inherit lib_package perlnative
|
|
export basedir="${D}${prefix}"
|
|
|
|
CFLAGS += " -D__GNU_LIBRARY__"
|
|
|
|
TARGET_CC_ARCH += "${LDFLAGS}"
|
|
|
|
do_compile() {
|
|
oe_runmake basedir=${D}${prefix} LD="${CC}" LD="${CC}" shared static
|
|
}
|
|
do_install() {
|
|
oe_runmake DESTDIR=${D} basedir=${D}${prefix} install
|
|
}
|