Skip to content

Commit

Permalink
libusb-compat: move libraries to base_libdir
Browse files Browse the repository at this point in the history
udev links to libusb-compat, and so this library needs to be in
base_libdir (/lib) instead of libdir (/usr/lib).

Signed-off-by: Scott Garman <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
  • Loading branch information
Scott Garman authored and rpurdie committed Jan 5, 2012
1 parent 0443487 commit ed93794
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion meta/recipes-support/libusb/libusb-compat_0.1.3.bb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DEPENDS = "libusb1"
PROVIDES = "libusb"

PE = "1"
PR = "r0"
PR = "r1"

SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-compat-${PV}.tar.bz2 \
file://0.1.0-beta1-gcc3.4-fix.patch"
Expand All @@ -24,3 +24,13 @@ SRC_URI[md5sum] = "570ac2ea085b80d1f74ddc7c6a93c0eb"
SRC_URI[sha256sum] = "a590a03b6188030ee1ca1a0af55685fcde005ca807b963970f839be776031d94"

inherit autotools pkgconfig binconfig

EXTRA_OECONF = "--libdir=${base_libdir}"

do_install_append() {
install -d ${D}${libdir}
mv ${D}${base_libdir}/*.la ${D}${libdir}
mv ${D}${base_libdir}/pkgconfig ${D}${libdir}
}

FILES_${PN}-dev += "${base_libdir}/*.so"

0 comments on commit ed93794

Please sign in to comment.