aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libusb
diff options
context:
space:
mode:
authorMike Crowe <mac@mcrowe.com>2012-02-06 13:33:31 +0000
committerSaul Wold <sgw@linux.intel.com>2012-02-07 14:37:13 -0800
commit2ada7f7a0fa8a76a9ef7b45b0e0ced78757d9021 (patch)
tree17a76f25f466e78f3c42737e8942e49e152962f6 /meta/recipes-support/libusb
parent9500ef3f5fae07c1592e8208bb306c1148e49418 (diff)
downloadopenembedded-core-contrib-2ada7f7a0fa8a76a9ef7b45b0e0ced78757d9021.tar.gz
libusb1: Cope with ${libdir} and ${base_libdir} being the same
${libdir} and ${base_libdir} may be the same. If they are don't try and move files onto themselves. Signed-off-by: Mike Crowe <mac@mcrowe.com>
Diffstat (limited to 'meta/recipes-support/libusb')
-rw-r--r--meta/recipes-support/libusb/libusb1_1.0.8.bb6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-support/libusb/libusb1_1.0.8.bb b/meta/recipes-support/libusb/libusb1_1.0.8.bb
index 8873de745a7..e45a9d9ae3e 100644
--- a/meta/recipes-support/libusb/libusb1_1.0.8.bb
+++ b/meta/recipes-support/libusb/libusb1_1.0.8.bb
@@ -6,7 +6,7 @@ SECTION = "libs"
LICENSE = "LGPLv2.1+"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
-PR = "r2"
+PR = "r3"
SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.bz2"
@@ -20,7 +20,9 @@ EXTRA_OECONF = "--libdir=${base_libdir}"
do_install_append() {
install -d ${D}${libdir}
- mv ${D}${base_libdir}/pkgconfig ${D}${libdir}
+ if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
+ mv ${D}${base_libdir}/pkgconfig ${D}${libdir}
+ fi
}
FILES_${PN} += "${base_libdir}/*.so.*"