summaryrefslogtreecommitdiff
path: root/package/libusb
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-02-24 17:41:36 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-02-24 17:41:36 +0100
commit0aabef127155575e8c8d660605f9401ab15356aa (patch)
treeb8cd5f06c60cd4e95fd7a2923dabb3b831dd93b3 /package/libusb
parent0b09c2710166bd95ac9033b048bb6cbf7b4de7c2 (diff)
allow native build of a lot of packages
STAGING_TARGET_DIR is used for package Makefile's for include and library search path's. STAGING_DIR is used for common code in mk/ or Makefile/rules.mk. STAGING_TARGET_DIR is /usr when native builds are used.
Diffstat (limited to 'package/libusb')
-rw-r--r--package/libusb/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/package/libusb/Makefile b/package/libusb/Makefile
index 189329275..8818e6310 100644
--- a/package/libusb/Makefile
+++ b/package/libusb/Makefile
@@ -27,12 +27,15 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBUSB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
$(eval $(call PKG_template,LIBUSB_DEV,${PKG_NAME}-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBUSB_DEV},${PKGSC_LIBUSB_DEV},${PKG_OPTS}))
-post-install:
+libusb-install:
${INSTALL_DIR} ${IDIR_LIBUSB}/usr/lib
- ${CP} ${WRKINST}/usr/lib/libusb*.so* ${IDIR_LIBUSB}/usr/lib/
+ ${CP} ${WRKINST}/usr/lib/libusb*.so* ${IDIR_LIBUSB}/usr/lib
libusb-dev-install:
${INSTALL_DIR} ${IDIR_LIBUSB_DEV}/usr/include
${CP} ${WRKINST}/usr/include/* ${IDIR_LIBUSB_DEV}/usr/include
+ ${INSTALL_DIR} ${IDIR_LIBUSB_DEV}/usr/lib/pkgconfig
+ ${CP} ${WRKINST}/usr/lib/pkgconfig/*.pc \
+ ${IDIR_LIBUSB_DEV}/usr/lib/pkgconfig
include ${TOPDIR}/mk/pkg-bottom.mk