From 0aabef127155575e8c8d660605f9401ab15356aa Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 24 Feb 2011 17:41:36 +0100 Subject: 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. --- package/libusb/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'package/libusb') 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 -- cgit v1.2.3