aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2021-01-03 16:27:10 -0800
committerPaul Spooren <mail@aparcar.org>2021-01-16 23:37:08 -1000
commit43539a6aabbee86b5fb2fbb5c36c477407d98765 (patch)
tree76efc4ade652589420e76d0af6ec1ad7efbb2498
parent3d2dab566050b6d3090b6336d6ea8e60d620fa24 (diff)
downloadupstream-43539a6aabbee86b5fb2fbb5c36c477407d98765.tar.gz
upstream-43539a6aabbee86b5fb2fbb5c36c477407d98765.tar.bz2
upstream-43539a6aabbee86b5fb2fbb5c36c477407d98765.zip
libusb: make InstallDev explicit
Helps to see what actually gets installed. Signed-off-by: Rosen Penev <rosenp@gmail.com>
-rw-r--r--package/libs/libusb/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/package/libs/libusb/Makefile b/package/libs/libusb/Makefile
index d8380ee67d..e931536339 100644
--- a/package/libs/libusb/Makefile
+++ b/package/libs/libusb/Makefile
@@ -46,12 +46,17 @@ CONFIGURE_ARGS += \
--disable-log
define Build/InstallDev
- $(CP) $(PKG_INSTALL_DIR)/* $(1)/
+ $(INSTALL_DIR) $(1)/usr/include/libusb-1.0
+ $(CP) $(PKG_INSTALL_DIR)/usr/include/libusb-1.0/libusb.h $(1)/usr/include/libusb-1.0/
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb-1.0.* $(1)/usr/lib/
+ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libusb-1.0.pc $(1)/usr/lib/pkgconfig/
endef
define Package/libusb-1.0/install
$(INSTALL_DIR) $(1)/usr/lib
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb*.so.* $(1)/usr/lib/
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb-1.0.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libusb-1.0))